matthijskooijman / arduino-lmic

:warning: This library is deprecated, see the README for alternatives.
704 stars 651 forks source link

Failure radio.c:675 #269

Open rzahoransky opened 4 years ago

rzahoransky commented 4 years ago

Hello Matthijs,

I am trying to build a TTN Mapper application. Most often after a GPS fix I get the error

> FAILURE 
> ...arduino-lmic-master\src\lmic\radio.c:675

The line contains the assertion ASSERT( (readReg(RegOpMode) & OPMODE_MASK) == OPMODE_SLEEP );

I built my TTN Mapper from Bjoerns-TB's Project: https://github.com/Bjoerns-TB/ttn-gps-tracker. Most often the failure occurs after parsing the 1st or 2nd GPS fix.

Might the failure come due to timing (the sketch uses LowPower sleep cycles), low memory (parsing the GPS NMEA) or LoRa payload size? Could you kindly help me in identifying the problem? Maybe you or someone else had the same issue before?

Thank you very much

Richard