3.4.5 How Can I Have Code Executed Straight After Reset?
A special hook has been provided so you can easily add special “powerup”
assembly code that will be linked to the Reset vector (see 5.10.3 The Powerup Routine). This code will be
executed before the runtime startup code, which in turn is executed before the
main()
function (see 5.10 Main, Runtime Startup and Reset).