7 years, 7 months ago.

Nucleo_sleep example (ST-Nucleo-L073RZ board) not working

Hi all,

I am facing some issues getting the Nucleo_sleep example to work on a ST-Nucleo-L073RZ board (https://developer.mbed.org/teams/ST/code/Nucleo_sleep/?platform=ST-Nucleo-L073RZ).

Basically, if I import the code without updating the mbed library (using the default 123 release), it works just fine, but if I update it to the last version (Release 139), sleep() and deepsleep() functions stop working, i.e., it doesn't go to sleep/deepsleep, although the rest of the code/logic (interrupts, counter, prints, etc) keeps flowing.

Since this is such a trivial code sample and process - basically click at the "Import into Compiler" button, compile the code and flash the MCU - , I don't know what else can I do to fix it.

Thank you. Best regards, João

2 Answers

7 years, 7 months ago.

Hi João, I've your same problem with my Nucleo L073RZ.

If you read the last commit in mbed repo

I think the error is in the 137 release commit https://developer.mbed.org/users/mbed_official/code/mbed/rev/e1686b8d5b90

Quote:

3590: [NUC472/M453] Export IAR project and other bugfixes https://github.com/ARMmbed/mbed-os/pull/3590 3740: STM32L4 HAL update for RTC Wake Up Timer https://github.com/ARMmbed/mbed-os/pull/3740 3739: STM32F7 : remove multiple HSE_VALUE define value https://github.com/ARMmbed/mbed-os/pull/3739 3759: STM32: spi_frequency table index fix https://github.com/ARMmbed/mbed-os/pull/3759 3779: NCS36510: Fix the sporadic semaphore timing issue https://github.com/ARMmbed/mbed-os/pull/3779 3806: NXP KL43Z/KL27Z: fix spi format bits check https://github.com/ARMmbed/mbed-os/pull/3806 3814: NCS36510: I2C idle delay of 1us https://github.com/ARMmbed/mbed-os/pull/3814 3803: Bug fix of initial value of interrupt edge in "gpio_irq_init" again https://github.com/ARMmbed/mbed-os/pull/3803

Now I'm working with the release 136 and the deepsleep working better.

I hope the next release solve this issue for L073 micro

Hi Raffaello,

Many thanks for sharing your findings.

Before reporting the issue on the mbed-os github (per Mark's request), I shall add that the problem is still present on Release 140 and that it also affects Nucleo L476LG board.

Edit: Just saw that you already reported the issue. Thanks!

Best regards, João

posted by Joao Mauricio 18 Apr 2017
7 years, 7 months ago.

Please report issue here: https://github.com/ARMmbed/mbed-os/issues/