Hello,
My jlink suddenly couldn't connect to my RT1064 board, and now the J-link commander only can get the RT1064 information but cannot debug in MCUXPresso.
My debug environment:
IDE | CUXPresso 10.3.1 |
Debuger | Jlink Base |
Debuger Driver | Jlink V6.84 Driver |
1. The J-Link Commander can get the RT1064 information
2. MUCXPresso shows following error
and the jlink display following log:
SEGGER J-Link GDB Server V6.84 GUI Version
JLinkARM.dll V6.84 (DLL compiled Sep 4 2020 16:12:50)
-----GDB Server start settings-----
GDBInit file: none
GDB Server Listening port: 2331
SWO raw output listening port: 2332
Terminal I/O port: 2333
Accept remote connection: localhost only
Generate logfile: off
Verify download: on
Init regs on start: off
Silent mode: off
Single run mode: on
Target connection timeout: 5000 ms
------J-Link related settings------
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
------Target related settings------
Target device: MIMXRT1064DVL6A
Target interface: SWD
Target interface speed: 1000kHz
Target endian: little
Connecting to J-Link...
J-Link is connected.
Device "MIMXRT1064XXX6A" selected.
Firmware: J-Link V10 compiled Jul 17 2020 16:23:38
Hardware: V10.10
S/N: 50124254
Feature(s): GDB
Checking target voltage...
Target voltage: 3.35 V
Listening on TCP/IP port 2331
Connecting to target...
InitTarget() start
InitTarget()
_TargetHalt: CPU halted
InitTarget() end
Found SW-DP with ID 0x0BD11477
DPIDR: 0x0BD11477
Scanning AP map to find all available APs
AP[1]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x04770041)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FD000
CPUID register: 0x411FC271. Implementer code: 0x41 (ARM)
Found Cortex-M7 r1p1, Little endian.
FPUnit: 8 code (BP) slots and 0 literal slots
CoreSight components:
ROMTbl[0] @ E00FD000
ROMTbl[0][0]: E00FE000, CID: B105100D, PID: 000BB4C8 ROM Table
ROMTbl[1] @ E00FE000
ROMTbl[1][0]: E00FF000, CID: B105100D, PID: 000BB4C7 ROM Table
ROMTbl[2] @ E00FF000
ROMTbl[2][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7
ROMTbl[2][1]: E0001000, CID: B105E00D, PID: 000BB002 DWT
ROMTbl[2][2]: E0002000, CID: B105E00D, PID: 000BB00E FPB-M7
ROMTbl[2][3]: E0000000, CID: B105E00D, PID: 000BB001 ITM
ROMTbl[1][1]: E0041000, CID: B105900D, PID: 001BB975 ETM-M7
ROMTbl[1][2]: E0042000, CID: B105900D, PID: 004BB906 CTI
ROMTbl[0][1]: E0040000, CID: B105900D, PID: 000BB9A9 TPIU-M7
ROMTbl[0][2]: E0043000, CID: B105F00D, PID: 001BB101 TSG
Cache: Separate I- and D-cache.
I-Cache L1: 32 KB, 512 Sets, 32 Bytes/Line, 2-Way
D-Cache L1: 32 KB, 256 Sets, 32 Bytes/Line, 4-Way
Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
Reading all registers
Read 2 bytes @ address 0x7003B540 (Data = 0xFFFF)
Read 2 bytes @ address 0x7002FB50 (Data = 0x7372)
Read 4 bytes @ address 0x70029CAC (Data = 0x3102E7FE)
Reading 64 bytes @ address 0x20200E80
Read 4 bytes @ address 0x700039DA (Data = 0xF503687B)
Reading 64 bytes @ address 0x20200E40
Reading 8 bytes @ address 0xB8400000
WARNING: Failed to read memory @ address 0xB8400000
WARNING: Failed to read memory @ address 0xB8400000
WARNING: Failed to read memory @ address 0xB8400000
Reading 8 bytes @ address 0xB8400000
WARNING: Failed to read memory @ address 0xB8400000
WARNING: Failed to read memory @ address 0xB8400000
WARNING: Failed to read memory @ address 0xB8400000
Received monitor command: reset
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Resetting target
Downloading 8192 bytes @ address 0x70000000 - Verified OK
Downloading 16144 bytes @ address 0x70002000 - Verified OK
Downloading 15744 bytes @ address 0x70005F10 - Verified OK
Downloading 16128 bytes @ address 0x70009C90 - Verified OK
Downloading 16032 bytes @ address 0x7000DB90 - Verified OK
Downloading 16144 bytes @ address 0x70011A30 - Verified OK
Downloading 16144 bytes @ address 0x70015940 - Verified OK
Downloading 16128 bytes @ address 0x70019850 - Verified OK
Downloading 16128 bytes @ address 0x7001D750 - Verified OK
Downloading 16192 bytes @ address 0x70021650 - Verified OK
Downloading 16096 bytes @ address 0x70025590 - Verified OK
Downloading 16112 bytes @ address 0x70029470 - Verified OK
Downloading 16096 bytes @ address 0x7002D360 - Verified OK
Downloading 16096 bytes @ address 0x70031240 - Verified OK
Downloading 16144 bytes @ address 0x70035120 - Verified OK
Downloading 16192 bytes @ address 0x70039030 - Verified OK
Downloading 16320 bytes @ address 0x7003CF70 - Verified OK
Downloading 15000 bytes @ address 0x70040F30 - Verified OK
Downloading 2956 bytes @ address 0x700449C8 - Verified OK
Downloading 2360 bytes @ address 0x70045554 - Verified OK
Downloading 1748 bytes @ address 0x70045E8C - Verified OK
Downloading 3600 bytes @ address 0x70046560 - Verified OK
ERROR: Failed to download RAMCode.
Failed to prepare for programming.
Failed to download RAMCode!
Writing register (PC = 0x700022f4)
Read 2 bytes @ address 0x7003B540 (Data = 0x31BF)
Read 2 bytes @ address 0x7002FB50 (Data = 0x31BF)
Read 2 bytes @ address 0x7003B540 (Data = 0x31BF)
Read 2 bytes @ address 0x7002FB50 (Data = 0x31BF)
Reading all registers
WARNING: Failed to read memory @ address 0xFFFFFFFE
Reading 64 bytes @ address 0x7002F200
Read 2 bytes @ address 0x7002F220 (Data = 0x31BF)
Received monitor command: semihosting enable
Semi-hosting enabled (Handle on BKPT)
Received monitor command: exec SetRestartOnClose=1
Executed SetRestartOnClose=1
Received monitor command: reset
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Resetting target
Setting breakpoint @ address 0x7002F220, Size = 2, BPHandle = 0x0001
Starting target CPU...
ERROR: Could not start CPU core. (ErrorCode: -1)
ERROR: Cannot read register 15 (R15) while CPU is running
Reading all registers
ERROR: Cannot read register 0 (R0) while CPU is running
ERROR: Cannot read register 1 (R1) while CPU is running
ERROR: Cannot read register 2 (R2) while CPU is running
ERROR: Cannot read register 3 (R3) while CPU is running
ERROR: Cannot read register 4 (R4) while CPU is running
ERROR: Cannot read register 5 (R5) while CPU is running
ERROR: Cannot read register 6 (R6) while CPU is running
ERROR: Cannot read register 7 (R7) while CPU is running
ERROR: Cannot read register 8 (R8) while CPU is running
ERROR: Cannot read register 9 (R9) while CPU is running
ERROR: Cannot read register 10 (R10) while CPU is running
ERROR: Cannot read register 11 (R11) while CPU is running
ERROR: Cannot read register 12 (R12) while CPU is running
ERROR: Cannot read register 13 (R13) while CPU is running
ERROR: Cannot read register 14 (R14) while CPU is running
ERROR: Cannot read register 15 (R15) while CPU is running
ERROR: Cannot read register 16 (XPSR) while CPU is running
ERROR: Cannot read register 17 (MSP) while CPU is running
ERROR: Cannot read register 18 (PSP) while CPU is running
ERROR: Cannot read register 24 (PRIMASK) while CPU is running
ERROR: Cannot read register 25 (BASEPRI) while CPU is running
ERROR: Cannot read register 26 (FAULTMASK) while CPU is running
ERROR: Cannot read register 27 (CONTROL) while CPU is running
ERROR: Cannot read register 32 (FPSCR) while CPU is running
ERROR: Cannot read register 33 (FPS0) while CPU is running
ERROR: Cannot read register 34 (FPS1) while CPU is running
ERROR: Cannot read register 35 (FPS2) while CPU is running
ERROR: Cannot read register 36 (FPS3) while CPU is running
ERROR: Cannot read register 37 (FPS4) while CPU is running
ERROR: Cannot read register 38 (FPS5) while CPU is running
ERROR: Cannot read register 39 (FPS6) while CPU is running
ERROR: Cannot read register 40 (FPS7) while CPU is running
ERROR: Cannot read register 41 (FPS8) while CPU is running
ERROR: Cannot read register 42 (FPS9) while CPU is running
ERROR: Cannot read register 43 (FPS10) while CPU is running
ERROR: Cannot read register 44 (FPS11) while CPU is running
ERROR: Cannot read register 45 (FPS12) while CPU is running
ERROR: Cannot read register 46 (FPS13) while CPU is running
ERROR: Cannot read register 47 (FPS14) while CPU is running
ERROR: Cannot read register 48 (FPS15) while CPU is running
ERROR: Cannot read register 49 (FPS16) while CPU is running
ERROR: Cannot read register 50 (FPS17) while CPU is running
ERROR: Cannot read register 51 (FPS18) while CPU is running
ERROR: Cannot read register 52 (FPS19) while CPU is running
ERROR: Cannot read register 53 (FPS20) while CPU is running
ERROR: Cannot read register 54 (FPS21) while CPU is running
ERROR: Cannot read register 55 (FPS22) while CPU is running
ERROR: Cannot read register 56 (FPS23) while CPU is running
ERROR: Cannot read register 57 (FPS24) while CPU is running
ERROR: Cannot read register 58 (FPS25) while CPU is running
ERROR: Cannot read register 59 (FPS26) while CPU is running
ERROR: Cannot read register 60 (FPS27) while CPU is running
ERROR: Cannot read register 61 (FPS28) while CPU is running
ERROR: Cannot read register 62 (FPS29) while CPU is running
ERROR: Cannot read register 63 (FPS30) while CPU is running
ERROR: Cannot read register 64 (FPS31) while CPU is running
ERROR: Cannot read register 33 (FPS0) while CPU is running
ERROR: Cannot read register 34 (FPS1) while CPU is running
ERROR: Cannot read register 35 (FPS2) while CPU is running
ERROR: Cannot read register 36 (FPS3) while CPU is running
ERROR: Cannot read register 37 (FPS4) while CPU is running
ERROR: Cannot read register 38 (FPS5) while CPU is running
ERROR: Cannot read register 39 (FPS6) while CPU is running
ERROR: Cannot read register 40 (FPS7) while CPU is running
ERROR: Cannot read register 41 (FPS8) while CPU is running
ERROR: Cannot read register 42 (FPS9) while CPU is running
ERROR: Cannot read register 43 (FPS10) while CPU is running
ERROR: Cannot read register 44 (FPS11) while CPU is running
ERROR: Cannot read register 45 (FPS12) while CPU is running
ERROR: Cannot read register 46 (FPS13) while CPU is running
ERROR: Cannot read register 47 (FPS14) while CPU is running
ERROR: Cannot read register 48 (FPS15) while CPU is running
ERROR: Cannot read register 49 (FPS16) while CPU is running
ERROR: Cannot read register 50 (FPS17) while CPU is running
ERROR: Cannot read register 51 (FPS18) while CPU is running
ERROR: Cannot read register 52 (FPS19) while CPU is running
ERROR: Cannot read register 53 (FPS20) while CPU i
3. My jlink configuration
.
Anybody has ever get this issue and give me some helps? thanks.
Solved! Go to Solution.
Hi colin,
Normally, this kind of problem is caused by application code has error and the core go into a unknow status. Please try to use MCUBootUtility to clear flash. You can download it from https://github.com/JayHeng/NXP-MCUBootUtility.
Regards,
Jing
Hi colin,
Normally, this kind of problem is caused by application code has error and the core go into a unknow status. Please try to use MCUBootUtility to clear flash. You can download it from https://github.com/JayHeng/NXP-MCUBootUtility.
Regards,
Jing
Thank you for your help, I have resolved this issue by switching to serial download mode and clear all flash, then I can debug after switching to internal mode.