Hi all,
I'm using MPC5777C, P&E Micro Multilink FX and s32 design studio. Everything works fine until yesterday, whereas I try to flash a program but get a module that could not be erased bug. Then I realize the program could have a potential link program. So I tried to flash a blank project to the processor after that, but the processor seems is locked, and any project gives me the same result (Module could not be erased), the fault log is as follows:
Connection from "127.0.0.1" via 127.0.0.1. Connection from port "4593" to 7224
Copyright 2018 P&E Microcomputer Systems,Inc.
Command Line :E:\S32_design_studio_v2.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_2.0.2.202005132054\win32\pegdbserver_power_console -device=MPC5777C -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=USBMULTILINK -speed=5000 -po?
P&E Interface detected - Flash Version 10.46
Flash Data in range 0x00800000-0x00800007.
Flash Data in range 0x00800400-0x008008B7.
Flash Data in range 0x008008C0-0x008015E8.
Flash Data in range 0x008015EC-0x008015FF.
Flash Data in range 0x00810000-0x00810103.
Flash Data in range 0x00811000-0x008119AF.
Flash Data in range 0x00C00400-0x00C006ED.
Flash Data in range 0x00C10000-0x00C100F3.
Flash Data in range 0x00C11000-0x00C11763.
Flash Data in range 0x00C11770-0x00C11C47.
CMD>RE
Initializing.
Device IDCODE is $00000377
Device ID revision is $00000001
Initializing Ram Block 0x00300000-0x00307FFF.
MPC5777C Device detected.
Target has been RESET and is active.
CMD>CM E:\S32_design_studio_v2.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_2.0.2.202005132054\win32\gdi\P&E\nxp_mpc5777c_1x32x2048k_cflash_highspeed.pcp
Initializing.
Device IDCODE is $00000377
Device ID revision is $00000001
Initializing Ram Block 0x00300000-0x00307FFF.
MPC5777C Device detected.
DOUBLE BUFFERING enabled.
Initialized.
;version 1.04, 12/13/2016, Copyright P&E Microcomputer Systems, www.pemicro.com [5777C_8meg_highspeed]
;device NXP, MPC5777C, 1x32x2048k, desc=CFlash_highspeed
;begin_cs device=$30800000, length=$00800000, ram=$00300000
Loading programming algorithm ...
Done.
Programming sequency is : erase, blank check, program, and verify {default}
CMD>VC
Verifying object file CRC-16 to device ranges ...
block 00800000-00800007 ...
Ok.
block 00800400-008008B7 ...
Ok.
block 008008C0-008015E8 ...
Calculated CRC-16 does not match block. (File = $C683, Device = $F15B)
Current content of flash does not match application to be programmed
CMD>EM
Erasing.
Module could not be erased.
Error Erasing flash of device
Error occured during Flash programming.
Device IDCODE is $00000377
Device ID revision is $00000001
Starting reset script (E:\S32_design_studio_v2.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_2.0.2.202005132054\win32\gdi\P&E\s32e200_mpc5777c.mac) ...
REM This script is compatible with MPC5777C devices.
REM Clean GPRs to remove residual data after using algorithm
REM Setup MMU for for Periph B Modules
REM Base address = $FFE0_0000
REM TLB0, 2 MByte Memory Space, Guarded, Don't Cache, All Access
Once Status Register Result = $0209
REM Set up MMU to put internal Flash at 0...
REM Virtual address 0x0 -> Physical address = $0000_0000
REM TLB1, 16 MByte Memory Space, Not Guarded, Cachable, All Access
Once Status Register Result = $0209
REM Set up MMU for External Memory
REM Base address = $2000_0000
REM TLB2, 16 MByte Memory Space, Not Guarded, Cachable, All Access
Once Status Register Result = $0209
REM Set up MMU for Internal SRAM
REM Base address = $4000_0000
REM TLB3, 512 KByte Memory Space, Not Guarded, Don't Cache, All Access
Once Status Register Result = $0209
REM Set up MMU for Periph A Modules
REM Base address = $C3E0_0000
REM TLB4, 2 MByte Memory Space, Guarded, Don't Cache, All Access
Once Status Register Result = $0209
REM Initialize all of the Main SRAM - 512KB
Initializing RAM from $40000000 to $4007FFFF.
Initializing Ram Block 0x40000000-0x4007FFFF.
Reset script (E:\S32_design_studio_v2.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_2.0.2.202005132054\win32\gdi\P&E\s32e200_mpc5777c.mac) completed.
MPC5777C Device detected.
PEmicro GDB Launch Failure : Error during flash programming. Terminating debug session.
It seems my processor is locked somehow, Now I don't know what to do, Any help would be appreciated.
#MPC5777C #s32
Regards,
Luke
Hi,
you can try to use different programming algorithm:
Also updating PE Micro plugin may help: