Skip to main content
Associate
January 30, 2025
Question

APPEUI and APP KEY go to 0's after reset on I-NUCLEO-LRWAN1

  • January 30, 2025
  • 1 reply
  • 596 views

I can send commands to my end-node (NUCLEO L073RZ + I-NUCLEO-LRWAN1), and I downloaded the AT_MASTER project. I am able to change the APPKEY and other parameters, but when I reset the module to try and see it on LORIOT, the appkey and other parameters go back to what the same numbers, with 0's on APP EUI and etc. These parameteres aren't being saved on Flash I guess. 

 

I tried change them through TeraTerm with AT commands and also this code on main.c:

 

 

	uint8_t AppEUI[8] = { 0xE3, 0xE6, 0xEF, 0x9A, 0xA9, 0xDF, 0x9E, 0xD8 };

	LoRa_SetAppID(AppEUI);

	// Definição da chave de 16 bytes (128 bits)
	uint8_t AppKey[16] = { 0xE2, 0x4F, 0x43, 0xFF, 0xFE, 0x44, 0xC3, 0x93,
	 0xE3, 0xE6, 0xEF, 0x9A, 0xA9, 0xDF, 0x9E, 0xD8 };

	// Chamando a função com o tipo correto (por exemplo, AT_APPKEY)
	LoRa_SetKey(AT_APPKEY, AppKey);

	Lora_UpdateConfigTable();

 

 

How can I solve this?

Thank you!

1 reply

STTwo-32
Technical Moderator
February 28, 2025

Hello @pmendes03 

I think you are using an old version. Please try the last one. Also, it will be a good idea to migrate to our STM32WL the new SubGHz MCUs.

Best Regard.

STTwo-32