-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Description
I am using the example available from https://github.com/Arm-Examples/Hello_LPCXpresso55S69. I have added a global variable to the hello.c file. On my board, I am using the J-Link Lite FW from Segger. I have set the debugger to "JLink Server" in the Manage Solutions dialog. Ufortunately, debug does not work with this set up. I get the following when connecting to the target:
SEGGER J-Link GDB Server V8.80 Command Line Version
JLinkARM.dll V8.80 (DLL compiled Oct 22 2025 12:01:03)
Command line: -device LPC55S69_m33_0 -endian little -if SWD -speed 4000 -noir -vd -nogui -localhostonly -port 3333
-----GDB Server start settings-----
GDBInit file: none
GDB Server Listening port: 3333
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: off
Target connection timeout: 0 ms
------J-Link related settings------
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
------Target related settings------
Target device: LPC55S69_m33_0
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 LPCXpresso V2 compiled Aug 25 2023 12:01:15
Hardware: V1.00
S/N: 723537275
Checking target voltage...
Target voltage: 3.30 V
Listening on TCP/IP port 3333
Connecting to target...
Halting core...
Core security extensions: Implemented
Connected to target
Waiting for GDB connection...GNU gdb (Arm GNU Toolchain 14.3.Rel1 (Build arm-14.174)) 15.2.90.20241229-git
Copyright (C) 2024 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=aarch64-apple-darwin20.6.0 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.linaro.org/>.
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".
GNU gdb (Arm GNU Toolchain 14.3.Rel1 (Build arm-14.174)) 15.2.90.20241229-git
Copyright (C) 2024 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=aarch64-apple-darwin20.6.0 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.linaro.org/>.
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".
warning: Loadable section "RW_m_data" outside of ELF segments
in /Users/chrsei01/02_Git/Arm-Examples/Hello_LPCXpresso55S69/out/hello/LPCXpresso55S69/Debug/hello.axf
warning: Loadable section "RW_m_data" outside of ELF segments
in /Users/chrsei01/02_Git/Arm-Examples/Hello_LPCXpresso55S69/out/hello/LPCXpresso55S69/Debug/hello.axf
Connected to 0000:0000:0000:0000:0000:0000:0000:0001
GDB client (conn. 9) requested target.xml from GDB Server
Reading common registers:
Read register 'r0' (4 bytes) from hardware: 0x00010F50
Read register 'r1' (4 bytes) from hardware: 0x00010F50
Read register 'r2' (4 bytes) from hardware: 0x00010F50
Read register 'r3' (4 bytes) from hardware: 0x00010F50
Read register 'r4' (4 bytes) from hardware: 0x00011134
Read register 'r5' (4 bytes) from hardware: 0x00011134
Read register 'r6' (4 bytes) from hardware: 0x00010214
Read register 'r7' (4 bytes) from hardware: 0x00010214
Read register 'r8' (4 bytes) from hardware: 0x00010214
Read register 'r9' (4 bytes) from hardware: 0x00010214
Read register 'r10' (4 bytes) from hardware: 0x00010214
Read register 'r11' (4 bytes) from hardware: 0x00010214
Read register 'r12' (4 bytes) from hardware: 0x00010F50
Read register 'sp' (4 bytes) from hardware: 0x20032FE0
Read register 'lr' (4 bytes) from hardware: 0x00010F50
Read register 'pc' (4 bytes) from hardware: 0x00010F54
Read register 'xpsr' (4 bytes) from hardware: 0x01010000
Read 4 bytes @ address 0x00010F54 (Data = 0xF64FE7FE)
Read 2 bytes @ address 0x00010F54 (Data = 0xE7FE)
0x00010f54 in ?? ()
connected to remote target localhost:3333
set mem inaccessible-by-default off
set stack-cache off
set remote interrupt-on-connect off
target remote localhost:3333
Remote debugging using localhost:3333
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: 0x00010F50
Read register 'r1' (4 bytes) from hardware: 0x00010F50
Read register 'r2' (4 bytes) from hardware: 0x00010F50
Read register 'r3' (4 bytes) from hardware: 0x00010F50
Read register 'r4' (4 bytes) from hardware: 0x00011134
Read register 'r5' (4 bytes) from hardware: 0x00011134
Read register 'r6' (4 bytes) from hardware: 0x00010214
Read register 'r7' (4 bytes) from hardware: 0x00010214
Read register 'r8' (4 bytes) from hardware: 0x00010214
Read register 'r9' (4 bytes) from hardware: 0x00010214
Read register 'r10' (4 bytes) from hardware: 0x00010214
Read register 'r11' (4 bytes) from hardware: 0x00010214
Read register 'r12' (4 bytes) from hardware: 0x00010F50
Read register 'sp' (4 bytes) from hardware: 0x20032FE0
Read register 'lr' (4 bytes) from hardware: 0x00010F50
Read register 'pc' (4 bytes) from hardware: 0x00010F54
Read register 'xpsr' (4 bytes) from hardware: 0x01010000
Read 4 bytes @ address 0x00010F54 (Data = 0xF64FE7FE)
Read 2 bytes @ address 0x00010F54 (Data = 0xE7FE)
0x00010f54 in ?? ()
connected auxiliary GDB to target
monitor reset
Received monitor command: reset
Resetting target
Resetting target
tbreak main
Read 2 bytes @ address 0x00002F80 (Data = 0x9806)
Temporary breakpoint 1 at 0x2f80: file /Users/chrsei01/02_Git/Arm-Examples/Hello_LPCXpresso55S69/main.c, line 30.
Reading 8 bytes @ address 0xE0001000
In the Debug Console view you can interact directly with GDB.
To display the value of an expression, type that expression which can reference
variables that are in scope. For example type '2 + 3' or the name of a variable.
Arbitrary commands can be sent to GDB by prefixing the input with a '>',
for example type '>show version' or '>help'.
Setting breakpoint @ address 0x00002F80, Kind = 2, Type = THUMB, BPHandle = 0x0001
Starting target CPU...
WARNING: Failed to read memory @ address 0x2000021C
Reading 8 bytes @ address 0xE0001004
WARNING: Failed to read memory @ address 0x2000021C
WARNING: Failed to read memory @ address 0x2000021C
Reading 8 bytes @ address 0xE0001004
WARNING: Failed to read memory @ address 0x2000021C
WARNING: Failed to read memory @ address 0x2000021C
Reading 8 bytes @ address 0xE0001004
WARNING: Failed to read memory @ address 0x2000021C
WARNING: Failed to read memory @ address 0x2000021C
Reading 8 bytes @ address 0xE0001004
WARNING: Failed to read memory @ address 0x2000021C
WARNING: Failed to read memory @ address 0x2000021C
Reading 8 bytes @ address 0xE0001004
Debugger requested to halt target...
...Target halted (PC = 0x00010F54)
Reading common registers:
Read register 'r0' (4 bytes) from hardware: 0x00010F50
Read register 'r1' (4 bytes) from hardware: 0x00010F50
Read register 'r2' (4 bytes) from hardware: 0x00010F50
Read register 'r3' (4 bytes) from hardware: 0x00010F50
Read register 'r4' (4 bytes) from hardware: 0x00011134
Read register 'r5' (4 bytes) from hardware: 0x00011134
Read register 'r6' (4 bytes) from hardware: 0x00010214
Read register 'r7' (4 bytes) from hardware: 0x00010214
Read register 'r8' (4 bytes) from hardware: 0x00010214
Read register 'r9' (4 bytes) from hardware: 0x00010214
Read register 'r10' (4 bytes) from hardware: 0x00010214
Read register 'r11' (4 bytes) from hardware: 0x00010214
Read register 'r12' (4 bytes) from hardware: 0x00010F50
Read register 'sp' (4 bytes) from hardware: 0x20032FE0
Read register 'lr' (4 bytes) from hardware: 0x00010F50
Read register 'pc' (4 bytes) from hardware: 0x00010F54
Read register 'xpsr' (4 bytes) from hardware: 0x01010000
Program received signal SIGTRAP, Trace/breakpoint trap.
Removing breakpoint @ address 0x00002F80, Size = 2
Read 4 bytes @ address 0x00010F54 (Data = 0xF64FE7FE)
Read 2 bytes @ address 0x00010F54 (Data = 0xE7FE)
0x00010f54 in ?? ()
Reading 8 bytes @ address 0xE0001004
Reading register 'msp' = 0x20032FE0
Reading register 'psp' = 0xFFFFFFFC
Reading register 'msp_s' = 0x30007F18
Reading register 'msp_ns' = 0x20032FE0
Reading register 'psp_s' = 0x00000000
Reading register 'psp_ns' = 0xFFFFFFFC
Read 4 bytes @ address 0x00010F50 (Data = 0xE7FFE7FF)
Read 4 bytes @ address 0x00010F50 (Data = 0xE7FFE7FF)Steps to Reproduce
- Check out repo (see above).
- Set J-Link debug adaoter
- Start debugging.
Expected Behavior
Should run up until main.
Additional Information
I have changed the device to LPC55S69_m33_0 in the launch.json file, as otheriwse the CMSIS device name is not recognized (debug does not even start).
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Backlog