I use S32K344HVS with Jlink SWD interface, connect four pin: GND, SWC, SWD, RESET.
Normally, the system is OK, and I can connect the Jlink CommanderV7.94 to the MCU. But, when it run a pure software algorithm for several hours, the MCU will crash (the led blink and the console uart is stop), and I cannot connect the MCU with the Jlink.
【THE JlinkCommander show the error info:】
SEGGER J-Link Commander V7.94
Firmware: J-Link V11 compiled Nov 22 2023 09:48:47
Hardware version: V11.00
J-Link>connect
Please specify device / core. <Default>: S32K344
Type '?' for selection dialog
Device>S32K344
Please specify target interface:
J) JTAG (Default)
S) SWD
T) cJTAG
TIF>S
Specify target interface speed [kHz]. <Default>: 4000 kHz
Speed>1000
Device "S32K344" selected.
Connecting to target via SWD
ConfigTargetSettings() start
ConfigTargetSettings() end - Took 11us
InitTarget() start
SDA_AP detected
Checking if debug access is already enabled...
Debug access is not enabled yet. Performing enable debug access sequence...
Debug access enabled
Checking if HSE firmware is installed...
HSE firmware not installed
Lock step mode enabled
InitTarget() end - Took 4.10s
Found SW-DP with ID 0x6BA02477
Failed to power up DAP
ConfigTargetSettings() start
ConfigTargetSettings() end - Took 9us
InitTarget() start
Unknown SDA AP Id detected: 0xFFFFFFFF
InitTarget() end - Took 401ms
Cannot connect to target.
J-Link>
【The following is the information displayed by Jlink Commander during normal operation:】
SEGGER J-Link Commander V7.94
Firmware: J-Link V11 compiled Nov 22 2023 09:48:47
Hardware version: V11.00
J-Link>connect
Please specify device / core. <Default>: S32K344
Type '?' for selection dialog
Device>S32K344
Please specify target interface:
J) JTAG (Default)
S) SWD
T) cJTAG
TIF>S
Specify target interface speed [kHz]. <Default>: 4000 kHz
Speed>1000
Device "S32K344" selected.
Connecting to target via SWD
ConfigTargetSettings() start
ConfigTargetSettings() end - Took 12us
InitTarget() start
SDA_AP detected
Checking if debug access is already enabled...
Debug access is not enabled yet. Performing enable debug access sequence...
Debug access enabled
Checking if HSE firmware is installed...
HSE firmware not installed
Lock step mode enabled
InitTarget() end - Took 27.8ms
Found SW-DP with ID 0x6BA02477
DPIDR: 0x6BA02477
CoreSight SoC-400 or earlier
AP map detection skipped. Manually configured AP map found.
AP[0]: MEM-AP (IDR: Not set)
AP[1]: APB-AP (IDR: Not set)
AP[2]: MEM-AP (IDR: Not set)
AP[3]: MEM-AP (IDR: Not set)
AP[4]: AHB-AP (IDR: Not set)
AP[5]: AHB-AP (IDR: Not set)
AP[6]: MEM-AP (IDR: Not set)
AP[7]: MEM-AP (IDR: Not set)
AP[4]: Skipped ROMBASE read. CoreBaseAddr manually set by user
AP[4]: Core found
CPUID register: 0x411FC272. Implementer code: 0x41 (ARM)
Cache: L1 I/D-cache present
Found Cortex-M7 r1p2, Little endian.
FPUnit: 8 code (BP) slots and 0 literal slots
ROM table scan skipped. CoreBaseAddr manually set by user: 0x40250400
I-Cache L1: 8 KB, 128 Sets, 32 Bytes/Line, 2-Way
D-Cache L1: 8 KB, 64 Sets, 32 Bytes/Line, 4-Way
SetupTarget() start
Initializing ECC RAM...
RAMCodeAddr: 0x20000000
RAMInitAddr: 0x20000010
RAMInitSize: 0x00007FF0
InitPattern: 0xDEADBEEF
ECC RAM initialized successfully
Initializing ECC RAM...
RAMCodeAddr: 0x20000000
RAMInitAddr: 0x20400000
RAMInitSize: 0x00004000
InitPattern: 0xDEADBEEF
ECC RAM initialized successfully
SetupTarget() end - Took 35.2ms
Memory zones:
Zone: "Default" Description: Default access mode
Cortex-M7 identified.
J-Link>