Abnormal reboot during flash programming (use C55 Flash Driver- c55_FlashProgram(), c55_FlashCheckStatus()).
after My JTAG cannot attached MPC5748G.
how to solve this problem?
and Do you plan to make improvements in this area in the future?(chip revision??)
Hi, here is the another same problem with this kind of Issue.
I am using S32 design studio and openSDA debudder to dubug sample application. It worked for 2 3 hours and after that the board is giving problem to load the programme.
It is stucks at verification of block. have a look at screen shot.
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_126.96.36.199709281658\win32\pegdbserver_power_console -device=MPC5748G -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=OPENSDA -speed=5000 -resetÌ
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-00FA0007 ...
This problem should be fixed by Pemicro Eclipse Plugin Update v1.6.9.
The HSM memory access was removed from the default Flash programming algorithms.
See the thread below for the instructions how to install Pemicro update. It's related to ARM version of the tools but for Power version simply select e200 item.
The updated Pemicro plugin will be included in S32DS for Power Update 2 that is going to be released by the end of July 2017.
was this update verified? I have latest S32DS and updates, but it seems I just bricked devkit. Further comment in in https://community.nxp.com/message/952150?commentID=952150#comment-952150
I can see in the history that we was already talking about reset escalation feature (MPC5748G Cannot attached JTAG after erase all? ) That's the first reason that could explain such problem.
Second reason is following:
If I can understand your description, the flash operation (program/erase) has been terminated by unexpected reset, so the flash has been left in undetermined state. That leads to ECC errors in affected flash blocks.
There are two HSM code blocks in the memory:
If there are ECC errors in these blocks, the device may stuck in reset. During reset, the SSCM module searches for valid boot header. If it reads corrupted data from HSM blocks, it will not exit the reset. This is security feature and there's no way to recover. It is not sufficiently documented yet, the work related to this behavior is still ongoing. I hope this information will be included in next release of the reference manual. The workaround is: program the HSM blocks only in factory where it is possible to ensure that the programming will not be terminated by unexpected reset or power-off.