MPC5775B JTAG Programming problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC5775B JTAG Programming problem

509 Views
engineer_attila
Contributor III

Hi folks, 

We try to load the bootloader to MPC5775B. But we didn't achieve. What causes this problem?

Best regards

P&E GDB Server for Power devices, Version 7.34.00.00
Copyright 2018, P&E Microcomputer Systems Inc, All rights reserved

Loading library C:\NXP\S32DS_Power_v2.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.8.7.201906071634\win32\gdi\unit_ngs_ppcnexus_internal.dll ... Done.

Command line arguments: -device=MPC5775B -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=USBMULTILINK -speed=5000 -port
Device selected is mpc5775b
User Specified Hardware Selection : Interface=USBMULTILINK and Port=USB1
Connecting to target.
P&E Interface detected - Flash Version 11.22
(C)opyright 2018, P&E Microcomputer Systems, Inc.  (http://www.pemicro.com)

Loading srec from C:\NXP\S32DS_Power_v2.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.8.7.201906071634\win32\gdi\P&E\usbmlfsufjtagens.1018
Successfully found C:\NXP\S32DS_Power_v2.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.8.7.201906071634\win32\gdi\P&E\usbmlfsufjtagens.1018
Erasing internal application checksum ...
Rebooting ...
Erasing Application region ...
Blank checking Application region ...
Error during blank check.

Device IDCODE is $00000377
Device ID revision is $00000001

Starting reset script (C:\NXP\S32DS_Power_v2.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.8.7.201906071634\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.

Reset script (C:\NXP\S32DS_Power_v2.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.8.7.201906071634\win32\gdi\P&E\s32e200_mpc5777c.mac) completed.

MPC5777C Device detected.
Device is mpc5775b.
Mode is In-Circuit Debug.

(C)opyright 2012, P&E Microcomputer Systems, Inc. (www.pemicro.com)
API version is 101

Server 1 running on 127.0.0.1:7224
Server 2 running on 127.0.0.1:7226
Server 3 running on 127.0.0.1:7228
Server 4 running on 127.0.0.1:7230
Server 5 running on 127.0.0.1:7232
Server 6 running on 127.0.0.1:7234
Server 7 running on 127.0.0.1:7236
Server 8 running on 127.0.0.1:7238
Server 9 running on 127.0.0.1:7240
Server 10 running on 127.0.0.1:7242
Server 11 running on 127.0.0.1:6224
All Servers Running
Connection from "127.0.0.1" via 127.0.0.1. Connection from port "61066" to 7224
Copyright 2018 P&E Microcomputer Systems,Inc.
Command Line :"C:\NXP\S32DS_Power_v2.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.8.7.201906071634\win32\pegdbserver_power_console.exe" -device=MPC5775B -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=USBMULTILINK -speed=5000ñ

CMD>RE

Initializing.

Device IDCODE is $00000377
Device ID revision is $00000001
MPC5777C Device detected.
Target has been RESET and is active.
CMD>CM C:\NXP\S32DS_Power_v2.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.8.7.201906071634\win32\gdi\P&E\nxp_mpc5775b_1x32x1024k_cflash_highspeed.pcp

Initializing.

Device IDCODE is $00000377
Device ID revision is $00000001
MPC5777C Device detected.
Initialized.

;version 1.00, 07/13/2018, Copyright P&E Microcomputer Systems, www.pemicro.com [5775EB_4meg_highspeed]

;device NXP, MPC5775B, 1x32x1024k, desc=CFlash_highspeed

;begin_cs device=$00800000, length=$00400000, 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 ...
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Calculated CRC-16 does not match block. (File = $83B4, Device = $FFFE)
Current content of flash does not match application to be programmed

CMD>EM

Erasing.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Module has been erased.
CMD>PM

Programming.
Processing Object File Data ...

Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Error : Error in ONCE status register during instruction execution.
Terminating Gracefully...
Forcing Halt.

 

0 Kudos
Reply
1 Reply

469 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I am not familiar with this PE bootloader. But everything looks fine to the point where your CRC does not fit.

Have a look at this post:

https://community.nxp.com/t5/S32K/Calculated-CRC-16-does-not-match-block/td-p/1171816

also:

did you tried update PE Micro plugin?

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Install-update-from-3rd-party-ve...

 

And finally it could be and ECC error in your device:

https://www.pemicro.com/forums/forum_topic.cfm?forum_id=8&forum_topic_id=8226

Best regards,
Peter

0 Kudos
Reply