Modifying APP_ENTRY_POINT
I am using a STM32f103CB chip and am creating a bootloader. In the thumb_crt0.s file, there is a line " #define APP_ENTRY_POINT main" which tells the system which address to branch to on startup. I tried to redefine this for my bootloader, but I always get errors that the function that I am trying to use instead of main (bootmain) is an undefined reference. I have created a bootmain function.Can you actually replace main as the starting function? If so, what are the steps required? I know it is not necessary to rename main to create a bootloader, but I think it helps with clarity. Thanks.
Please sign in to leave a comment.
Comments
2 comments