Unable to start debug session on MPC5748G board. download stops at 98%

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to start debug session on MPC5748G board. download stops at 98%

Jump to solution
2,921 Views
veeresh_ambe
Contributor III

Hello,

I am using the MPC5748G board and I am facing an issue while debugging the code. I have compiled the linflex example provided on the website and earlier it was running fine. Currentlywhile starting a debug session the progress bar stops at 98% and nothing happens further.

There is no reset escalation on the board. I have monitored the reset line on the board. After power on it goes low and then goes and stays high.

I have gone through similar problems posted by other users and the only way by which I can recover the board is using a 400USD debug probe which i don't have.

Please help. Any guidance would be really helpful as we have very strict customer deadlines.

The log while downloading the elf file is as below.

Connection from "127.0.0.1" via 127.0.0.1
Copyright 2017 P&E Microcomputer Systems,Inc.
Command Line :C:\NXP\S32DS_Power_v2017.R1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.7.2.201709281658\win32\pegdbserver_power_console -device=MPC5748G -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=OPENSDA -speed=5000 -port=8
 
CMD>RE
 
Initializing.
MPC574xC Device detected.
Target has been RESET and is active.
CMD>CM C:\NXP\S32DS_Power_v2017.R1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.7.2.201709281658\win32\gdi\P&E\nxp_mpc5748g_1x32x1520k_cflash.pcp
 
Initializing.
MPC574xC Device detected.
Initialized.
 
;version 1.05, 06/26/2017, Copyright P&E Microcomputer Systems, www.pemicro.com [5748G_6080k]
 
;device NXP, MPC5748G, 1x32x1520k, desc=CFlash
 
;begin_cs device=$00F90000, length=$005F0000, ram=$40000000
 
Loading programming algorithm ...
 
WARNING - Selected .PCP file has been modified. CRC16 = $5A63
Done.
CMD>VC
Verifying object file CRC-16 to device ranges ...
   block 00FA0000-00FA0007 ...
Ok.
   block 00FA0010-00FA0017 ...
Ok.
   block 01000000-0100026D ...

Labels (2)
1 Solution
972 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

I tried reproduce your issue, but my board is working okay. You already found this thread - DEVKIT MPC5748G S32DS download problem,blocking at Verifying object file CRC-16 to device ranges  - you can try to erase flash. PKGPPCNEXUS  free version supports OpenSDA:  

pastedImage_1.png

Connect to target, select programming algorithm:

pastedImage_3.png

And erase module: 

pastedImage_4.png

pastedImage_5.png

Hope it helps. 

Jiri 

View solution in original post

13 Replies
972 Views
allen_khorasani
Contributor I

Hello ,I had the same problem , we just got a MPC5748G dev kit, and I followed this thread, updates the firm ware ,

HOWTO: Update OpenSDA Firmware on EVB 

and updated the debug app from reading the PDF  Updating the OpenSDA Firmware.pdf and now I see this issue ,regardless of which core setting  I choose. Please see the attached screen shots. Any help will be appreciated.debug2.pngDebuf1.png

0 Kudos
973 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

I tried reproduce your issue, but my board is working okay. You already found this thread - DEVKIT MPC5748G S32DS download problem,blocking at Verifying object file CRC-16 to device ranges  - you can try to erase flash. PKGPPCNEXUS  free version supports OpenSDA:  

pastedImage_1.png

Connect to target, select programming algorithm:

pastedImage_3.png

And erase module: 

pastedImage_4.png

pastedImage_5.png

Hope it helps. 

Jiri 

View solution in original post

972 Views
dazhou0503
Contributor I

After downloading and installing progppc, the runtime prompts you to need the installation code. Where can I get the installation code

0 Kudos
972 Views
veeresh_ambe
Contributor III

Hi Jiri,

It worked! Thanks for the big help.

0 Kudos
972 Views
veeresh_ambe
Contributor III

Hi Jiri,

I am unable to flash the MPC5748G with my own application. The linflex test application gets downloaded and is working fine.

I am observing the following error.

