AnsweredAssumed Answered

Failed to debug MPC5748G at 98% for S32DS v1.2

Question asked by Martin Zhang on Aug 16, 2017
Latest reply on Apr 23, 2018 by Martin Zhang

I've tested the problem on 6 different PCs several times and I find that I can not download my code to MPC5748G using S32DS v1.2 when I am going to debug , but I can do it using S32DS v1.1. Even every time it stops at 98%.

The error log prompts

Loading programming algorithm ...

Error loading programming algorithm - load aborted.

Error occured during Flash programming.


I don't know why ? How can I solve the problem? 



1) Test condition


S32DS for Power v1.2 with atest patches (S32DS Power v1.2 UP2 AMMCLIB);

S32DS for Power v1.1
debuggeropensda on evb
Operating System
Win7x64, Win10x64


2) Test case

IDE's demo: Hello, Hello_World+PLL+Interrupt, ADC, rtc_alarm_mpc5748g, freertos_mpc5748g


3) Test Result

v1.1: all OK;

v1.2: every time it stops at 98%, then error message appears; But it success to debug if I use RAM mode instead of FLASH mode;


The following is screenshot:

figure s32ds for power v1.2 version


error message when debugging


error log

Connection from "" via
Copyright 2012 P&E Microcomputer Systems,Inc.
Command Line :"E:\Program Files (x86)\NXP\S32DS_Power_v1.2\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.6.9.201706282002\win32\pegdbserver_power_console" -device=MPC5748G -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=OPENSDA T
MPC574xC Device detected.
Target has been RESET and is active.
CMD>CM E:\Program Files (x86)\NXP\S32DS_Power_v1.2\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.6.9.201706282002\win32\gdi\P&E\nxp_mpc5748g_1x32x1520k_cflash.pcp
MPC574xC Device detected.
;version 1.05, 06/26/2017, Copyright P&E Microcomputer Systems, [5748G_6080k]
;device NXP, MPC5748G, 1x32x1520k, desc=CFlash
;begin_cs device=$00F90000, length=$005F0000, ram=$40000000

Loading programming algorithm ...
Error loading programming algorithm - load aborted.
Error occured during Flash programming.

Starting reset script (E:\Program Files (x86)\NXP\S32DS_Power_v1.2\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.6.9.201706282002\win32\gdi\P&E\s32e200_mpc574xg.mac) ... 
REM This script is compatible with MPC574xG devices.                                                                                                                                                    
REM Clean GPRs to remove residual data after using algorithm                                                                                                                                            
REM Initialize all of the Main SRAM - 768KB                                                                                                                                                             
Initializing RAM from $40000000 to $400BFFFF.
REM Core 0 I-MEM 16K                                                                                                                                                                                    
Initializing RAM from $50000000 to $50003FFF.
REM Core 0 D-MEM 64K                                                                                                                                                                                    
Initializing RAM from $50800000 to $5080FFFF.
REM Core 1 I-MEM 16K                                                                                                                                                                                    
Initializing RAM from $51000000 to $51003FFF.
REM Core 1 D-MEM 64K                                                                                                                                                                                    
Initializing RAM from $51800000 to $5180FFFF.
REM Core 2 I-MEM 16K                                                                                                                                                                                    
Initializing RAM from $52000000 to $52003FFF.
REM Core 2 D-MEM 32K                                                                                                                                                                                    
Initializing RAM from $52800000 to $52807FFF.
REM overlay memory 16K                                                                                                                                                                                  
Initializing RAM from $0D000000 to $0D003FFF.
REM Overlay SRAM Emulation device only                                                                                                                                                                  
Initializing RAM from $0C000000 to $0C0FFFFF.

Reset script (E:\Program Files (x86)\NXP\S32DS_Power_v1.2\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.6.9.201706282002\win32\gdi\P&E\s32e200_mpc574xg.mac) completed.
MPC574xG Device detected.