2023-12-11 02:46 PM - edited 2023-12-11 02:48 PM
I downloaded Seeed-Studio LoRaWan-E5-Node, and all works fine till I use the MX component to set up microcontroller configuration (for example, set up LoraWAN or I2C). When I use the MX component and decide to generate code after changes to LoraWAN or I2C components, I always get many build errors. How to avoid such a situation?
I work with STM32CubeIDE Version: 1.14.0. Stm32 Cube MX version 6.10.0.
Solved! Go to Solution.
2023-12-16 12:20 PM
I found a solution. Download the latest "https://github.com/STMicroelectronics/STM32CubeWL" and use the LoraWAN end node application. All work great now.
2023-12-11 05:42 PM
Only put code within USER CODE BEGIN and USER CODE END sections.
2023-12-12 06:55 AM
No, it destroys its code, not mine. I downloaded the code from Seeds Studio Git Hub.
I imported the project to the Stm32CubeIDE:
Next, I imported it into Stm32CudeIDE. I built it without any problems or any changes.
Next, I opened the MX component and made some changes to the microcontroller configuration. I double-clicked on the LoRaWAN_End_Node.ico, and made changes to the LORAWAN settings.
Upon closing the MX component, it asked me to generate code. I answered yes.
I tried to build the project, and I got several unexpected build errors.
I didn't do any manual changes to the code.
What is responsible for that situation?
2023-12-12 07:54 AM
WTF?
After saving code from MX I see:
2023-12-12 08:09 AM
Not real sure, probably just isn't set up for that functionality right now.
2023-12-16 12:20 PM
I found a solution. Download the latest "https://github.com/STMicroelectronics/STM32CubeWL" and use the LoraWAN end node application. All work great now.