2023-10-23 01:39 AM - edited 2023-10-23 01:41 AM
Hello Team,
I am trying to use the .extsettings to handle my project structure in the stm32cubeIDE. I want to exclude a particular file from the list of source files that I have in my directory. However, I did not find any solution for this in the user maual - https://www.st.com/resource/en/user_manual/um1718-stm32cubemx-for-stm32-configuration-and-initialization-c-code-generation-stmicroelectronics.pdf
Following is my folder structure:
The .ioc and the .extsettings are placed in the directory where the "Application" folder is present.
Out of which, I want to exclude file_2.c and file_2.h from the "Application" folder via the .extsettings. I am looking at a solution which does not expect one to change the state of the "Exclude resource from build" via the cubeIDE as I am trying to control this information via the .extsettings itself.
Any Leads on this would really be of help.
Thank you,
Janani
2023-10-24 06:45 AM
AFAIK, the .extsettings file has no provisions for your need. But you can use post-generation script which exists in recent versions of CubeMX to "fix" the generated project.