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!
I use it by way of VSCODE well GDB, The tool in vscode is cortex-debug
no setup of a launch.json?
I wonder what do you mean by remote device on openocd
I have one let me share
I have this one https://github.com/Gaiaocho/uCDSP/blob/main/.vscode/launch.json
we can ignore that
it basically mean it is in my area
like off the host computer
like, not in my home network
quite literally remote..
Oh wow do you mind describing what you want to achieve, we have some efforts along those lines perhaps we can collab
So you want to code on your computer and deploy on a device in a remote lab
and possibly debug as well
it’s in my office
while i am at home
Awesome and what’s the setup in your office?
I mean there is 2 hosts yes?
Home and office?
VPX style server
no, only 1 host
i run openocd on the devboard
it exposes a port to debug
i portforward it to my home network
Oh openocd on the devboard, you have an application processor or an MPU?
application processor
imx8
Ah this should just be straight remote dev
and zynq
yep
no prob as of that part
Oh nice I think I remember you described the SDR
Ok what part is problematic
but wanted stable setup for my debug process
Do you want to run vscode on ssh?
do you mean code server?
Yeah is that what it’s called?
i think so
run vscode server on the processor
so we can remote ssh into it to access vscode style IDE on it
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
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
So basically you need to come up with a `launch.json`
my debug adapter is dmem
Ok where is yours breaking, I bet you have one and it’s not doing what you want
oh yes
give me few mins
and i shall share
@32bitwidesaviour bud are you using GDB at work? Can you help us here? @undefined2001 you want to debug this for us?
Yes I do.
https://tenor.com/ESDL.gif
was following this tut
https://www.justinmklam.com/posts/2017/10/vscode-debugger-setup/
However mine is a simple .gdbinit file not integrated into any code editor.
Well now if we all work together we can shoehorn this into vscode
i use enhanced GDB within terminal too
I can after returning home
@melta101 ok can you share your current one? As well as what is not working.
You can share just a gist, doesnt have to be the whole project
this is may take some time..
i am not in front my laptop currently
give me about an hour or so
Any chance you got the launch.json?
Or did it work?
Hey Zaack
Sorry for the delay
Just checked it
and now, it is working…
btw
i forgot to share mine
0launch.json
Awesome and since it works, I’ll see about organizing a place where we can share all these.
When I have a space maybe you can write us a small description for it?
i didn’t get you
I’ll explain in a bit
that’s fine, take your time. Gives all the others a chance to catch up with the conversation
I did
🔥🔥
now a days I am trying gdb cli other than cortex debug
I’m enjoying it with pain
CONTRIBUTE TO THIS THREAD