Target may have enterd power reset escalation .please power cycle the board

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Target may have enterd power reset escalation .please power cycle the board

3,473件の閲覧回数
jafarsadakpeeru
Contributor I

Board : MPC5748G

Continuously getting this error after power reset also.POwer_reset.JPG

2 返答(返信)

3,087件の閲覧回数
chetandev_ksd
Contributor I

Hello,

I had same problem and luckily I was able to solve the problem without using any external debugger.

1) The problem

I have recently purchased DEVKIT_MPC5748 and within 2days I got reset escalation that you have shown. I was playing with Watchdog timer (SWT) which ended up resetting the MCU every time it boots up.

pastedImage_4.png

RGM_DRET sets the 4bit threshold for ‘destructive’ reset escalation to keeping the chip in the reset state until the next power-on reset triggers a new reset sequence. SWT are one of the sources for destructive reset  and my SWT blunder has caused MCU to reset 16 times (F is the defualt value) after which it holded reset line to LOW . So, one has to recycle the power again to bring back the MCU.

If you have accidentally written to HSM area then device recovery using solution I am going to mention may not happen (didn't happen to me and I don't want to try it). See this thread for more information:

https://community.nxp.com/thread/447721?commentID=952150#comment-952150

2) The Solution

When you power up the devkit, the MCU immediately enters into destructive reset escalation due to some reset sources. Mine was SWT from module, which caused MCU to reset 0xF times after which MCU as hanging in PHASE0 reset sequence. This all happens within a short period of time and when openSDA debugger tries to communicate with MCU it will see a MCU in destructive reset escalation state.

Here is the simple solution,

1) hold the RESET switch before you plug your devkit to PC (you should keep holding it)

2) upload the working elf (image that is working perfectly fine)

3) You will start seeing normal upload process which you missed

4) Once the flash image has been uploaded, you will however get same reset escalation message. But don't worry, now you can release your Reset line. 

5) Now debugger will communicate with your recovered MCU.

by holding the reset line before power on you are ensuring that mcu will never execute your problematic flash image. Then mcu will not be entering destructive reset escalation.

3) For future 

If you don't want destructive reset escalation to happen. You can write DRET field of RGM_DRET to zero immediately after boot up. This will disable the 'destructive reset escalation' feature (I have not tried it, there may be more configurations). 

3,087件の閲覧回数
martin_kovar
NXP Employee
NXP Employee

Hello,

reset escalation is state, which occurs after reset is trigger 15 times without any handling. For example, if watchdog resets microcontroller 15 times consecutively, reset escalation occurs and microcontroller is hold in permanent reset.

Please ensure, you code does not reset microcontroller. For example, you can try to download any example included in S32 Design Studio and check, if this error disappear.

But you did not mention, if you are able to download any software into the microcontroller. If no, please ensure you use the latest version of S32DS (2017.R1) an you have installed the latest update. Please see the link below:

https://community.nxp.com/docs/DOC-343018 

If you are not able to download any code even if the update above is installed, please measure rest line immediately after Power on Reset and check, if there is some signal toggling on the reset line and eventually, you can share the measurement here.

Regards,

Martin

0 件の賞賛
返信