AnsweredAssumed Answered

Multlink FX flash programming problem

Question asked by Mauricio Mendes on Sep 12, 2017
Latest reply on Oct 9, 2017 by Mauricio Mendes

Hi People,

 

As we flash more code into the MPC564xA processor memory, we are starting to get errors and can not successfully load the code into flash. Sometimes it's start to debug but can not be trusted. I updated the debug tool with the latest version.

 

Bellow I added my console log. Any hints, tips or tricks?

 

Connection from "127.0.0.1" via 127.0.0.1
Copyright 2012 P&E Microcomputer Systems,Inc.
Command Line :C:\Freescale\S32_Power_v1.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.3.3.201605241936\win32\pegdbserver_power_console -device=MPC5644A -startserver -singlesession -serverport=7224 -interface=USBMULTILINK -speed=5000 -port=USB1 -confi

CMD>RE
Initializing.
Target has been RESET and is active.
CMD>CM C:\Freescale\S32_Power_v1.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.3.3.201605241936\win32\gdi\P&E\freescale_mpc5644a_1x32x1024k.pcp

Initializing.
Initialized.

;version 1.08, 09/28/2012, Copyright P&E Microcomputer Systems, www.pemicro.com [5674f_5646a_4meg]
;device Freescale, MPC5644A, 1x32x1024k
;begin_cs device=$30000000, length=$00400000, ram=$00300000

Loading programming algorithm ...
Error loading .PCP file : C:\Freescale\S32_Power_v1.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.3.3.201605241936\win32\gdi\P&E\freescale_mpc5644a_1x32x1024k.pcp at address 003004A0
Error loading programming algorithm - load aborted.
Error occured during Flash programming.

Starting reset script (C:\Freescale\S32_Power_v1.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.3.3.201605241936\win32\gdi\P&E\s32e200_mpc564xa.mac) ...
REM This script is compatible with MPC564xA devices.
REM Setup MMU for for Periph B Modules
REM Base address = $FFF0_0000
REM TLB0, 1 MByte Memory Space, Guarded, Don't Cache, All Access

Once Status Register Result = $0209
REM Set up MMU for Internal SRAM
REM Base address = $4000_0000
REM TLB3, 256 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 = $C3F0_0000
REM TLB4, 1 MByte Memory Space, Guarded, Don't Cache, 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 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 - SRAM
REM Base address = $3FC0_0000
REM TLB5, 4 MByte Memory Space, Not Guarded, Cachable, All Access

Once Status Register Result = $0209

REM Initialize all of the Main SRAM - 192KB
Initializing RAM from $40000000 to $4002FFFF.


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

PE-ERROR: Error downloading to the device.

 

Many Thanks,

Mauricio

Outcomes