jbaumann / pio_and_stm32cubeide

Use PlatformIO with Projects generated by STM32CubeIDE
Apache License 2.0
23 stars 9 forks source link

Working with pio drivers while Cube drivers present #11

Closed GregoryLakewood closed 6 months ago

GregoryLakewood commented 6 months ago

More of a question than an issue, I am not sure if I am using this right. CubeIDE generates Drivers/ folder, and since .py script includes all of the folders in src_dir = ./ I get redefinition of symbols error. To bypass this I needed to change .py setup script so it ignores CubeIDE generated folder. Is it the intended way tho? Maybe it can be done in platform.ini for more convenience?

jbaumann commented 6 months ago

I don't understand the situation yet. What exactly is happening? Could you describe the project layout and maybe the output of the script? And I assume we are talking about the "automatic_cubemx" script?

GregoryLakewood commented 6 months ago

Reproduction:

  1. make a project with STM32CubeIDE
  2. follow instructions pio_and_stm32cubeide/automatic_pio/Readme.MD
  3. build pio in vscode
  4. get redefinion of symbols error

My first thought was to modify .py script so it ignores Drivers/ folder.

jbaumann commented 6 months ago

Please use the automatic_cubemx script, the others have not been changed in a long time and are mostly for documentation purposes.

GregoryLakewood commented 6 months ago

My project requires more automatic_pio option rather than the other. I understand that automatic_pio is not supported. Nevertheless, simply ignoring Drivers/ folder works well in my case.