AnsweredAssumed Answered

How to get the S32 Design Studio to write in MPC5748G flash?

Question asked by Kent Clark on Aug 11, 2016
Latest reply on Aug 14, 2017 by xiemeijuan

I have an application which I’m trying to debug for the first time using S32 Design
Studio on a new MPC5748G processor and the debugger fails to write into flash.  See below -

 

Connection
from "127.0.0.1" via 127.0.0.1

Copyright
2012 P&E Microcomputer Systems,Inc.

Command
Line
:E:\Freescale\S32_Power_v1.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.3.3.201605241936\win32\pegdbserver_power_console
-device=MPC5748G -startserver -singlesession -serverport=7224
-interface=USBMULTILINK -speed=1000 -resetdelay=300 -?

 

 

CMD>RE

 

 

Initializing.

Target
has been RESET and is active.

CMD>CM
E:\Freescale\S32_Power_v1.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.3.3.201605241936\win32\gdi\P&E\freescale_mpc5748g_1x32x1524k_cflash.pcp

 

 

Initializing.

Initialized.

 

 

;version
1.01, 04/23/2015, Copyright P&E Microcomputer Systems, www.pemicro.com
[5748G_6096k]

 

 

;device
Freescale, MPC5748G, 1x32x1524k, desc=CFlash

 

 

;begin_cs
device=$00F8C000, length=$005F4000, ram=$40000000

 

 

Loading
programming algorithm ...

 

 

WARNING
- Selected .PCP file has been modified. CRC16 = $6D58

 

Done.

 

CMD>EM

 

 

Erasing.

 

Module
has been erased.

CMD>PM

 

 

Programming.

 

Processing
Object File Data ...

                               

Error
during programming.

Error
Programming flash of device

 

Error
occured during Flash programming.

 

 

 

Starting
reset script
(E:\Freescale\S32_Power_v1.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.3.3.201605241936\win32\gdi\P&E\s32e200_mpc574xg.mac)
...

 

REM
This script is compatible with MPC574xG devices.                                                                                                                                                   

 

REM
Initialize all of the Main SRAM - 768KB                                                                                                           
                                               

 

Initializing
RAM from $40000000 to $400BFFFF.

 

 

 

Reset
script
(E:\Freescale\S32_Power_v1.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.3.3.201605241936\win32\gdi\P&E\s32e200_mpc574xg.mac)
completed.

 

 

 

PE-ERROR:
Error downloading to the device.

Interrupt
command received. Halting execution.

 

In Eclipse I have access to memory and some control over the processor which I halt.  Looking over post on this forum I’m speculating
it’s a Censorship/Flash Write enable issue.  Here is a memory dump of 0xFFFF_4000 (PASS_LCSTAT), etc. which looks like
there are bits needing to be set to zeros that I could to manually.

Memory Dump 0xFFFF000 8-11-2016.png

Is there a script I can run in powerpc-eabivle-gdb or a tool for JTAG which will set the

processor up for code development assuming it’s not bricked up?

 

Also what changes a processors Life Cycle status.  Is there any type of  timer/counter performing this processes in the core?

 

Any help on this matter would be appreciated.

 

Best regards,

Kent

Outcomes