AnsweredAssumed Answered

DSC 56F82746 Software Reset / Bootloader Problem

Question asked by Peter Becher on Oct 29, 2018
Latest reply on Nov 1, 2018 by Peter Becher

Hi All

Having a problem with doing a Software Reset on a 56F82746 in order to jump to my bootloader.

I tried a number of things but would think the SWRst flag in SIM_CTRL would work.

I do the following code to disable things and then do the software reset.

//Disable timer and interrupts, pjb114.

TimerInterruptGP_Disable();

asm { nop; nop; nop; nop; nop; nop; }

Cpu_DisableInt();

asm { nop; nop; nop; nop; nop; nop; }

 //asm { jmp 0x7800 }

SIM_CTRL |= SIM_CTRL_SWRst_MASK; //TEST Full reset to get to bootloader, pjb114

while (1) {} //asm { nop; nop; nop; nop; nop; nop; }

It just locks up the processor somewhere and it is hard to troubleshoot since it is between normal code and bootloader.

Any thoughts on what might be happening?

Thanks

Pete

Outcomes