Skip to main content
irene
Associate II
September 12, 2019
Question

STM32CubeIDE changes "Preprocessor" and "Include paths" settings whenever the code is updated

  • September 12, 2019
  • 3 replies
  • 6320 views

I created a new project on STM32CubeIDE and I'm using the code generated by the software itself when I set the MCU pinout configuration using the Device Configuration Tool (.ioc file, aka the STM32CubeMX interface). Whenever I modify the pinout (i.e. the .ioc file), the generated code is updated, but file settings are refreshed. Therefore, every time I modify the pinout I have to set up again all the settings, like Properties -> C/C++ Build -> Settings -> Tool Settings -> MCU GCC Compiler -> Preprocessor and Properties -> C/C++ Build -> Settings -> Tool Settings -> MCU GCC Compiler -> Include paths.

Is this a bug or is there a way to set up "fixed" settings?

I'm using STM32CubeIDE Version 1.0.2.

This topic has been closed for replies.

3 replies

Markus GIRDLAND
ST Employee
September 16, 2019

This was reported in another thread so I wrote a ticket for it and it seems to be fixed in the latest build (unreleased). So this should be fixed in the next version of CubeIDE.

ser_u
Associate
September 16, 2019

Thanks. Also settings like compiler optimization and linker file general settings (location of .ld script) are overwritten sometimes, when regenerating.

Does the fix prove solutions for these problems aswell?

Markus GIRDLAND
ST Employee
September 17, 2019

Yes, it does :smiling_face_with_smiling_eyes:

irene
ireneAuthor
Associate II
September 16, 2019

Thank you so much!

Cartu38 OpenDev
Graduate II
October 18, 2019

Definitively a bug.

Sounds some improvements have been done Thanks STM32CubeIDE V1.1.0 just released on st.com