Seeed-LoRa-E5 icon indicating copy to clipboard operation
Seeed-LoRa-E5 copied to clipboard

Modifying Pinout - IOC Code Regeneration Question

Open KonRoz opened this issue 11 months ago • 5 comments

Building with the default configuration works fine. That said, when changing the pinout in CubeMX (e.g., enabling I2C1) regenerating the code throws several errors as shown below regarding lora_app_version.h not being found. Am I missing something basic?

I'm hoping to use the I2C and UART interfaces on the STM32WL in the LoRa-E5 module, but have had trouble getting over this hump. Thanks!

image

KonRoz avatar Mar 22 '24 03:03 KonRoz

i have the same problem

thonghatmit avatar May 24 '24 08:05 thonghatmit

for me, i need a ADC pin, but ioc generate faulty code

thonghatmit avatar May 24 '24 08:05 thonghatmit

If you change the configuration, you may need to change the source files. CubeMX just helps with initialization and configuration. I'll take a look but this is really something to do with ST's toolchain

danak6jq avatar May 24 '24 17:05 danak6jq

i think so, it's like they did not optimize for every code generator tool chain.

thonghatmit avatar May 26 '24 07:05 thonghatmit

it's very complicate problem. With STM32CubeIDE tool chain, when i generate code with adc pin, adc_if.h is gone, i back up this file, but some code like generate DBG pin is gone, i think some configuration code is outside user code tag section

thonghatmit avatar May 26 '24 07:05 thonghatmit