Introduction
The startup procedure will always be executed when a Power Reset, a Hardware Reset, a Software Reset or the wakeup event occurs. Before calling the main function, the device will do some initialization in order to bring the chip to a more suitable state. The startup procedure can be divided into two parts. ROM Boot starts at the zero address, and its code is fixed in ROM and cannot be modified. Platform initialization starts at the beginning of the image and can be used to handle custom behaviors.