I’m trying to use the LoRaWAN_FlashRead and LoRaWAN_FlashWrite API functions, but I see strange behavior. See code snippet below.
uint8_t miscbuf; LoRaWAN_FlashRead(miscbuf, 1, 8); miscbuf = 49; miscbuf = 77; LoRaWAN_FlashWrite(miscbuf, 1, 8); LoRaWAN_FlashRead(miscbuf, 1, 8);
After the first flash read, miscbuf contains all zeros.
Just before the flash write, the third and fourth elements of miscbuf are 49 and 77, respectively.
After the flash write, miscbuf again contains all zeros.
After the second flash read, miscbuf still contains all zeros.
Am I doing something wrong here?