|
Thanks!
The problem is that it's not a classic design of a bootloader. so i must choose one of the above before jump to other section (IMAGE): 1. periph reset. (easy but dangerous). 2. clean all the used peripherals. (we may not close all peripherals)
anyway, i chose the first one, and i wanted to share the results and ask one more question: Because the reset changes the master clock to slow clock, we must be aware to that, so i changed it by myself before. also i added some nops after the reset (i tried to run a for loop after the reset, but the index init was totaly wrong because of the reset). so my question is what else do you think i need to do before/after the reset? also what do you think i need to do before jumping to the IMAGE (in addition to the peiph reset), maybe disable interrupts? i think the periph reset does it... do u have any additional information about this reset?
Thanks a lot, Dan
|