Startup code customization options feature request
On STM32Hxx and STM32N6 families I have faced a situation where I need to modify startup assembly code (startup_stm32xxx.s) to copy code (.text) into ITCM or clear RAM/TCM areas, for clean data or to prevent ECC error (on STM32N6). But next time CubeMX generates code, those changes are overwritten. Same story with SystemInit function in system_stm32xxx.c. So either manual restoration or script must be done. But it's getting quite annoying after several projects. I believe the purpose of CubeMX is to ease development, so I make a feature request:
Please add user code begin/end comment sections that exist in main.c also into startup_stm32xxx.s assembly and system_stm32xxx.c source files.
For startup assembly I wish the user sections are:
- User symbols definitions.
- User data copy.
- User zero fill.
For system file I wish the user sections are quite similar to main.c:
- User includes.
- User defines/constants/variables.
- In SystemInit() function:
- In the beginning.
- After VTOR setting
- At the end.
- User functions in the end of the file.
