RAK3172 LoRaWan_OTAA Empty DevEUI APPEUI APPKEY

Hello, I was using the example form WisDUORAK3172 Evaluation Board. I want to get the DevEUI that is located in the MCU. I was creating a project at STM32CubeIDE and there was an option to put zeros at DevEUI and the program would use the DevEUI in the MCU. I could get those parameters at STM32CubeIDE, and also creating a program for RAK3172 as AT_SLAVE. These are the parameters i got:
Captura de pantalla 2025-03-05 173837
But when I use the program in Arduino I only get zeros when I use AT commands.

Welcome to the forum @jeaugohu

With “when I use the program in Arduino” you mean you are using RUI3?

RUI3 is using DevEUI, AppEUI and AppKey that were stored in flash memory during production.
Our DevEUI’s are unique and assigned by the LoRa Alliance. RUI3 is not using any STM32 internal ID’s to create these values.

If you had used STM32CubeIDE first, then these factory settings are deleted.

You can use the DevEUI from the sticker to flash it again, then use AT+FACTORY to save them as default settings.

But every time you flash an app from STM32CubeIDE, these are deleted again.

1 Like

Thank you for the answer. Yes I was talking about RUI3. But, why when I use stm32cubeIDE I get those values in the image. Where is stored that DevEUI?

I don’t know where STM32CubeIDE gets this values. I never used it.

It should be somewhere in the code, you have to search for it.

Hi @jeaugohu ,

You should be able to modify the keys in secure identify file - se-identity.h.

If you are using AT slave, this is the directory.

image


Hello, I don’t put any Device EUI. In this part of the code, It says “When set to 00,00,00,00 DevAddr is automatically set with a value provided by MCU platform”. I want to know if I can got this value in the arduino program, or where can I find this value. Because when I set to "0"s. I get these values:

We have very limited knowledge on the STM32WL SDK examples for STM32CubeIDE. It might be best to ask support as well from ST forum.

As for the DevAddr, if you are joining in OTAA mode, this will be automatically updated once you join.

1 Like