2023-11-08 04:07 AM - edited 2023-11-08 06:39 AM
I'm using Nordic's Power Profiler Kit II to measure current of STM32L496ZG MCU on STM32 Nucleo board. I've tried to measure current using JP5 (IDD) as mentioned in the datasheet but current consumption is too high (163uA) considering the fact that I'm using tickless idle mode example (freertos low power).
I've been following this tutorial: https://www.youtube.com/watch?v=nSLN_WM2TOc&t=929s&ab_channel=STMicroelectronics
As far as connections are concerned, I've connected Vin of PPK II to one pin and Vout to other pin of JP5 of Nucleo board. I don't know if I'm doing anything wrong?
Solved! Go to Solution.
2023-11-15 02:21 AM - edited 2023-11-15 02:23 AM
The wakeup source is an external button. I'll have to incorporate RTC as well. Currently I'm just trying to get current to minimum value. I don't know why stop modes/tickless modes don't work properly on my stm32 board (let alone the device) with freertos.
2023-11-19 10:10 PM
@jiangfan Have you tried freeRTOS STOP mode on your end? If yes! What was the current consumption?
2023-11-23 06:22 PM
2023-11-23 09:47 PM
Thanks for replying.
I was able to achieve almost 5uA without RTOS following your suggestions but issue is when I'm using RTOS (freeRTOS or ThreadX), the lowest I've recorded so far is 250 uA.
2023-11-24 07:09 PM
so, you may De-Initialize the timer and peripheral(s) used by RTOS before entering the STOP mode.
2023-11-27 11:32 PM
I've de-initialized all the peripherals, and that's the concern why is it not drawing current less than 10uA in STOP mode.
2023-11-28
04:53 PM
- last edited on
2023-11-30
01:37 AM
by
Lina_DABASINSKA
To actually understand everything, you should read this:
And for Stop modes in particular, also this:
https://community.st.com/t5/stm32-mcus-motor-control/mc-sdk-not-work-with-mcu-stop-mode/m-p/94522
2023-11-28 05:43 PM
Do you know which peripheral (or peripherals) that lead to extra STOP mode current?
2023-11-28 11:26 PM
Not exactly, as I told you earlier, I'm able to achieve low current without RTOS but with RTOS enabled some peripheral is drawing this excess current and I'm unable to figure out which one.
2023-11-29 06:32 PM - edited 2023-11-29 06:32 PM
My feeling is that some peripherals need more care such as DMA and ADC, they should be properly stopped before De-Initialization. I believe that it should be the same for STOP mode current with and without RTOS provided that peripherals environment is fully recovered to reset state.
Besides, no further comment.