I want to do a system reset at the end of my program on 5675K.And I write the code on the end of my programme.But the programme can not do a system reset by itself.So I only do a system reset on power.Why?
The reset code is:
|ME.MCTL.R = 0x00005AF0;/*复位*/|
ME.MCTL.R = 0x0000A50F;
My program can not do the system reset with you code.I am doing the CAN bootloader .I need do the software reset on the end of the CAN bootloader program.After reset,it will jump to the 0x00000000 to run the application program.But the CAN bootloader programm can not jump normally! There is hardware initialization in CAN bootloader programm. So I suspect that there are some programme about hardware initialization.
Can you give me some hardware initialization projects about reset?
Believe me my code do a Software Destructive RESET exactly like it is described in reference manual
Also if you check the debugger you will see the F_SOFT_DEST flag set in RGM[DES] register.
After reset SSCM module search for valid RCHW on bootable locations.
The device boots from first valid RCHW. On offset 0x4 from valid boot address is jump to user code start address.
You can see all the destructive reset sources in DES register:
So SWT or Voltage violation. For example you can control external SBC with SW via SPI/CAN or so.