Hi, [quote] 3. after reset, the loader figures out it was a software reset thus the magic value is valid and jumps to the application entry point instead of bootloader's one [/quote] Does your bootloader reads the magic value to know if it's valid or invalid or if it's SW reset (WD reset) then it assumes magic value is valid. If it's IInd case (which I think may not be) then you can always read the RESC register to know if reset was due to WD. If it's the Ist case (bootloader reads magic key) , then you are right that on this device all the RAMs are initialized to 0x0 by BOOTROM hence RAM can not be used to store the magic key. We do have few registers which are not cleared on WD reset and can be used for this purpose if not using the HIBERNATE mode on this device. Basically if you are not using the HIBERNATE feature of this device then you can store the magic key in HIBBOOTMODE [31:8] ( please leave value in [7:0] bit field to default ) register and use that. Hope this helps. Regards, Vivek Singh
↧