RT1180 Debugging not working

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

RT1180 Debugging not working

1,250件の閲覧回数
dogo
Contributor I

Hi together,

I currently have issues debugging my MIMXRT1180-EVK board using Zephyr RTOS in VSCode. Neither the MCU Link nor the JLink is working properly but with different problems.

MCULink: 

Using the MCULink (and Linkserver run by west as GDB Server), I cannot access several address regions (e.g. all peripheral addresses 0x40000000/0x50000000 and external RAM at 0x14000000). VSCode and CortexDebug extension are giving me error messages like the following (trying to access CCM registers): 

-data-read-memory-bytes "0x44452200" 52
error,msg="Unable to read memory."

Everything else (flashing, halting, breakpoints, reset) is working as expected. 

When debugging a sample application in MCUXpresso IDE everything (also peripheral register readout) is working fine.

 

JLink:

When trying to choose JLink as a runner for west, I am able to attach to a running application (west attach or via the CortexDebug VSCode-Extension) and can access all relevant addresses there (peripheral register addresses in particular) without any issues. When trying to reset, nothing happens. The application seems to continue to run normally without a reset (no breakpoints at start are reached). 

When trying to launch a debug session (west debug/west debugserver or via the CortexDebug VSCode-Extension), the application does not start. The JLinkScript file is the one provided by NXP. The JLink GDB server gives the following output:

JLinkGDBServer -singlerun -nogui -if swd -port 50000 -swoport 50001 -telnetport 50002 -device MIMXRT1189XXX8_M33 -jlinkscriptfile /workdir/modules/hal/nxp/mcux/mcux-sdk/boards/evkmimxrt1180/jlinkscript/evkmimxrt1180_cm33.jlinkscript
SEGGER J-Link GDB Server V8.12 Command Line Version

JLinkARM.dll V8.12 (DLL compiled Dec 18 2024 15:43:28)

Command line: -singlerun -nogui -if swd -port 50000 -swoport 50001 -telnetport 50002 -device MIMXRT1189XXX8_M33 -jlinkscriptfile /workdir/modules/hal/nxp/mcux/mcux-sdk/boards/evkmimxrt1180/jlinkscript/evkmimxrt1180_cm33.jlinkscript
-----GDB Server start settings-----
GDBInit file:                  none
GDB Server Listening port:     50000
SWO raw output listening port: 50001
Terminal I/O port:             50002
Accept remote connection:      yes
Generate logfile:              off
Verify download:               off
Init regs on start:            off
Silent mode:                   off
Single run mode:               on
Target connection timeout:     0 ms
------J-Link related settings------
J-Link Host interface:         USB
J-Link script:                 /workdir/modules/hal/nxp/mcux/mcux-sdk/boards/evkmimxrt1180/jlinkscript/evkmimxrt1180_cm33.jlinkscript
J-Link settings file:          none
------Target related settings------
Target device:                 MIMXRT1189XXX8_M33
Target device parameters:      none
Target interface:              SWD
Target interface speed:        4000kHz
Target endian:                 little

