I am using MPC5748G-DEVKIT with a simple 'blinky' program that will flash an LED on the DEVKIT. It is using the default linker script etc. During one of the flash operations the board reached what I read-up as being a reset-escalation condition (Red LED always ON). More reading on this suggested that I could recover from this with a PEmicro debug probe (which I do not have) or a sequence of steps (from one of the other answers here DEVKIT-MPC5748G is in reset state ).
I tried the recovery sequence which used OpenSDA debug through S32DS.
These are the steps:
- Power through external 12 V supply
- Connect USB
- Remove the power jumper
- Keep the jumper just above the external supply side of header
- Press the debug button in eclipse
- A pop-up for power cycling the controller will occur
- Click Ok and connect the jumper exactly at same instance
This actually seemed to recover the board (the Red LED indication went away). I was then also able to flash my blinky code again and continue debug.
However, during one of these flash operations the S32DS stalled at 98%. After waiting for a long time I closed the studio application and restarted the PC. At this point the DEVKIT again reached reset-escalation state (Red LED always ON). After this point I've not been able to recover even with the steps above.
Question 1: What could have caused my DEVKIT to reach this state?
Question 2: How can I recover from this state? (while I don't have the PEmicro cable at hand the discussions on that cable imply it is not guaranteed to solve the problem).
Question 3: What should I NOT-DO to avoid these problems during development and debug using the DEVKIT?
This is the log seen at 98% stall on S32DS.
## Start of log text.
(Connection from "127.0.0.1" via 127.0.0.1
Copyright 2017 P&E Microcomputer Systems,Inc.
Command Line :C:\NXP\S32DS_Power_v2017.R1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_188.8.131.52709281658\win32\pegdbserver_power_console -device=MPC5748G -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=OPENSDA -speed=5000 -port=Ì
MPC574xC Device detected.
Target has been RESET and is active.
MPC574xC Device detected.
;version 1.05, 06/26/2017, Copyright P&E Microcomputer Systems, www.pemicro.com [5748G_6080k]
;device NXP, MPC5748G, 1x32x1520k, desc=CFlash
;begin_cs device=$00F90000, length=$005F0000, ram=$40000000
Loading programming algorithm ...
WARNING - Selected .PCP file has been modified. CRC16 = $5A63
Verifying object file CRC-16 to device ranges ...
block 00FA0000-00FA0003 ...
block 00FA0010-00FA0013 ...
block 01000000-01000129 ... )
## End of log data -- this is where the Studio stalled.