Skip to main content
Associate III
December 13, 2024
Question

Unable to use CubeMX to generate code for LoRa Wio E5 (STM32WLE5JC)

  • December 13, 2024
  • 2 replies
  • 738 views

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?

user_01_0-1734116267392.png

 

2 replies

STTwo-32
Technical Moderator
January 7, 2025

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

user_01Author
Associate III
January 9, 2025

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.

STTwo-32
Technical Moderator
January 9, 2025

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