Error Arduino\libraries\arduino-lmic-master\src\lmic\oslmic.c:53

Hello,
I am trying to connect my Arduino Uno to ttn and I am using ttn-otaa example
I am using rfm95 sx1276 and 868mhz frequency
and I had to set LMIC_DEBUG_LEVEL to zero because of the memory
and I am getting this error

Starting
FAILURE
C:\Users\Gufran\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\oslmic.c:53

oslmic.c file line 53 has this code:

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

The code in the lmic_project_config file is:

// project-specific definitions
#define CFG_eu868 1
//#define CFG_us915 1
//#define CFG_au915 1
//#define CFG_as923 1
// #define LMIC_COUNTRY_CODE LMIC_COUNTRY_CODE_JP /* for as923-JP; also define CFG_as923 */
//#define CFG_kr920 1
//#define CFG_in866 1
#define CFG_sx1276_radio 1
//#define LMIC_USE_INTERRUPTS

// Pin mapping
const lmic_pinmap lmic_pins = {
.nss = 10,
.rxtx = LMIC_UNUSED_PIN,
.rst = 5,
.dio = {2, 3, 4},
};
I am mapping the pins like in the image bellow and dio2 is connected to pin4

Can you please help me I am not able to go any further.

the problem was solved after resetting Arduino board

1 Like

how did you reset it I have the same problem