MPC5646C EVB debug stops at 99%

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

MPC5646C EVB debug stops at 99%

1,165 Views
xinweichang
Contributor III

Hi, my 5646CEVB has problem downloading code. When I load a codewarrior 10.6 project and start to debug, it always stops at 99%. The screen shoot is attached below. Can you figure out what the problem is? Thank you!

 

156252_156252.pngpastedImage_0.png

Executing Initialization File: C:\Users\Administrator\Desktop\ESecure/Project_Settings/Debugger/MPC5646C_VLE.tcl
radix x
cmdwin::eclipse::config hexprefix 0x
cmdwin::eclipse::config MemIdentifier v
cmdwin::eclipse::config MemWidth 32
cmdwin::eclipse::config MemAccess 32
cmdwin::eclipse::config MemSwap off
cmdwin::reset hard
cmdwin::stop
cmdwin::reg regPPCTLB1/MMU_CAM0 = 0xB0000008FE0800000000000000000001
reading SSCM.STATUS ...
cmdwin::mem 0xC3FD8000
  c3fd8000  0x10709261   .p.a 
processsor in single chip mode. start initialization ...
cmdwin::mem 0xFFF38010 = 0x0000C520
cmdwin::mem 0xFFF38010 = 0x0000D928
cmdwin::mem 0xFFF38000 = 0x8000010A
cmdwin::change e200z4 Special Purpose Registers/TCR = 0x0
reading SIUL.MIDR1 ...
cmdwin::mem 0xC3F90004
  c3f90004  0x56464410   VFD. 
reading SIUL.MIDR2 ...
cmdwin::mem 0xC3F90008
  c3f90008  0x3a004311   :.C. 
Current device: MPC5646C, mask 11
init ECC SRAM 0x40000000:0x40000
cmdwin::mem 0x40000000 256 = 0x0
cmdwin::reg General Purpose Registers/GPR11 %d = 1073741952
cmdwin::reg General Purpose Registers/GPR12 %d = 2047
cmdwin::mem 0x40000000 = 0x7D8903A6
cmdwin::mem 40000004 = 0x180B0900
cmdwin::mem 40000008 = 0x1D6B0080
cmdwin::mem 4000000c = 0x7A20FFF8
cmdwin::mem 40000010 = 0xE8000000
cmdwin::reg General Purpose Registers/PC = 0x40000000
cmdwin::go 1
cmdwin::stop
thread break: Stopped, 0x0, 0x0, cpuPowerPCBig, ESecure.elf (state, tid, pid, cpu, target)
evaluate __startup
0x000000C8
cmdwin::reg General Purpose Registers/PC = 0x000000C8
cmdwin::reg General Purpose Registers/SP = 0x3
evaluate ivor_branch_table_p0
0x00010000
cmdwin::reg e200z4 Special Purpose Registers/IVPR = 0x10000
cmdwin::reg e200z4 Special Purpose Registers/IVOR0 = 0x0
cmdwin::reg e200z4 Special Purpose Registers/IVOR1 = 0x10
cmdwin::reg e200z4 Special Purpose Registers/IVOR2 = 0x20
cmdwin::reg e200z4 Special Purpose Registers/IVOR3 = 0x30
cmdwin::reg e200z4 Special Purpose Registers/IVOR4 = 0x40
cmdwin::reg e200z4 Special Purpose Registers/IVOR5 = 0x50
cmdwin::reg e200z4 Special Purpose Registers/IVOR6 = 0x60
cmdwin::reg e200z4 Special Purpose Registers/IVOR7 = 0x70
cmdwin::reg e200z4 Special Purpose Registers/IVOR8 = 0x80
cmdwin::reg e200z4 Special Purpose Registers/IVOR9 = 0x90
cmdwin::reg e200z4 Special Purpose Registers/IVOR10 = 0xa0
cmdwin::reg e200z4 Special Purpose Registers/IVOR11 = 0xb0
cmdwin::reg e200z4 Special Purpose Registers/IVOR12 = 0xc0
cmdwin::reg e200z4 Special Purpose Registers/IVOR13 = 0xd0
cmdwin::reg e200z4 Special Purpose Registers/IVOR14 = 0xe0
cmdwin::reg e200z4 Special Purpose Registers/IVOR15 = 0xf0

