Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifying Pinout - IOC Code Regeneration Question #27

Open
KonRoz opened this issue Mar 22, 2024 · 6 comments
Open

Modifying Pinout - IOC Code Regeneration Question #27

KonRoz opened this issue Mar 22, 2024 · 6 comments

Comments

@KonRoz
Copy link

KonRoz commented Mar 22, 2024

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

@thonghatmit
Copy link

i have the same problem

@thonghatmit
Copy link

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

@danak6jq
Copy link
Owner

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

@thonghatmit
Copy link

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

@thonghatmit
Copy link

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

@wql2002
Copy link

wql2002 commented Nov 27, 2024

Same issue. I also wanted to add one pin to adc. After regenerating the code, I found that the code base had huge changes. So my solution is to find out the real difference of adc-related codes and manually change it to the original codebase instead of using .ioc to regenerate the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants