AnsweredAssumed Answered

K22 MCU goes into CORE LOCK UP state when try to SOFT RESET

Question asked by hemant undale on Nov 12, 2013
Latest reply on Jul 16, 2014 by hemant undale

Hi to all,

 

I am using Cortex m4 processor from freescale K22,

In boot loader i download my firmware and after that I do following steps to soft restart the k22.

 

   // Disable - WatchDog and disbled IRQ.

  WDT_DISABLE();

  Disable_ALL_IRQ();

  DisableInterrupts;

 

  // Small delay is required before Soft RESET.

  delay1S();

 

  // SOFT RESET For K20  ???? is it right for k22 based mcu?????

    SCB_AIRCR = SCB_AIRCR_VECTKEY(0x05FA) | SCB_AIRCR_SYSRESETREQ(1) ;

while(1);

 

Now when MCU gets soft restart signal, next time it goes into CORE LOCK UP state

Ref:

ARM Information Center

 

Then it remains in Hard fault mode until i give power on reset then this hard fault state never occurs.

 

Can any body tell why this Hard fault state occurs when I soft restart?????? Also above code works well for k20 based MCU but then why not for K22 ?????

 

I have created same thread on ARM.com

 

http://community.arm.com/message/14623#14623

 

 

Thanks in advance!!!

Outcomes