When I used PE to debug burning, I encountered an error message from p&e semihosting console. See Figure 1 and information for details. Hope to get your help! Thank you very much for your advice!
Connection from "127.0.0.1" via 127.0.0.1. Connection from port "2801" to 6224
Connection from "127.0.0.1" via 127.0.0.1. Connection from port "2802" to 7224
Telnet server running on 127.0.0.1:51794
Searching for Kernel Symbols...
rsp_qC - qSymbol: 5F74785F7468726561645F63757272656E745F707472
_tx_thread_current_ptr not found. ThreadX analysis not enabled.
rsp_qC - qSymbol: 707843757272656E74544342
pxCurrentTCB not found. FreeRTOS analysis not enabled.
Unable to load libusb0.dll
Copyright 2024 P&E Microcomputer Systems,Inc.
Command Line :D:\work\NXP\S32DS.3.5\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_5.9.3.202411271449\win32\pegdbserver_console -device=NXP_S32K3xx_S32K312 -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=USBMULTILINK -speed=5000 -p
PEmicro Interface detected - Flash Version 11.37
CMD>RE
Initializing.
INFO: DAP IDCODE = 0x6BA02477
INFO: DAP successfully powered up. DP CTRL/STAT = 0xF0000040
Target has been RESET and is active.
CMD>CM D:\work\NXP\S32DS.3.5\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_5.9.3.202411271449\supportFiles_ARM\NXP\S32K3xx\nxp_s32k312_1x32x456k_hse_enabled.arp
Initializing.
INFO: DAP IDCODE = 0x6BA02477
INFO: DAP successfully powered up. DP CTRL/STAT = 0xF0000040
Initialized.
;version 1.04, 11/05/2024, Copyright 2024 P&E Microcomputer Systems, www.pemicro.com [S32K3x2_hse_enabled]
;device nxp, s32k312, 1x32x456k,desc=hse_enabled
;begin_cs device=$00400000, length=$001D4000, ram=$20400000
Loading programming algorithm ...
Error enabling module, part timed out during buffer initialization.
Error loading programming algorithm - load aborted.
Error occured during Flash programming.
INFO: DAP IDCODE = 0x6BA02477
INFO: DAP successfully powered up. DP CTRL/STAT = 0xF0000040
BusFault: An imprecise (asynchronous) data access error has occurred.
BusFault: A precise (synchronous) data access error has occurred.
Possible BusFault location: 0xDB52060C.
HardFault: A fault has been escalated to a hard fault.
Warning - device did not halt out of reset. Stopping core.
Starting reset script (D:\work\NXP\S32DS.3.5\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_5.9.3.202411271449\supportFiles_ARM\NXP\S32K3xx\S32K312.mac) ...
REM Enable clocks for selected cores in MC_ME module
Delaying for 200mS ...
Done.
REM Initialize RAM and DMA:
REM Initialize DMA TCD:
REM Copy valid executable code to RAM for each core to be used.
REM Enable required cores in MC_ME:
Delaying for 20mS ...
Done.
Reset script (D:\work\NXP\S32DS.3.5\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_5.9.3.202411271449\supportFiles_ARM\NXP\S32K3xx\S32K312.mac) completed.
PEmicro GDB Launch Failure : Error during flash programming. Terminating debug session.
PE-ERROR: Error downloading to the device. Terminating debug session.
Disconnected from "127.0.0.1" via 127.0.0.1. Disconnection by port "2801" from 6224
Disconnected from "127.0.0.1" via 127.0.0.1. Disconnection by port "2802" from 7224
INFO: DAP IDCODE = 0x6BA02477
Target Disconnected.
Hi @alan1204,
Does this happen with an example from the SDK/RTD or an empty project? Also, why are you preserving those memory ranges? That is usually for applications such as bootloaders (Preserving Memory Ranges with Eclipse and P&E GDB Server).
If you can, please share your project to test it on my side.
Best regards,
Julián
Hi @alan1204,
It could be related to the PE Micro's drivers. You can try to update them through Extensions & Updates.
But firstly, I'd recommend creating a new dummy single core project for the S32K312, build the project and debug via PE. If you are able to debug - the issue is related to your custom project or board.
Best regards,
Julián