Measuring current consumption of STM32L496ZG MCU on an STM32-Nucleo board
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-08 4:07 AM - edited ‎2023-11-08 6: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.
- Labels:
-
Power
-
ST boards
-
STM32L4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-15 2:21 AM - edited ‎2023-11-15 2: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-19 10:10 PM
@jiangfan Have you tried freeRTOS STOP mode on your end? If yes! What was the current consumption?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-23 6:22 PM
Sorry to reply to you late.
I suggest trying in bare metal mode first with wakeup source from button.
please refer to main_idd_stop_with-wakeup.txt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-23 9: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-24 7:09 PM
so, you may De-Initialize the timer and peripheral(s) used by RTOS before entering the STOP mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-28
4:53 PM
- last edited on
‎2023-11-30
1: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-28 5:43 PM
Do you know which peripheral (or peripherals) that lead to extra STOP mode current?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-29 6:32 PM - edited ‎2023-11-29 6: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.

- « Previous
- Next »