Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devcontainer Debug fix for IP/host in Ubuntu #569

Open
hubmartin opened this issue Aug 10, 2021 · 0 comments
Open

Devcontainer Debug fix for IP/host in Ubuntu #569

hubmartin opened this issue Aug 10, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@hubmartin
Copy link
Contributor

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

@Avamander Avamander added enhancement Enhancement to an existing app/feature documentation Improvements or additions to documentation and removed enhancement Enhancement to an existing app/feature labels Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants