This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SEGGER IDE custom GDB settings

Hi,

I want to program a nrf52832 module and a J-link debugger is on it's way. Until then I wanted to use my Black Magic Probe to flash and debug the application. I can successfully compile code on Windows 10 in Segger Embedded Studio (V5.34) and I can upload my binary with gdb:

Fullscreen
1
2
3
4
5
6
target extended-remote COM7
monitor swdp_scan
attach 1
load binary.hex
mon hard_srst
detach
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I wanted to automate the task and also doing debugging in the IDE, but I can only set the following:

My question is: Can I somehow connect to my remote gdb server (COM7)?

Edit: after posting this, I found out that I can run blackmagic app on my PC and now I can connect to my module through TCP from CMD:

Fullscreen
1
gdb -ex "target extended-remote 192.168.1.164:2000" -ex "monitor connect_srst enable" -ex "monitor swdp_scan" -ex "att 1"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

which returns:

Fullscreen
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Now back to the Segger IDE:

No matter what I do, I get the following log:

Fullscreen
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

and on my gdb server:

Fullscreen
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

And I'm stuck here, I don't know how to proceed.

Note: A few months ago I was able to flash and debug my application via gdb (tcp connection) in SES. My module was connected to a Raspberry Pi and I used OpenOCD.

Thank you in advance!