Hello,
I'm developing a bootloader for a STM32F2 Controller. One Feature of the bootloader is that it can start the STM32 internal DFU bootloader. Therefore I use some RAM Region where I set a Special value that is read by my bootloader when the bootloader starts.
My question is: What is the better Approach? Read the value in Assembler code (Startup.s) and directly start the DFU bootloader from Assembler code or read and start from the main function?
I know that the assembler code does not directly call the main function but an __main function. Can anyone tell me what excatly is done in the __main fcuntion.