SMT32L4 power consumption to high
Hi all,
I have a project with a SMT32L431. Right now it is running on the nucleo-64 demo board (its a STM32L4 33RCT6P) so nothing is connected to the board.
The project will use all UART and LPUART modules, the SPI1, the I2C2 and the CAN1 module. I have setup the clock at 2MHz using the MSI clock. When starting the module and configuring the clock, deactivating the TIM1 and setting in low power run mode, the consumption drops to 140uA. This is my starting point.
- Setting the GPIO, I get 170uA. However, if the PC11 is set as an input I get to 300uA!! There is another pin that I had to set as an output to get low consumption. Why? Floating pin problem?
- Setting the DMA1, I get 175uA
- Setting the CAN module, I get 315uA. According to the documentation CAN should consume only 8uA why?
- LPUART1 sky rockets this to 525uA while datasheet says 7uA
- UART1 gets me to 700uA
- UART2 gets me to 720uA (only +20uA while the uart1 is 175uA)!!!
- UART3 gets me to 740uA
- SPI 880uA
- I2C 970uA
- LPTIM1 with 1s interrupts 980uA
For now I only have LPTIM1 doing interrupts every 1s and a main loop that does nothing but check flags of the LPTIM1 interrupts and sends the device into low power sleep mode.
Clock config is very simple. I have setup MSI to 2MHz, distributed that to SYCCLK. Then PCLK1 and 2 runs at 2MHz. All modules use PLCk1 or 2 and ADC uses SYSCLK (so that PLL is not used)
