2024-12-09 03:44 AM
Hello,
I recently upgraded my CubeMX to V6.12.1 from V6.6.1. All of a sudden, I have realised that when I generate code from the updated CubeMX, it removes my Post build command line from my IAR EWARM project.
Is there a new setting or such that I am missing that does not do that? Or is it a CubeMX problem?
I thank you in advance!
Makarand
2024-12-10 06:34 AM
Hello @Makarand
First let me thank you for posting.
1- In STM32CubeMX, ensure that the option "Backup previously generated files when re-generating" is checked. This setting can help preserve your previous configurations, including build steps, although it may not guarantee complete retention of custom commands.
2- Scripted Backup: Create a script that automatically saves your current post-build commands to a separate file before each code generation.
3- Check the project settings in IAR and ensure that the post-build commands are correctly configured under Project > Options > Build Actions > Post-build Command. Sometimes, reconfiguring these settings can help maintain them during regeneration.
THX
Ghofrane