Connection from "127.0.0.1" via 127.0.0.1
Copyright 2017 P&E Microcomputer Systems,Inc.
Command Line :C:\NXP\S32DS_Power_v2017.R1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.7.2.201709281658\win32\pegdbserver_power_console -device=MPC5748G -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=OPENSDA -speed=5000 -reset8
 
CMD>RE
 
Initializing.
MPC574xC Device detected.
Target has been RESET and is active.
CMD>CM C:\NXP\S32DS_Power_v2017.R1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.7.2.201709281658\win32\gdi\P&E\nxp_mpc5748g_1x32x1520k_cflash.pcp
 
Initializing.
MPC574xC Device detected.
Initialized.
 
;version 1.05, 06/26/2017, Copyright P&E Microcomputer Systems, www.pemicro.com [5748G_6080k]
 
;device NXP, MPC5748G, 1x32x1520k, desc=CFlash
 
;begin_cs device=$00F90000, length=$005F0000, ram=$40000000
 
Loading programming algorithm ...
 
WARNING - Selected .PCP file has been modified. CRC16 = $5A63
Done.
CMD>VC
Verifying object file CRC-16 to device ranges ...
   block 00FA0000-00FA0007 ...
Ok.
   block 00FA0010-00FA0017 ...
Ok.
   block 00FD8000-010000FF ...
Calculated CRC-16 does not match block. (File = $7B59, Device = $88AB)
 
CMD>EM
 
Erasing.
Module has been erased.
CMD>PM
 
Programming.
Processing Object File Data ...
                                
Error during programming.
Error Programming flash of device
Error occured during Flash programming.
 
Starting reset script (C:\NXP\S32DS_Power_v2017.R1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.7.2.201709281658\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.
 
Reset script (C:\NXP\S32DS_Power_v2017.R1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.7.2.201709281658\win32\gdi\P&E\s32e200_mpc574xg.mac) completed.
 
MPC574xG Device detected.
PE-ERROR: Error downloading to the device.
PE-ERROR: Exception Occured : Connection Closed Gracefully.
Disconnected from "127.0.0.1" via 127.0.0.1
Target Disconnected.

0 Kudos
972 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

I'm able reproduce your issue with linflex example. It stops working for unknown reason. But have no solution yet. Thanks for report. I'll be back when I find out how to solve it. 

Jiri 

972 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

can you please share your project? 

Jiri

0 Kudos
972 Views
veeresh_ambe
Contributor III

Well I cannot share the source code of the project since we have a NDA agreement with the customer. However I was able to download and test the same elf file earlier. So I dont think the problem is with the source code.

If it is of any help, I have provided some info about the elf file. If there is any other info you require please let me know. TIAlin_elf_details_phead.pnglin_elf_details.png

0 Kudos
972 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

quick update - I tested three MPC5748G EVBs - and the only one which is not working is EVB with OpenSDA app firmware v1.08:

pastedImage_1.png

Second EVB has v1.09  and last one v1.10. Unfortunately - the official latest firmware is v1.08. 

Can you please check you FW version? Switch to EVB to bootloader mode - remove OpenSDA USB cable -> press and hold SW3 switch (that one bellow RESET switch) reconnect OpenSDA cable and release SW3 switch. You can see new removable drive named BOOTLOADER on your PC Machine. There is SDA_INFO.HTM file. Double click on int brings up PE Micro page with version info (like on screenshot above). 

pastedImage_2.png

Jiri

0 Kudos
972 Views
veeresh_ambe
Contributor III

Hi Jiri,

Thanks for the update. The firmware version is V1.09. I have attached the screenshot. firmware_version.png

0 Kudos
972 Views
veeresh_ambe
Contributor III

jirikral‌ Any updates on this?

0 Kudos
972 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

for me is working update to OpenSDA to v1.10 https://community.nxp.com/docs/DOC-340263 

Jiri

0 Kudos
972 Views
veeresh_ambe
Contributor III

BTW i just noticed that the .pcp file used to erase the MPC5748G uses the same blocks layout as the MPC5748C. Could this be the reason? The start address and length of the NVM flash is the same but the blocks are arranged in a different way in the MPC5748G compared to the C variant. cflash_algorithm.png

0 Kudos