Error: MCCI_LoRaWAN_LMIC_library-3.0.99\src\lmic\oslmic.c:53

Dear Arduino-fellows,

After flashing the code for LoRa-nodes for months flawlessly, I am having problems with this nasty error again (MCU: Atmega1284p, Arduino IDE and newest MCC LoRa library):

    MCCI_LoRaWAN_LMIC_library-3.0.99\src\lmic\oslmic.c:53

The complete error msg looks as follows:

    10:09:41.148 -> Starting...
    10:09:41.183 -> Scanning...
    10:09:41.183 -> I2C device found at address 0x23  !
    10:09:41.183 -> I2C device found at address 0x76  !
    10:09:46.218 -> FAILURE 
    10:09:46.218 -> C:\Users\bobin\OneDrive\Dokumente\Arduino\libraries\MCCI_LoRaWAN_LMIC_library-3.0.99\src\lmic\oslmic.c:53

And occurs already in the setup function while calling os_init(); (verified with Serial.println after os_init):

    void setup() {
      Serial.begin(115200);
      Wire.begin();
      Serial.println(F("Starting..."));
      pinMode(5, OUTPUT);
      pinMode(A3, INPUT);
      os_init();
      Serial.println("os_init successful");
      LMIC_reset();
      LMIC_setSession (0x1, DEVADDR, NWKSKEY, APPSKEY);
      LMIC_setLinkCheckMode(0);
      LMIC.dn2Dr = DR_SF9;
      LMIC_setDrTxpow(DR_SF9, 14);
      do_send(&sendjob);
    }

Conttent of oslmic.c at line 53 is ASSERT(0);:

    void os_init() {
        if (os_init_ex((const void *)&lmic_pins))
            return;
        ASSERT(0);
    }

Thank you for your help!

Same question asked in the TTN forums.

srnet:
Same question asked in the TTN forums.

It is not a crime to reach out for help on multiple forums that address different users :).......

1 Like

Issue solved - wrong pinmapping. Sorry for your time.