How to rename main function?
I'm working on a bootloader on an STM32. Both the bootloader and the main program are being written and debugged in the STM32CubeIDE. To avoid issues when debugging both applications simultaneously, I've had to edit the linker file (startup_stm32f446retx.s) to jump into boot_main instead of main when it calls the application entry point. This means that I also have to rename main to boot_main in main.c. However, every time I re-configure a peripheral using CubeMX, main.c is generated by CubeMX and it wipes out my name change to the main function. Is there a "proper" way to permanently change the name of the main function for a given program?
