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:
I have a USB-ML-UNIVERSAL PE micro debugger and am powering the target board with 12 v.
Here is my project explorer:
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?
@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:
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?
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.
Hi
Try lowering the Debug Shift Freq and try again.
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.
-------------------------------------------------------------------------------