InfiniTimeOrg / InfiniTimeOrg/InfiniTime
Devcontainer Debug fix for IP/host in Ubuntu
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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