Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sleep is not working on GCC ARM toolchain #1

Open
pmancele opened this issue May 7, 2018 · 1 comment
Open

Sleep is not working on GCC ARM toolchain #1

pmancele opened this issue May 7, 2018 · 1 comment

Comments

@pmancele
Copy link

pmancele commented May 7, 2018

Hello,

We are starting some projects using xDot but we are facing an issue with sleep functions.

If we compile the project using the Mbed online compiler, Dot exemples (the OTA one) are working. But the library used is the ARMCC one.

We use to work offline with Mbed CLI and GCC ARM toolchain (last version Q4 2017).
But when compiled the exact same example with the same mbed-os version (5.7.7) the sleep calls are blocking the application.
I mean:
The program starts correctly and connect to the LoRa network. Then each sleep call block the program forever. Here is the last output we get:

[INFO] successfully sent data to gateway
[INFO] sleeping 56s or until interrupt on WAKE pin

However, the program is not completly frozen as it wakes up if we press the button connected to the WAKE pin.
I guess its an issue with the RTC configuration that is not properly configured and never wakes up the MCU.

Thanks for your help,
Pierre-Marie

@klaas019
Copy link

klaas019 commented May 7, 2018

Currently mbed does not support GCC ARM 7, mbed supports GCC ARM 6 for mbed-os-5.7.7. Here is a list of versions that are supported. https://os.mbed.com/docs/v5.8/tools/index.html#compiler-versions.

Hopefully this fixes the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants