Replies: 1 comment 2 replies
-
Hello @xillion and thank you for your message.
We need to compare an apple with apple so be sure you compile with GCC (ideally with same version) and also with same build profile on both platforms (ARM Mbed / MbedCE). Or am I wrong? @multiplemonomials BTW this macro is default for whole STM32L4 family.
BR, Jan |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I have recently switched from the official Mbed OS (where deep sleep measured as low as ~6 µA) to the community fork (mbed‑os‑CE) on a NUCLEO_L476RG board.
However, when I run the same code on CE, deep sleep current only drops to about 6 mA—rather than the expected microamp-level. I’ve confirmed the original Mbed OS achieves ≈6 µA deep sleep.
Here’s a minimal repro:
And my mbed_app.json:
{ "target_overrides": { "*": { "target.console-uart": false, "target.retarget-console": false, "platform.stdio-buffered-serial": 0, "platform.callback-nontrivial": false, "target.tickless-from-us-ticker": false, "target.lse_available": 1, "target.lpticker_lptim_clock": 64, "target.macros_add": ["MBED_TICKLESS"], "target.device_has_add": ["DEVICE_LPTICKER"] } } }
Environment:
mbed‑os‑CE (latest master branch)
mbed‑os 6.17
NUCLEO_L476RG
Original Mbed OS (exact same code/config) deep sleep ≈6 µA
CE: deep sleep ≈6 mA
I’ve applied sleep_manager_can_deep_sleep() before wait, use LowPowerTicker, and disabled console UART. I’ve also tried enabling sleep tracing (MBED_SLEEP_TRACING_ENABLED) but haven’t identified any active deep-sleep locks yet.
Could someone help me identify:
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions