Where to apply interim patches?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-06 2:50 PM
If I find a bug in CubeIDE/CubeMX's code generation (like not turning on power to SDMMC), is there somewhere on my system that I can alter the boiler-plate code that is used to generate the project until the correction comes out in a future release?
Thanks,
Andrei (from The Great White North)
Solved! Go to Solution.
- Labels:
-
Bug-report
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-06 10:12 PM
You're correct, it should be mentioned in the STM32CubeMX User Manual, but it is not (February 2025 UM1718 Rev 4).
You enter a path-qualified shell command that will be executed. Probably a shell script containing patch etc.
hth
KnarfB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-06 3:05 PM
You can define a post-generation command (script).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-06 3:17 PM
I see that there is an "After Code Generation" box in Project Manager/User Actions.
Any hints as to how to use it? sed scripts? awk? Is there any documentation to follow? ST videos?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-06 10:12 PM
You're correct, it should be mentioned in the STM32CubeMX User Manual, but it is not (February 2025 UM1718 Rev 4).
You enter a path-qualified shell command that will be executed. Probably a shell script containing patch etc.
hth
KnarfB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-07 11:02 AM
Thank you. I'll mark that as a solution unless ST staff want to give a better answer.
A
