I am trying to flash a custom PCB that has an S32K142 controller on it. I am using S32DS (3.6.1) and a PE Micro Multilink Universal FX (Rev C) to flash it via the debug option in S32DS. I have been able to compile the project and have the .elf file generated. When I try to run the debug option, I see the following error on the Console:
Connection from "127.0.0.1" via 127.0.0.1. Connection from port "62108" to 6224
Connection from "127.0.0.1" via 127.0.0.1. Connection from port "62109" to 7224
Telnet server running on 127.0.0.1:51794
Requesting next symbol pxCurrentTCB
Symbol pxCurrentTCB found. (0x200000F4)
Requesting next symbol pxReadyTasksLists
Symbol pxReadyTasksLists found. (0x20000100)
Requesting next symbol xDelayedTaskList1
Symbol xDelayedTaskList1 found. (0x200001B8)
Requesting next symbol xDelayedTaskList2
Symbol xDelayedTaskList2 found. (0x200001CC)
Requesting next symbol xPendingReadyList
Symbol xPendingReadyList found. (0x200001EC)
Requesting next symbol uxCurrentNumberOfTasks
Symbol uxCurrentNumberOfTasks found. (0x200001A0)
Requesting next symbol uxDeletedTasksWaitingCleanUp
Symbol uxDeletedTasksWaitingCleanUp found. (0x200001A4)
Requesting next symbol xSuspendedTaskList
Symbol xSuspendedTaskList found. (0x20000204)
Requesting next symbol xSchedulerRunning
Symbol xSchedulerRunning found. (0x20000200)
Requesting next symbol FreeRTOSDebugConfig
Symbol FreeRTOSDebugConfig not found.
Requesting next symbol _tx_thread_current_ptr
Symbol _tx_thread_current_ptr not found.
Requesting next symbol _tx_thread_created_ptr
Symbol _tx_thread_created_ptr not found.
Requesting next symbol _tx_thread_created_count
Symbol _tx_thread_created_count not found.
Requesting next symbol _tx_thread_system_state
Symbol _tx_thread_system_state not found.
USING FREERTOS CORTEX-M DRIVERS
Successfully initialized kernel symbols. FreeRTOS analysis enabled.
Unable to load libusb0.dll
Copyright 2025 P&E Microcomputer Systems,Inc.
Command Line :C:\NXP\S32DS.3.6.1\eclipse\plugins\com.pemicro.debug.gdbjtag.pne.expansion_6.0.3.202506131845\win32\pegdbserver_console -device=NXP_S32K1xx_S32K142WF256M8 -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=USBMULTILINK �
PEmicro Interface detected - Flash Version 11.52
CMD>RE
Initializing.
INFO: DAP IDCODE = 0x2BA01477
INFO: DAP successfully powered up. DP CTRL/STAT = 0xF0000040
Target has been RESET and is active.
CMD>CM C:\NXP\S32DS.3.6.1\eclipse\plugins\com.pemicro.debug.gdbjtag.pne.expansion_6.0.3.202506131845\supportFiles_ARM\NXP\S32K1xx\nxp_s32k142wf256m8_pflash_dflash_eeprom.arp
Initializing.
INFO: DAP IDCODE = 0x2BA01477
INFO: DAP successfully powered up. DP CTRL/STAT = 0xF0000040
Initialized.
;version 1.02, 09/13/2024, Copyright 2024 P&E Microcomputer Systems, Inc. All rights reserved. www.pemicro.com [s32k142wf256m8_x_pflash_dflash_eeprom]
;device nxp, s32k142wf256m8, pflash_dflash_eeprom
;begin_cs device=$00000000, length=$14001000, ram=$1FFFC000
Loading programming algorithm ...
Done.
Programming sequency is : erase, blank check, program, and verify {default}
CMD>VC
Verifying object file CRC-16 to device ranges ...
block 00000000-000079E3 ...
Calculated CRC-16 does not match block. (File = $CA0D, Device = $3416)
Current content of flash does not match application to be programmed
CMD>EM
Erasing.
Module has been erased.
Reloading programming algorithm ...
done.
CMD>PM
Programming.
Checking range of data.
Checked.
Processing Object File Data ...
.
Programmed.
CMD>VC
Verifying object file CRC-16 to device ranges ...
block 00000000-000079E3 ...
Calculated CRC-16 does not match block. (File = $CA0D, Device = $3416)
Error verifying flash of device
Error occured during Flash programming.
INFO: DAP IDCODE = 0x2BA01477
INFO: DAP successfully powered up. DP CTRL/STAT = 0xF0000040
PEmicro GDB Launch Failure : Error during flash programming. Terminating debug session.
PE-ERROR: Error downloading to the device. Terminating debug session.
Number of threads 1 (Scheduler not yet running)
Number of threads 1 (Scheduler not yet running)
Disconnected from "127.0.0.1" via 127.0.0.1. Disconnection by port "62108" from 6224
Disconnected from "127.0.0.1" via 127.0.0.1. Disconnection by port "62109" from 7224
INFO: DAP IDCODE = 0x2BA01477
Target Disconnected.
Under the Problems tab, I see 1 warning:
Unknown referenced nature: com.freescale.processorexpert.core.expertprojectnature.
Under the Debugger Console, I see the following:
GNU gdb (GDB build.sh rev=g01b30c3 s=L631 -i /opt/freescale Earmv7 -V release_g01b30c3_build_Fed_Earmv7 (BLD = 1620)) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-w64-mingw32 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
monitor setexceptioncatching 2033
monitor selectcore 0
continue
The program is not being run.
monitor refreshviews
"monitor" command not supported by this target.
continue
The program is not being run.
I am not sure where to begin trying to debug this issue. I understand the error itself, but I don't know if it's because of an IDE config issue or a hardware issue. How do I debug this? Any help would be appreciated.