Connecting to J-Link...
J-Link is connected.
Firmware: J-Link V10 compiled Jan 30 2023 11:28:07
Hardware: V10.10
S/N: 50107660
Feature(s): GDB
Checking target voltage...
Target voltage: 3.31 V
Listening on TCP/IP port 50000
Connecting to target...
Halting core...
Core security extensions: Implemented
Connected to target
Waiting for GDB connection...Connected to 0000:0000:0000:0000:0000:0000:0000:0001
GDB client (conn. 10) requested target.xml from GDB Server
Reading common registers: Read register 'r0' (4 bytes) from hardware: 0x74280014
Read register 'r1' (4 bytes) from hardware: 0x00000000
Read register 'r2' (4 bytes) from hardware: 0x00000000
Read register 'r3' (4 bytes) from hardware: 0x00000000
Read register 'r4' (4 bytes) from hardware: 0xCC820014
Read register 'r5' (4 bytes) from hardware: 0x19E30128
Read register 'r6' (4 bytes) from hardware: 0x74280014
Read register 'r7' (4 bytes) from hardware: 0x00000000
Read register 'r8' (4 bytes) from hardware: 0x00000000
Read register 'r9' (4 bytes) from hardware: 0x08000000
Read register 'r10' (4 bytes) from hardware: 0x00000000
Read register 'r11' (4 bytes) from hardware: 0x00000000
Read register 'r12' (4 bytes) from hardware: 0x00000041
Read register 'sp' (4 bytes) from hardware: 0xB8820014
Read register 'lr' (4 bytes) from hardware: 0x2DE30128
Read register 'pc' (4 bytes) from hardware: 0xD0810128
Read register 'xpsr' (4 bytes) from hardware: 0x00000061
Received monitor command: halt
Halting target CPU...
...Target halted (PC = 0x280181D0)
Received monitor command: reset
Resetting target
Downloading 16352 bytes @ address 0x28000000
Downloading 16352 bytes @ address 0x28003FE0
Downloading 13372 bytes @ address 0x28007FC0
Downloading 16080 bytes @ address 0x2800B400
Downloading 16048 bytes @ address 0x2800F2D0
Downloading 16000 bytes @ address 0x28013180
Downloading 16096 bytes @ address 0x28017000
Downloading 15968 bytes @ address 0x2801AEE0
Downloading 544 bytes @ address 0x2801ED40
Downloading 8 bytes @ address 0x2801EF60
Downloading 216 bytes @ address 0x2801EF68
Downloading 360 bytes @ address 0x2801F040
Downloading 1912 bytes @ address 0x2801F1A8
Downloading 144 bytes @ address 0x2801F920
Downloading 96 bytes @ address 0x2801F9B0
Downloading 36 bytes @ address 0x2801FA10
Downloading 24 bytes @ address 0x2801FA34
Downloading 28 bytes @ address 0x2801FA4C
Downloading 28 bytes @ address 0x2801FA68
Downloading 16 bytes @ address 0x2801FA84
Downloading 24 bytes @ address 0x2801FA94
Downloading 20 bytes @ address 0x2801FAAC
Downloading 40 bytes @ address 0x2801FAC0
Downloading 16 bytes @ address 0x2801FAE8
Downloading 176 bytes @ address 0x2801FAF8
Downloading 16 bytes @ address 0x2801FBA8
Downloading 9404 bytes @ address 0x2801FBB8
Downloading 1476 bytes @ address 0x28022074
Downloading 36 bytes @ address 0x28022638
Downloading 64 bytes @ address 0x2802265C
Downloading 4 bytes @ address 0x2802269C
Downloading 56 bytes @ address 0x280226A0
Downloading 80 bytes @ address 0x280226D8
Downloading 24 bytes @ address 0x28022728
Downloading 88 bytes @ address 0x28022740
Downloading 20 bytes @ address 0x28022798
Downloading 4 bytes @ address 0x280227AC
Writing register 'pc' = 0x2800E6A4
Comparing flash   [....................] Done.
Received monitor command: reset
Resetting target
Reading 64 bytes @ address 0x2800BF40
Read 4 bytes @ address 0x2800C010 (Data = 0x14002874)
Read 4 bytes @ address 0x2800C010 (Data = 0x14002874)
Read 4 bytes @ address 0x2800C010 (Data = 0x14002874)
Read 4 bytes @ address 0x2800C010 (Data = 0x14002874)
Read 4 bytes @ address 0x2800C010 (Data = 0x14002874)
Read 2 bytes @ address 0x2800BF52 (Data = 0x4B2F)
Read 2 bytes @ address 0x2800BF56 (Data = 0x2300)
Read 2 bytes @ address 0x2800BF5E (Data = 0xB08A)
Read 2 bytes @ address 0x2800BF62 (Data = 0xF11C)
Read 2 bytes @ address 0x2800C000 (Data = 0x2000)
Reading 64 bytes @ address 0x2800C000
Read 2 bytes @ address 0x2800C106 (Data = 0xF44F)
Setting breakpoint @ address 0x2800BF52, Kind = 2, Type = THUMB, BPHandle = 0x0001
Setting breakpoint @ address 0x2800BF56, Kind = 2, Type = THUMB, BPHandle = 0x0002
Setting breakpoint @ address 0x2800BF5E, Kind = 2, Type = THUMB, BPHandle = 0x0003
Setting breakpoint @ address 0x2800BF62, Kind = 2, Type = THUMB, BPHandle = 0x0004
Setting breakpoint @ address 0x2800C000, Kind = 2, Type = THUMB, BPHandle = 0x0005
Setting breakpoint @ address 0x2800C106, Kind = 2, Type = THUMB, BPHandle = 0x0006
Starting target CPU...
Reading common registers: Read register 'r0' (4 bytes) from hardware: 0x00000000
Read register 'r1' (4 bytes) from hardware: 0x01000000
Read register 'r2' (4 bytes) from hardware: 0x01000000
Read register 'r3' (4 bytes) from hardware: 0x99000020
Read register 'r4' (4 bytes) from hardware: 0x98680020
Read register 'r5' (4 bytes) from hardware: 0x78170020
Read register 'r6' (4 bytes) from hardware: 0x00000028
Read register 'r7' (4 bytes) from hardware: 0xF8680020
Read register 'r8' (4 bytes) from hardware: 0x00000000
Read register 'r9' (4 bytes) from hardware: 0x24230040
Read register 'r10' (4 bytes) from hardware: 0x00000000
Read register 'r11' (4 bytes) from hardware: 0x00000000
Read register 'r12' (4 bytes) from hardware: 0x0F000000
Read register 'sp' (4 bytes) from hardware: 0x68280020
Read register 'lr' (4 bytes) from hardware: 0xAF090020
Read register 'pc' (4 bytes) from hardware: 0x68090020
Read register 'xpsr' (4 bytes) from hardware: 0x00000021
Removing breakpoint @ address 0x2800BF52, Size = 2
Removing breakpoint @ address 0x2800BF56, Size = 2
Removing breakpoint @ address 0x2800BF5E, Size = 2
Removing breakpoint @ address 0x2800BF62, Size = 2
Removing breakpoint @ address 0x2800C000, Size = 2
Removing breakpoint @ address 0x2800C106, Size = 2
Read 4 bytes @ address 0x20000968 (Data = 0xDEADBEEF)
Read 2 bytes @ address 0x20000968 (Data = 0xBEEF)
Reading 52 bytes @ address 0x44450000
Reading 52 bytes @ address 0x44450000
Read 4 bytes @ address 0x200009AE (Data = 0xBEEFDEAD)
Read 2 bytes @ address 0x200009AE (Data = 0xDEAD)
Read 4 bytes @ address 0x200009AE (Data = 0xBEEFDEAD)
Read 2 bytes @ address 0x200009AE (Data = 0xDEAD)
Reading 52 bytes @ address 0x44450080
Reading 52 bytes @ address 0x44450080
Reading 52 bytes @ address 0x44450100
Reading 52 bytes @ address 0x44450100
Reading 52 bytes @ address 0x44450180
Reading 52 bytes @ address 0x44450180
Reading 52 bytes @ address 0x44450200
Reading 52 bytes @ address 0x44450200
Reading 52 bytes @ address 0x44450280
Reading 52 bytes @ address 0x44450280
Reading 52 bytes @ address 0x44450300
Reading 52 bytes @ address 0x44450300
Reading 52 bytes @ address 0x44450380
Reading 52 bytes @ address 0x44450380
Reading 52 bytes @ address 0x44450400
Reading 52 bytes @ address 0x44450400
Reading 52 bytes @ address 0x44450480
Reading 52 bytes @ address 0x44450480
Reading 52 bytes @ address 0x44450500
Reading 52 bytes @ address 0x44450500
Reading 52 bytes @ address 0x44450580
Reading 52 bytes @ address 0x44450580
Reading 52 bytes @ address 0x44450600
Reading 52 bytes @ address 0x44450600
Reading 52 bytes @ address 0x44450680
Reading 52 bytes @ address 0x44450680
Reading 52 bytes @ address 0x44450700
Reading 52 bytes @ address 0x44450700
Reading 52 bytes @ address 0x44450780
Reading 52 bytes @ address 0x44450780
Reading 52 bytes @ address 0x44450800
Reading 52 bytes @ address 0x44450800
Reading 52 bytes @ address 0x44450880
Reading 52 bytes @ address 0x44450880
Reading 52 bytes @ address 0x44450900
Reading 52 bytes @ address 0x44450900
Reading 52 bytes @ address 0x44450980
Reading 52 bytes @ address 0x44450980
Reading 52 bytes @ address 0x44450A00
Reading 52 bytes @ address 0x44450A00
Reading 52 bytes @ address 0x44450A80
Reading 52 bytes @ address 0x44450A80
Reading 52 bytes @ address 0x44450B00
Reading 52 bytes @ address 0x44450B00
Reading 52 bytes @ address 0x44450B80
Reading 52 bytes @ address 0x44450B80
Reading 52 bytes @ address 0x44450C00
Reading 52 bytes @ address 0x44450C00
Reading 52 bytes @ address 0x44450C80
Reading 52 bytes @ address 0x44450C80
Reading 52 bytes @ address 0x44450D00
Reading 52 bytes @ address 0x44450D00
Reading 52 bytes @ address 0x44450D80
Reading 52 bytes @ address 0x44450D80
Reading 52 bytes @ address 0x44450E00
Reading 52 bytes @ address 0x44450E00
Reading 52 bytes @ address 0x44450E80
Reading 52 bytes @ address 0x44450E80
Reading 52 bytes @ address 0x44450F00
Reading 52 bytes @ address 0x44450F00
Reading 52 bytes @ address 0x44450F80
Reading 52 bytes @ address 0x44450F80
Reading 52 bytes @ address 0x44451000
Reading 52 bytes @ address 0x44451000
Reading 52 bytes @ address 0x44451080
Reading 52 bytes @ address 0x44451080
Reading 52 bytes @ address 0x44451100
Reading 52 bytes @ address 0x44451100
Reading 52 bytes @ address 0x44451180
Reading 52 bytes @ address 0x44451180
Reading 52 bytes @ address 0x44451200
Reading 52 bytes @ address 0x44451200
Reading 52 bytes @ address 0x44451280
Reading 52 bytes @ address 0x44451280
Reading 52 bytes @ address 0x44451300
Reading 52 bytes @ address 0x44451300
Reading 52 bytes @ address 0x44451380
Reading 52 bytes @ address 0x44451380
Reading 52 bytes @ address 0x44451400
Reading 52 bytes @ address 0x44451400
Reading 52 bytes @ address 0x44451480
Reading 52 bytes @ address 0x44451480
Reading 52 bytes @ address 0x44451500
Reading 52 bytes @ address 0x44451500
Reading 52 bytes @ address 0x44451580
Reading 52 bytes @ address 0x44451580
Reading 52 bytes @ address 0x44451600
Reading 52 bytes @ address 0x44451600
Reading 52 bytes @ address 0x44451680
Reading 52 bytes @ address 0x44451680
Reading 52 bytes @ address 0x44451700
Reading 52 bytes @ address 0x44451700
Reading 52 bytes @ address 0x44451780
Reading 52 bytes @ address 0x44451780
Reading 52 bytes @ address 0x44451800
Reading 52 bytes @ address 0x44451800
Reading 52 bytes @ address 0x44451880
Reading 52 bytes @ address 0x44451880
Reading 52 bytes @ address 0x44451900
Reading 52 bytes @ address 0x44451900
Reading 52 bytes @ address 0x44451980
Reading 52 bytes @ address 0x44451980
Reading 52 bytes @ address 0x44451A00
Reading 52 bytes @ address 0x44451A00
Reading 52 bytes @ address 0x44451A80
Reading 52 bytes @ address 0x44451A80
Reading 52 bytes @ address 0x44451B00
Reading 52 bytes @ address 0x44451B00
Reading 52 bytes @ address 0x44451B80
Reading 52 bytes @ address 0x44451B80
Reading 52 bytes @ address 0x44451C00
Reading 52 bytes @ address 0x44451C00
Reading 52 bytes @ address 0x44451C80
Reading 52 bytes @ address 0x44451C80
Reading 52 bytes @ address 0x44451D00
Reading 52 bytes @ address 0x44451D00
Reading 52 bytes @ address 0x44451D80
Reading 52 bytes @ address 0x44451D80
Reading 52 bytes @ address 0x44451E00
Reading 52 bytes @ address 0x44451E00
Reading 52 bytes @ address 0x44451E80
Reading 52 bytes @ address 0x44451E80
Reading 52 bytes @ address 0x44451F00
Reading 52 bytes @ address 0x44451F00
Reading 52 bytes @ address 0x44451F80
Reading 52 bytes @ address 0x44451F80
Reading 52 bytes @ address 0x44452000
Reading 52 bytes @ address 0x44452000
Reading 52 bytes @ address 0x44452080
Reading 52 bytes @ address 0x44452080
Reading 52 bytes @ address 0x44452100
Reading 52 bytes @ address 0x44452100
Reading 52 bytes @ address 0x44452180
Reading 52 bytes @ address 0x44452180
Reading 52 bytes @ address 0x44452200
Reading 52 bytes @ address 0x44452200
Reading 52 bytes @ address 0x44452280
Reading 52 bytes @ address 0x44452280
Reading 52 bytes @ address 0x44452300
Reading 52 bytes @ address 0x44452300
Reading 52 bytes @ address 0x44452380
Reading 52 bytes @ address 0x44452380
Reading 52 bytes @ address 0x44452400
Reading 52 bytes @ address 0x44452400
Reading 52 bytes @ address 0x44452480
Reading 52 bytes @ address 0x44452480
Reading 252 bytes @ address 0x44454400
Reading 252 bytes @ address 0x44454400
Reading 544 bytes @ address 0x44454800
Reading 544 bytes @ address 0x44454800
Reading 128 bytes @ address 0x44454C00
Reading 128 bytes @ address 0x44454C00
Reading 1588 bytes @ address 0x44455000
Reading 1588 bytes @ address 0x44455000
Reading 4096 bytes @ address 0x44458000
Reading 4096 bytes @ address 0x44458000
Reading 4096 bytes @ address 0x44459000
Reading 4096 bytes @ address 0x44459000
Reading 1332 bytes @ address 0x4445A000
Reading 1332 bytes @ address 0x4445A000
Setting breakpoint @ address 0x2800BF52, Kind = 2, Type = THUMB, BPHandle = 0x0007
Setting breakpoint @ address 0x2800BF56, Kind = 2, Type = THUMB, BPHandle = 0x0008
Setting breakpoint @ address 0x2800BF5E, Kind = 2, Type = THUMB, BPHandle = 0x0009
Setting breakpoint @ address 0x2800BF62, Kind = 2, Type = THUMB, BPHandle = 0x000A
Setting breakpoint @ address 0x2800C000, Kind = 2, Type = THUMB, BPHandle = 0x000B
Setting breakpoint @ address 0x2800C106, Kind = 2, Type = THUMB, BPHandle = 0x000C
Starting target CPU...
Reading common registers: Read register 'r0' (4 bytes) from hardware: 0x00000000
Read register 'r1' (4 bytes) from hardware: 0x01000000
Read register 'r2' (4 bytes) from hardware: 0x01000000
Read register 'r3' (4 bytes) from hardware: 0x99000020
Read register 'r4' (4 bytes) from hardware: 0x98680020
Read register 'r5' (4 bytes) from hardware: 0x78170020
Read register 'r6' (4 bytes) from hardware: 0x00000028
Read register 'r7' (4 bytes) from hardware: 0xF8680020
Read register 'r8' (4 bytes) from hardware: 0x00000000
Read register 'r9' (4 bytes) from hardware: 0x24230040
Read register 'r10' (4 bytes) from hardware: 0x00000000
Read register 'r11' (4 bytes) from hardware: 0x00000000
Read register 'r12' (4 bytes) from hardware: 0x0F000000
Read register 'sp' (4 bytes) from hardware: 0x68280020
Read register 'lr' (4 bytes) from hardware: 0xAF090020
Read register 'pc' (4 bytes) from hardware: 0x68090020
Read register 'xpsr' (4 bytes) from hardware: 0x00000021
Removing breakpoint @ address 0x2800BF52, Size = 2
Removing breakpoint @ address 0x2800BF56, Size = 2
Removing breakpoint @ address 0x2800BF5E, Size = 2
Removing breakpoint @ address 0x2800BF62, Size = 2
Removing breakpoint @ address 0x2800C000, Size = 2
Removing breakpoint @ address 0x2800C106, Size = 2
Read 4 bytes @ address 0x20000968 (Data = 0xDEADBEEF)
Read 2 bytes @ address 0x20000968 (Data = 0xBEEF)
Reading 52 bytes @ address 0x44450000
Read 4 bytes @ address 0x200009AE (Data = 0xBEEFDEAD)
Read 2 bytes @ address 0x200009AE (Data = 0xDEAD)
Read 4 bytes @ address 0x200009AE (Data = 0xBEEFDEAD)
Read 2 bytes @ address 0x200009AE (Data = 0xDEAD)

 
Also, when trying to launch a debug session from within MCUXpressoIDE, I can see a similar behavior. 


I'm looking forward for any help available.

 

Best regards.

 

 

0 件の賞賛
返信
1 返信

1,226件の閲覧回数
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @dogo 

As the i.MX RT1180 is still in preproduction, I'm afraid we do not have public information available for this device. I highly advice you contact your NXP representative that provided you with this i.MX RT device for more information about the debugging issues with VSCode.

BR,
Edwin.

0 件の賞賛
返信