S32K1xx Flashing Error

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

S32K1xx Flashing Error

263 Views
Bravin_Link
Contributor II

Hello, 

I am trying to flash a code to my hardware using an .elf file and I am getting the following error message:

Connection from "127.0.0.1" via 127.0.0.1. Connection from port "63750" to 6224
Connection from "127.0.0.1" via 127.0.0.1. Connection from port "63751" to 7224
Searching for FreeRTOS Kernel Symbols...
rsp_qC - qSymbol: 707843757272656E74544342
pxCurrentTCB not found. FreeRTOS analysis not enabled.
Copyright 2018 P&E Microcomputer Systems,Inc.
Command Line :C:\NXP\S32

DS_ARM_v2.2\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_4.4.6.201912192052\win32\pegdbserver_console -device=NXP_S32K1xx_S32K118F256M4 -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=USBMULTILINK -speed=58
P&E Interface detected - Flash Version 11.37

CMD>RE

Initializing.
Target has been RESET and is active.
CMD>CM C:\NXP\S32DS_ARM_v2.2\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_4.4.6.201912192052\win32\gdi\P&E\supportFiles_ARM\NXP\S32K1xx\freescale_s32k118f256m4_pflash_dflash_eeprom.arp

Initializing.
Initialized.

;version 1.01, 12/03/2019, Copyright 2019 P&E Microcomputer Systems, Inc. All rights reserved. www.pemicro.com [s32k118f256m4_x_pflash_dflash_eeprom_m0]

;device freescale, s32k118f256m4, pflash_dflash_eeprom

;begin_cs device=$00000000, length=$14000800, ram=$1FFFFC00

Loading programming algorithm ...
Error loading .ARP file : C:\NXP\S32DS_ARM_v2.2\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_4.4.6.201912192052\win32\gdi\P&E\supportFiles_ARM\NXP\S32K1xx\freescale_s32k118f256m4_pflash_dflash_eeprom.arp at address 1FFFFF50
Error loading programming algorithm - load aborted.
Error occured during Flash programming.

Starting reset script (C:\NXP\S32DS_ARM_v2.2\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_4.4.6.201912192052\win32\gdi\P&E\supportFiles_ARM\NXP\S32K1xx\S32K118F256M4.mac) ...
Filling .
.
done

Reset script (C:\NXP\S32DS_ARM_v2.2\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_4.4.6.201912192052\win32\gdi\P&E\supportFiles_ARM\NXP\S32K1xx\S32K118F256M4.mac) completed.

PEmicro GDB Launch Failure : Error during flash programming. Terminating debug session.

 

I have S32DS for arm 2.2 and have opened a S32DS example project named hello_world_s32k118. See below for P and E debugger settings:

Bravin_Link_0-1718055876623.pngBravin_Link_1-1718055888053.png

Bravin_Link_2-1718055931152.png

Bravin_Link_3-1718055945216.png

Bravin_Link_4-1718055955710.png

I have a USB-ML-UNIVERSAL PE micro debugger and am powering the target board with 12 v.

Here is my project explorer:

Bravin_Link_5-1718056139386.png

 

0 Kudos
Reply
4 Replies

210 Views
Bravin_Link
Contributor II

Also I've noticed that in my S32 DS project the Debug_Configurations, Documentation, and doxygen folders are all crossed/greyed out... Could this be an issue?

Bravin_Link_6-1718211994344.png

0 Kudos
Reply

210 Views
Bravin_Link
Contributor II

@Robin_Shen , Thanks for the reply. I tried many different lower speeds as well as higher speeds and there was no change. The only other thing I have is a NXP X-DCD-LZ-ADAPT that goes from USB on the computer to SWD. Is it possible to use this to flash?

Here is the Simulink side of things:

Bravin_Link_0-1718211660204.png

Bravin_Link_1-1718211672039.pngBravin_Link_2-1718211687488.png

 

Bravin_Link_4-1718211753440.png

Bravin_Link_5-1718211771714.png

0 Kudos
Reply

188 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

I am using elf file of ftm_pwm_s32k118 project. I was able to debug it with external Multilink FX RevD. PORT G - MINI 10 of Multilink is connect to J14 of S32K118EVB2Q048. I am using external 12V too. J107 connect pin1-2.
Can your Multilink RevE debug and download hello_world_s32k118 without encountering any errors?

hello_world_s32k118 Main Application elf.pnghello_world_s32k118 Debugger Executable Multilink FX RevD.png

 

Please notice that Model Based Design Tools (MBDT) are supported by our engineers on this community:
https://community.nxp.com/community/mbdt
It’s an exception, all our products are supported via these tickets but except these MBDT tools. So, create please new thread on the community and responsible engineers will help you.
Thanks for understanding.

0 Kudos
Reply

232 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi 

Try lowering the Debug Shift Freq and try again.

Bravin_Link_1-1718055888053.png

I am able to download with onboard OpenSDA debugger. If your USBMULTILINK does not work, try to plug USB cable and select OpenSDA.


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply