2019-01-11 1:00 PM
I have a question on initialization in a custom booloader and application code.
Usually initialization of a bootloader is as follows:
When jumping to application (after disabling interrupts) I usually employ all of the above, re-initializing clocks and peripherals again and enabling interrupts. I also modify SCB->VTOR in a SystemInit() to set it to 0x08008000.
The question is - since all registers are kept intact (are they?) after jump, would it be legal and advisable to do the following in application initialization:
Of coarse, all skipped steps should be conditionally employed in debugging by USE_DEBUG option.
Is anything wrong with this approach?
Would it be safer just to use all the routines in both bootloader and application?
Thank you,
Gennady
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.