Hello Together,
i have some problems with a S32K144. I was able to debug and flash the device for quite some time.
I have prgrammed the S32K144 from a seond controller via SWD but I must done somting wrong.
Now it is not more posibble to connect the prozessor with debug interface.
The content of console:
Connecting to J-Link...
J-Link is connected.
Firmware: J-Link V10 compiled Jan 7 2019 14:00:10
Hardware: V10.10
S/N: 50111539
Feature(s): GDB
Checking target voltage...
Target voltage: 3.28 V
Listening on TCP/IP port 2331
Connecting to target...
J-Link found 1 JTAG device, Total IRLen = 4
JTAG ID: 0x1993D01D (Cortex-M4)
Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
Reading all registers
Read 4 bytes @ address 0x00000000 (Data = 0x20007000)
Read 2 bytes @ address 0x00000000 (Data = 0x7000)
Received monitor command: speed 1000
Target interface speed set to 1000 kHz
Received monitor command: clrbp
Received monitor command: reset
Resetting target
Received monitor command: halt
Halting target CPU...
...Target halted (PC = 0x0000069C)
Received monitor command: regs
R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
R12= 00000000, R13= 20007000, MSP= 20007000, PSP= 00000000
R14(LR) = FFFFFFFF, R15(PC) = 0000069C
XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Read 4 bytes @ address 0x0000069C (Data = 0xF04FB672)
Read 2 bytes @ address 0x0000069C (Data = 0xB672)
Received monitor command: speed auto
Select auto target interface speed (4000 kHz)
Received monitor command: flash breakpoints 1
Flash breakpoints enabled
Received monitor command: semihosting enable
Semi-hosting enabled (Handle on BKPT)
Received monitor command: semihosting IOClient 1
Semihosting I/O set to TELNET Client
Read 4 bytes @ address 0x0000069C (Data = 0xF04FB672)
Read 2 bytes @ address 0x0000069C (Data = 0xB672)
Downloading 1024 bytes @ address 0x00000000 - Verified OK
Downloading 16 bytes @ address 0x00000400 - Verified OK
Downloading 220 bytes @ address 0x00000410 - Verified OK
Downloading 4 bytes @ address 0x00000500 - Verified OK
Downloading 44 bytes @ address 0x00000504 - Verified OK
Downloading 24 bytes @ address 0x000005C0 - Verified OK
Downloading 24 bytes @ address 0x000005E0 - Verified OK
Downloading 16152 bytes @ address 0x000005F8 - Verified OK
Downloading 16160 bytes @ address 0x00004510 - Verified OK
Downloading 15920 bytes @ address 0x00008430 - Verified OK
Downloading 16048 bytes @ address 0x0000C260 - Verified OK
Downloading 16304 bytes @ address 0x00010110 - Verified OK
Downloading 13168 bytes @ address 0x000140C0 - Verified OK
Downloading 4 bytes @ address 0x00017430 - Verified OK
Downloading 4 bytes @ address 0x00017434 - Verified OK
Downloading 1908 bytes @ address 0x00017438 - Verified OK
Downloading 8816 bytes @ address 0x00017BAC - Verified OK
Downloading 16368 bytes @ address 0x00019E20 - Verified OK
Downloading 16 bytes @ address 0x0001DE10 - Verified OK
Read 4 bytes @ address 0x0000069C (Data = 0xF04FB672)
Read 2 bytes @ address 0x0000069C (Data = 0xB672)
Read 2 bytes @ address 0x000030B2 (Data = 0xF002)
Read 2 bytes @ address 0x000030B2 (Data = 0xF002)
Received monitor command: clrbp
Received monitor command: reset
Comparing flash [....................] Done.
Erasing flash [....................] Done.
Verifying flash [....................] Done.
ERROR: Timeout while restoring target, RAMCode did not respond in time. (PC = 0x00000000, CPSR = 0x00000000, LR = 0x81000003)!
Failed to restore target. RAMCode never stops
Failed to erase sectors 8 @ address 0x00008000 (unspecified error)
Resetting target
Received monitor command: halt
Halting target CPU...
...Target halted (PC = 0x0000069C)
Read 2 bytes @ address 0x000030B2 (Data = 0xF002)
Read 2 bytes @ address 0x000030B2 (Data = 0xF002)
Read 2 bytes @ address 0x000030B2 (Data = 0xF002)
Received monitor command: regs
R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
R12= 00000000, R13= 20007000, MSP= 20007000, PSP= 00000000
R14(LR) = FFFFFFFF, R15(PC) = 0000069C
XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Read 4 bytes @ address 0x0000069C (Data = 0xF04FB672)
Read 2 bytes @ address 0x0000069C (Data = 0xB672)
Setting breakpoint @ address 0x000030B2, Size = 2, BPHandle = 0x0001
Starting target CPU...
BR
Lutz