jlink-firmware on board version: J-Link LPCXpresso V2.
J-Link version: V6.44d
arm-none-eabi-gdb.exe version: 7-2018-q2
host os: windows 7
We useJ-Link GDB server and GDB to load applications to LPC54S018, sometimes gdbserver cannot startup due to cannot halt CPU.
In this situation, open jlink commander, and it could connect to board successful, but run command "halt" it also failed to halt CPU.
We have to replugin usb to fix this problem.
Need to note, if we use IAR + J-Link, it works very stable. However use J-Link in standalone will occure issue and it is very often.
Attachments is an image is built by IAR-8.32, when load twice jlink will report halt cpu failed.
Display All
J-Link version: V6.44d
arm-none-eabi-gdb.exe version: 7-2018-q2
host os: windows 7
We useJ-Link GDB server and GDB to load applications to LPC54S018, sometimes gdbserver cannot startup due to cannot halt CPU.
In this situation, open jlink commander, and it could connect to board successful, but run command "halt" it also failed to halt CPU.
We have to replugin usb to fix this problem.
Need to note, if we use IAR + J-Link, it works very stable. However use J-Link in standalone will occure issue and it is very often.
Attachments is an image is built by IAR-8.32, when load twice jlink will report halt cpu failed.
Source Code
- SEGGER J-Link GDB Server V6.44d Command Line Version
- JLinkARM.dll V6.44d (DLL compiled Mar 27 2019 17:08:23)
- Command line: -select usb=729342514 -if SWD -singlerun -strict -device LPC54S018 -port 4000 -speed auto
- -----GDB Server start settings-----
- GDBInit file: none
- GDB Server Listening port: 4000
- SWO raw output listening port: 2332
- Terminal I/O port: 2333
- Accept remote connection: localhost only
- 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: none
- J-Link settings file: none
- ------Target related settings------
- Target device: LPC54S018
- Target interface: SWD
- Target interface speed: auto
- Target endian: little
- Connecting to J-Link...
- J-Link is connected.
- Firmware: J-Link LPCXpresso V2 compiled Sep 23 2016 12:14:15
- Hardware: V1.00
- S/N: 729342514
- Checking target voltage...
- Target voltage: 3.30 V
- Listening on TCP/IP port 4000
- Connecting to target...WARNING: CPU could not be halted
- Halting target device failed. Trying again with reset
- WARNING: CPU could not be halted
- Failed to halt target device on connect
- ERROR: Could not connect to target.
- Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...
- Shutting down...
- Could not connect to target.