Hi,
My bootloader does its job of jumping to a desired location where the main application file is residing. some part of main application works , But for some reason the main application hangs at first HAL_Delay() statement.
Can anyone please help me figure out what went wrong.
Thanks, Abhi
Don't develop boot loaders as if they are full applications. Only turn on what you need. And consider turning things off again before jumping to the app.
If the app has a code sequence that assumes all registers are in the hw reset state then the code can fail. Either because the code assumes a specific register can be left as is. Or because the order of the initialization can be dangerous if the boot loader have already performed the last steps when the app performs the first steps.