2024-07-11 06:37 AM
Hi all.
Working with the Pack Creator I know I can create a header file that contains defines that are editable in the CubeMX view.
I'd like to know if it's possible to have a pack that places defines in the project settings instead of a header file?
Solved! Go to Solution.
2024-07-25 03:03 AM
Update, the solution I used:
When using the Pack Creator, in the STM32CubeMX tab
Select the relevant "mode" on the left hand side
Select the "Preprocessor Defines" tab
Click on Add Define & select "Cdefine" along with the Preprocessor name & value if necessary.
2024-07-15 06:16 AM
Hello @pywtk
First let me thank you for posting.
This could be done with STM32CubeMX via the .extSettings file.
Check the "6.4 Additional settings for C project generation" section of the STM32CubeMX User Manual
BR,
Semer.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-07-15 07:04 AM
thanks for the tip!
Say then that I include a .extSettings file with my pack.
Say also that there's a pre-existing .extSettings file within the project before I import/enable my pack.
Will the extSettings file in my pack overwrite the pre-existing one?
2024-07-25 03:03 AM
Update, the solution I used:
When using the Pack Creator, in the STM32CubeMX tab
Select the relevant "mode" on the left hand side
Select the "Preprocessor Defines" tab
Click on Add Define & select "Cdefine" along with the Preprocessor name & value if necessary.