Mbed-os: Deepsleep and sleep does not work in STM32L0 series

Created on 16 Apr 2017  路  3Comments  路  Source: ARMmbed/mbed-os

Description

  • Type: Bug
  • Priority: Major

Bug

Target
STM32L0 series

Toolchain:
ARM

Toolchain version:
5.x

Expected behavior
Go to sleep or deepsleep

Actual behavior
Skip the functions sleep() and deepsleep()

Steps to reproduce

int main()
{ 
    while (1) {
            printf("Entering sleep\n");
            sleep();
            printf("Entering deepsleep\n");
            deepsleep();
        }
    }
}

Enhancement

Suggested enhancement
From release 137 https://developer.mbed.org/users/mbed_official/code/mbed/rev/e1686b8d5b90 the functions deepsleep() and sleep() does not work. If w go to release 136 the deepsleep and sleep functions works. I Think the error is from 137 release.

Most helpful comment

Sleep was disabled in develop (default) build profile https://docs.mbed.com/docs/mbed-os-handbook/en/latest/dev_tools/build_profiles/ it's going to change soon
https://github.com/ARMmbed/mbed-os/pull/4097

All 3 comments

Hi Raffaello,

I shall add that the issue also affects Nucleo L476LG boards.

Best regards,
Jo茫o

Sleep was disabled in develop (default) build profile https://docs.mbed.com/docs/mbed-os-handbook/en/latest/dev_tools/build_profiles/ it's going to change soon
https://github.com/ARMmbed/mbed-os/pull/4097

sleep()/deepsleep() should work for develop and release profiles on master, for platforms it's defined for. I'll close this issue, please reopen it if you have any further questions.

Was this page helpful?
0 / 5 - 0 ratings