2024-12-13 10:59 AM - last edited on 2024-12-30 01:13 AM by Amel NASRI
I am using LoRa Wio E5 dev kit with ST-Link V2 clone. From Seeed Studio E5 project I can successfully run the LoRa demo code that sends a stream of dummy values like temp, battery voltage well and connects with my TTN server. When I try to use CubeMX to generate code even changing just the LED user label brings errors after a build. When looking at the place where the LED label should have changed, it didn't :( . Like CubeMX says it generated the code but I can't see any sort of changes in the actual code. What might be the problem?
2025-01-07 06:18 AM - edited 2025-01-07 06:18 AM
Hello @user_01
After changing the label of a GPIO, you should change all calls of the old labels since they are no more available (use the new labels instead of the old ones in each call).
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-01-08 09:01 PM
Hi, it was not just that but changing anything for the case like enabling I2C, USART in cubemx or anything and then generating code just completely moves the existing user code out of order because some snippets of user code disappear for no reason which when not there would obviously throw up errors.
2025-01-09 12:07 AM
If your code is not between any /* USER CODE BEGIN XXxx */ and /* USER CODE END XXxx */, if you change anything on the .ioc file and regenerate, the code will be erased.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.