I've been flashing example projects on my S32K3X4EVB-T172 Eval Board via the micro-USB header and it's been working up until this morning. All of a sudden, the debugger is no longer able to load the flash algorithm file. I get: `Error loading .ARP file` in the debugging session's output in the Console tab. I am completely power cycling the board between flashing attempts, per the instructions. There was once when I got past this error and had another error, but I have not been able to replicate it.
Note that I cannot program the S32K344 via the 10-pin JTAG header either (using a SEGGER debugger or a PE Micro Cyclone LC). From what I've read in other forum threads, I get the sense that the board is locked up, though I don't have another fresh eval board to test that theory against. Is there a simple way to get it out of this "locked up" state?
Here is the full output in the Console tab for the terminated debug session for Port_Example_S32K344 (using the standard Debug_FLASH_PNE configuration):
Connection from "127.0.0.1" via 127.0.0.1. Connection from port "63814" to 6224
Connection from "127.0.0.1" via 127.0.0.1. Connection from port "63816" to 7224
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.
Telnet server running on 127.0.0.1:51794
Unable to load libusb0.dll
Copyright 2023 P&E Microcomputer Systems,Inc.
Command Line :C:\NXP\S32DS.3.5\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_5.7.1.202309212104\win32\pegdbserver_console -device=NXP_S32K3xx_S32K344 -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=USBMULTILINK -speed=5000 -port=UŒ
PEmicro Interface detected - Flash Version 10.98
CMD>RE
Initializing.
Target has been RESET and is active.
CMD>CM C:\NXP\S32DS.3.5\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_5.7.1.202309212104\supportFiles_ARM\NXP\S32K3xx\nxp_s32k344_1x32x980k_hse_enabled.arp
Initializing.
Initialized.
;version 1.01, 09/23/2022, Copyright 2022 P&E Microcomputer Systems, www.pemicro.com [S32K3x4_hse_enabled]
;device nxp, s32k344, 1x32x980k,desc=hse_enabled
;begin_cs device=$00400000, length=$003D4000, ram=$20400000
Loading programming algorithm ...
Error loading .ARP file : C:\NXP\S32DS.3.5\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_5.7.1.202309212104\supportFiles_ARM\NXP\S32K3xx\nxp_s32k344_1x32x980k_hse_enabled.arp at address 20400002
Error loading programming algorithm - load aborted.
Error occured during Flash programming.
Starting reset script (C:\NXP\S32DS.3.5\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_5.7.1.202309212104\supportFiles_ARM\NXP\S32K3xx\S32K344.mac) ...
REM Enable clocks for selected cores in MC_ME module (the sequence below enables all clocks).
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 (C:\NXP\S32DS.3.5\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_5.7.1.202309212104\supportFiles_ARM\NXP\S32K3xx\S32K344.mac) completed.
PEmicro GDB Launch Failure : Error during flash programming. Terminating debug session
I've also used all the different flash algorithms that are provided for the S32K344, to no avail.