Become a leader in the IoT community!

New DevHeads get a 320-point leaderboard boost when joining the DevHeads IoT Integration Community. In addition to learning and advising, active community leaders are rewarded with community recognition and free tech stuff. Start your Legendary Collaboration now!

Step 1 of 5

CREATE YOUR PROFILE *Required

OR
Step 2 of 5

WHAT BRINGS YOU TO DEVHEADS? *Choose 1 or more

Collaboration & Work 🤝
Learn & Grow 📚
Contribute Experience & Expertise 🔧
Step 3 of 5

WHAT'S YOUR INTEREST OR EXPERTISE? *Choose 1 or more

Hardware & Design 💡
Embedded Software 💻
Edge Networking
Step 4 of 5

Personalize your profile

Step 5 of 5

Read & agree to our COMMUNITY RULES

  1. We want this server to be a welcoming space! Treat everyone with respect. Absolutely no harassment, witch hunting, sexism, racism, or hate speech will be tolerated.
  2. If you see something against the rules or something that makes you feel unsafe, let staff know by messaging @admin in the "support-tickets" tab in the Live DevChat menu.
  3. No age-restricted, obscene or NSFW content. This includes text, images, or links featuring nudity, sex, hard violence, or other graphically disturbing content.
  4. No spam. This includes DMing fellow members.
  5. You must be over the age of 18 years old to participate in our community.
  6. Our community uses Answer Overflow to index content on the web. By posting in this channel your messages will be indexed on the worldwide web to help others find answers.
  7. You agree to our Terms of Service (https://www.devheads.io/terms-of-service/) and Privacy Policy (https://www.devheads.io/privacy-policy)
By clicking "Finish", you have read and agreed to the our Terms of Service and Privacy Policy.

What IDE setup do you use for remote debugging with GDB/KGDB and OpenOCD?

Hello @MCU, MPU & Firmware !
If you use GDB or KGDB,
what is your IDE setup while debugging
remote device with a openocd running on it?

  1. ZacckOsiemo#0000

    I use it by way of VSCODE well GDB, The tool in vscode is cortex-debug

  2. melta101#0000

    no setup of a launch.json?

  3. ZacckOsiemo#0000

    I wonder what do you mean by remote device on openocd

  4. ZacckOsiemo#0000

    I have one let me share

  5. ZacckOsiemo#0000
  6. melta101#0000

    we can ignore that
    it basically mean it is in my area

  7. ZacckOsiemo#0000

    like off the host computer

  8. melta101#0000

    like, not in my home network

  9. melta101#0000

    quite literally remote..

  10. ZacckOsiemo#0000

    Oh wow do you mind describing what you want to achieve, we have some efforts along those lines perhaps we can collab

  11. ZacckOsiemo#0000

    So you want to code on your computer and deploy on a device in a remote lab

  12. ZacckOsiemo#0000

    and possibly debug as well

  13. melta101#0000

    it’s in my office

  14. melta101#0000

    while i am at home

  15. ZacckOsiemo#0000

    Awesome and what’s the setup in your office?

  16. ZacckOsiemo#0000

    I mean there is 2 hosts yes?

  17. ZacckOsiemo#0000

    Home and office?

  18. melta101#0000

    VPX style server
    no, only 1 host

  19. melta101#0000

    i run openocd on the devboard

  20. melta101#0000

    it exposes a port to debug

  21. melta101#0000

    i portforward it to my home network

  22. ZacckOsiemo#0000

    Oh openocd on the devboard, you have an application processor or an MPU?

  23. melta101#0000

    application processor

  24. melta101#0000

    imx8

  25. ZacckOsiemo#0000

    Ah this should just be straight remote dev

  26. melta101#0000

    and zynq

  27. melta101#0000

    yep
    no prob as of that part

  28. ZacckOsiemo#0000

    Oh nice I think I remember you described the SDR

  29. ZacckOsiemo#0000

    Ok what part is problematic

  30. melta101#0000

    but wanted stable setup for my debug process

  31. ZacckOsiemo#0000

    Do you want to run vscode on ssh?

  32. melta101#0000

    do you mean code server?

  33. ZacckOsiemo#0000

    Yeah is that what it’s called?

  34. melta101#0000

    i think so
    run vscode server on the processor
    so we can remote ssh into it to access vscode style IDE on it

  35. ZacckOsiemo#0000

    Ok this is a bit exciting and I am jumping all over the place, how about you first tell us what you are trying to achieve and what parts are hard. I know some people here are keen to help as am I

  36. melta101#0000

    oh yea lol
    i feel the same
    The main part is

    i normally use GDB as standalone.
    I wanted to integrate GDB to vscode as i it somewhat new to me.
    Plus is should somewhat flexible(like plug and play)
    i should just add the json file and it should work as it is on another computer

  37. ZacckOsiemo#0000

    So basically you need to come up with a `launch.json`

  38. melta101#0000

    my debug adapter is dmem

  39. ZacckOsiemo#0000

    Ok where is yours breaking, I bet you have one and it’s not doing what you want

  40. melta101#0000

    oh yes
    give me few mins
    and i shall share

  41. ZacckOsiemo#0000

    @32bitwidesaviour bud are you using GDB at work? Can you help us here? @undefined2001 you want to debug this for us?

  42. 32bitSaviour#0000

    Yes I do.

  43. ZacckOsiemo#0000
  44. melta101#0000
  45. 32bitSaviour#0000

    However mine is a simple .gdbinit file not integrated into any code editor.

  46. ZacckOsiemo#0000

    Well now if we all work together we can shoehorn this into vscode

  47. melta101#0000

    i use enhanced GDB within terminal too

  48. undefined2001#0

    I can after returning home

  49. ZacckOsiemo#0000

    @melta101 ok can you share your current one? As well as what is not working.

  50. ZacckOsiemo#0000

    You can share just a gist, doesnt have to be the whole project

  51. melta101#0000

    this is may take some time..
    i am not in front my laptop currently

    give me about an hour or so

  52. ZacckOsiemo#0000

    Any chance you got the launch.json?

  53. ZacckOsiemo#0000

    Or did it work?

  54. melta101#0000

    Hey Zaack
    Sorry for the delay
    Just checked it
    and now, it is working…

  55. melta101#0000

    btw
    i forgot to share mine

  56. melta101#0000
  57. ZacckOsiemo#0000

    Awesome and since it works, I’ll see about organizing a place where we can share all these.

  58. ZacckOsiemo#0000

    When I have a space maybe you can write us a small description for it?

  59. melta101#0000

    i didn’t get you

  60. ZacckOsiemo#0000

    I’ll explain in a bit

  61. ZacckOsiemo#0000

    that’s fine, take your time. Gives all the others a chance to catch up with the conversation

  62. undefined2001#0

    I did

  63. undefined2001#0

    🔥🔥

  64. undefined2001#0

    now a days I am trying gdb cli other than cortex debug

  65. undefined2001#0

    I’m enjoying it with pain

CONTRIBUTE TO THIS THREAD

Leaderboard

RANKED BY XP

All time
  • 1.
    Avatar
    @Nayel115
    1620 XP
  • 2.
    Avatar
    @UcGee
    650 XP
  • 3.
    Avatar
    @melta101
    600 XP
  • 4.
    Avatar
    @lifegochi
    250 XP
  • 5.
    Avatar
    @Youuce
    180 XP
  • 6.
    Avatar
    @hemalchevli
    170 XP