Starting 3rd party flash programming...
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : STARTUP, Entry : SPECIFY_NETWORKCARD_ENABLED, Value : 0, R) => DI_ERR_NONFATAL
INF: Copyright 2012 P&E Microcomputer Systems,Inc.
INF: Command Line :"C:\Freescale\CW MCU v10.6\eclipse\..\MCU\bin\de.exe" -noni -language en -ORBendPoint giop:tcp:127.0.0.1: -ORBtraceLevel 0
INF: CMD>RE
INF: Initializing.
INF: Target has been RESET and is active.
INF: CMD>CM C:\Freescale\CW MCU v10.6\MCU\bin\Plugins\support\EPPC\gdi\P&E\freescale_mpc5646c_1x32x768k_lcflash.pcp
INF: Initializing.
INF: Initialized.
INF: ;version 1.03, 09/28/2012, Copyright P&E Microcomputer Systems, www.pemicro.com [5646x_3072k_LCFlash]
INF: ;device Freescale, MPC5646C, 1x32x768k, desc=LCFlash
INF: ;begin_cs device=$30000000, length=$00300000, ram=$00300000
INF: Loading programming algorithm ...
INF: Done.
INF: CMD>EM
INF: Erasing.

Labels (1)
Tags (2)
0 Kudos
5 Replies

813 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

I did quick test and it works fine on my side. I used CW 10.6 and P&E USB Multilink.

Was it working before that? Have you tried to create new empty project and load this one? Or is it related only to project which you have already modified? If so, could you share the project?

Regards,

Lukas

0 Kudos

813 Views
Theodore
Contributor I

I have this same problem. I have tried with Codewarrior 10.6 and Codewarrior 10.7 both with the multi-link. The first time I open Codewarrior and download the project it works. However, if I kill the process and download again it hangs at the same location "Erasing." in the console.

Then, if I go to the "Progress" tab it says "Launching CTR FLASH LDM MultiLink (Cancel Request)" on top of the progress bar and "Downloading binary to target..." on the bottom of the progress bar and sits there indefinitely. If I try to start a new download process it gives me an error saying one is currently in progress.

The only way I can get out of this mode is to close and restart Codewarrior...

0 Kudos

813 Views
martin_kovar
NXP Employee
NXP Employee

Hello Theodore,

I cannot reproduce your issue on my side. I tested it with CodeWarrior 10.7, MPC5644A and Multilink Universal FX

Could you please write me step-by-step tutorial, which shows how you have created the issue?

Could you also write me which microcontroller you use?

Regards,

Martin

0 Kudos

813 Views
Theodore
Contributor I

It appears there was a combination of issues.

My multi-link was proven to be faulty. In addition to that we were able to determine that the DSP we are using MC56F8367 was not receiving new downloads correctly. We were not able to definitively indicate whether it was a bad JTAG header or if the DSP had just been written to enough times to exhaust the flash write cycles.

Either way the issue appears to be resolved for now by replacing the multilink and board that we are downloading to.

I am having a new issue where I am unable to view memory for our external RAM chip from within the IDE. I was going to post a new issue. However, if you can provide some quick suggestions as to what may be happening I would appreciate it.

Processor: MC56F8367

I open View Memory. I click the '+' and enter 0x40000. All I get back are '??' in all bytes.

Regards,

TJ

0 Kudos

813 Views
martin_kovar
NXP Employee
NXP Employee

Hello Theodore,

could you please write your question regarding MC56F8367 to https://community.nxp.com/community/dsc section? There are DSC experts, who will answer your question.

Regards,

Martin

0 Kudos