InfiniTimeOrg / InfiniTimeOrg/InfiniTime

Devcontainer Debug fix for IP/host in Ubuntu

Open
#569 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation
Dominant language
C
Stars
3.4k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Hi,
in devcontainer in Ubuntu and Docker combo I had to change this to get debugging running:

I launch.json i changed IP address to my own
"gdbTarget": "192.168.1.40:3333",

And you need to add bindto command so openocd will listen not only on localhost

openocd -f interface/stlink.cfg -f target/nrf52.cfg -c 'bindto 0.0.0.0'
(I would add this example to readme of devcontainer, because stlink/nrf52 will be the most used combination I guess)

And then I needed to add firewall rule

sudo ufw allow 3333

Devcontainer is working perfectly. Thanks for this improvment to everyone who helped with it.

FIY @geekbozu

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the devcontainer README and the launch.json configuration mentioned in the issue. Document the Ubuntu/Docker debugging settings for the OpenOCD bind address, GDB target, and firewall rule; done means a user can follow the example to run debugging with the ST-Link/nRF52 combination.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, ubuntu
Domain
devops, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.