MultiTechSystems / libxDot-dev-mbed5

Bleeding edge development version of the xDot library for mbed 5. This version of the library is not guaranteed to be stable or well tested and should not be used in production or deployment scenarios.
Other
3 stars 0 forks source link

Sleep is not working on GCC ARM toolchain #1

Open pmancele opened 6 years ago

pmancele commented 6 years ago

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 commented 6 years ago

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.