I am following the “https://www.edgeimpulse.com/blog/adding-machine-learning-to-your-lorawan-device/” example on the DISCO_L475VG_IOT01A with SX1261MB2BAS Shield. Everything works fine, except when I run the “mbed-os-example-lorawan” application including the exported C++ library from Edge Impulse. The application starts fine, it connects over OTA to LoRaWAN, executed the first sampling of data, classifies and even sends the first outcome. However, then the applications fails. Any idea why this is? This is a printout from the serial:
Mbed LoRaWANStack initialized
CONFIRMED message retries : 3
Adaptive data rate (ADR) - Enabled
Connection - In Progress ...
Connection - Successful
Sampling data for 4 seconds...
Sampling data OK
Loaded model yes
[-0.063, 0.99609, 0.00000, 0.00000, 0.00000]
[-0.063, 0.99609, 0.00000, 0.00000, 0.00000]
[-0.063, 0.99609, 0.00000, 0.00000, 0.00000]
[-0.063, 0.99609, 0.00000, 0.00000, 0.00000]
[-0.063, 0.99609, 0.00000, 0.00000, 0.00000]
[-0.063, 0.99609, 0.00000, 0.00000, 0.00000]
[-0.063, 0.99609, 0.00000, 0.00000, 0.00000]
[-0.063, 0.99609, 0.00000, 0.00000, 0.00000]
[-0.063, 0.99609, 0.00000, 0.00000, 0.00000]
[-0.063, 0.99609, 0.00000, 0.00000, 0.00000]
[-0.063, 0.99609, 0.00000, 0.00000, 0.00000]
[-0.063, 0.99609, 0.00000, 0.00000, 0.00000]
[-0.063, 0.99609, 0.00000, 0.00000, 0.00000]
[-0.064, 0.99609, 0.00000, 0.00000, 0.00000]
[-0.065, 0.99609, 0.00000, 0.00000, 0.00000]
[-0.065, 0.99609, 0.00000, 0.00000, 0.00000]
[-0.065, 0.99609, 0.00000, 0.00000, 0.00000]
[-0.065, 0.99609, 0.00000, 0.00000, 0.00000]
[-0.065, 0.99609, 0.00000, 0.00000, 0.00000]
[-0.064, 0.99609, 0.00000, 0.00000, 0.00000]
[-0.064, 0.99609, 0.00000, 0.00000, 0.00000]
idle: 21, snake: 0, updown: 0, wave: 0, anomaly: 0, uncertain: 0
6 bytes scheduled for transmission
++ MbedOS Error Info ++
Error Status: 0x80020125 Code: 293 Module: 2
Error Message: CMSIS-RTOS error: Stack overflow
Location: 0x8027D65
Error Value: 0x1
Current Thread: main Id: 0x20003278 Entry: 0x8027C5B StackSize: 0x1000 StackMem: 0x20003E20 SP: 0x100005A8
For more info, visit: https://mbed.com/s/error?error=0x80020125&tgt=DISCO_L475VG_IOT01A
-- MbedOS Error Info --
= System will be rebooted due to a fatal error =
= Reboot count(=2) reached maximum, system will halt after rebooting =