cancel
Showing results for 
Search instead for 
Did you mean: 

Remote GDB with J-Link and STM32 Cube IDE

lprzenioslo
Associate II

Hello there,

I am having issue debugging/ programming via STM32 Cube IDE with the J-Link probe (USB) connected to a remote host (TCP connection).


_legacyfs_online_stmicro_images_0693W00000bizCsQAI.png 

Whenever I am trying to debug/ program, the STM32 Cube IDE hangs for a while and eventually shows an error:


_legacyfs_online_stmicro_images_0693W00000bizCEQAY.pngI am not experiencing this problem when connecting remotely with JLink CLI directly.

SEGGER J-Link Commander V7.82b (Compiled Nov  9 2022 17:03:08)
DLL version V7.82b, compiled Nov  9 2022 17:01:33
 
Connecting to J-Link via USB...O.K.
Firmware: J-Link ARM V8 compiled Nov 28 2014 13:44:46
Hardware version: V8.00
J-Link uptime (since boot): N/A (Not supported by this model)
S/N: 2680xxxxx
License(s): FlashBP, GDB
OEM: SEGGER-EDU
VTref=3.332V
 
 
Type "connect" to establish a target connection, '?' for help
J-Link>connect
Please specify device / core. <Default>: STM32L073VZ
Type '?' for selection dialog
Device>
Please specify target interface:
  J) JTAG (Default)
  S) SWD
  T) cJTAG
TIF>s
Specify target interface speed [kHz]. <Default>: 4000 kHz
Speed>1000
Device "STM32L073VZ" selected.
 
 
Connecting to target via SWD
InitTarget() start
InitTarget() end
Found SW-DP with ID 0x0BC11477
DPv0 detected
CoreSight SoC-400 or earlier
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: 0x04770031)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xF0000000
CPUID register: 0x410CC601. Implementer code: 0x41 (ARM)
Found Cortex-M0 r0p1, Little endian.
FPUnit: 4 code (BP) slots and 0 literal slots
CoreSight components:
ROMTbl[0] @ F0000000
[0][0]: E00FF000 CID B105100D PID 000BB4C0 ROM Table
ROMTbl[1] @ E00FF000
[1][0]: E000E000 CID B105E00D PID 000BB008 SCS
[1][1]: E0001000 CID B105E00D PID 000BB00A DWT
[1][2]: E0002000 CID B105E00D PID 000BB00B FPB
Cortex-M0 identified.
J-Link>

During the connection attempt via STM32 IDE I can see in the GDB server CLI that a client is connected.

Waiting for client connections...
Conn. 8: Client connected.

My debug config is:


_legacyfs_online_stmicro_images_0693W00000bizCOQAY.pngDid anyone else experience a similar issue? I would appreciate all help!

0 REPLIES 0