Hi:
I'd like to debug a remote microcontroller with SlickEdit. I am currently able to do this debugging with eclipse and pure gdb, but not with SlickEdit. Looking for tips on how to do this.
I have a remote windows machine connected to a JTAG probe via USB, and the JTAG probe is connected to my target. On this windows machine, I run "openocd" which provides a gdb server.
Then on my host machine (linux), I am able to use pure gdb or eclipse to connect to this gdb server.
With gdb end eclipse, it connects to my remote server by first running the gdb command: "target extended-remote xx.yy.zz.aa:port"
After this I need to send a few "monitor" commands via gdb to get my target ready (reset related).
After the target is ready, then the executable is ready to be loaded via the gdb "load" command.
After the load is done, I would like to have a few more custom gdb commands executed to copy ram address 0 to the stack pointer, and set the vector table. After this I would like to start executing. Now this "after load" stuff can be optional, but it is nice to have. Eclipse does have a place in the debug configuration to insert these "after load" commands.
I tried to accomplish this by doing the following with SlickEdit:
1) Tools->Options->Debugging->Configurations
Here I added my special gdb that is able to connect to my target and made it the default debugging configuration.
For "Arguments" I gave it "-x gdbinit_file", where my "gdbinit_file" contains:
set verbose on
target extended-remote xxx.yyy.zzz.aaa:3336
monitor reset init
monitor halt
2) I was hoping that SlickEdit would run this gdb which then does my gdbinit with the above, and then afterwards SlickEdit would run the "load" command to load the target, and then start executing it. As I said it would be nice if I could insert some gdb commands after the "load" before anything is done. Eclipse debug configs do give the opportunity to specify some gdb commands after the load.
So when I attempt to debug my build config to use gdb (Debug->Start), it didn't work and I got an error message: "Error continuing: GDB could not start application. Don't know how to run. Try "help target" ".
In the build tab it had:
vsdebugio -port 8001 -prog my_program.axf=cmd-param-changed,param="verbose",value="on"
and in the Output tab it had:
Reading symbols from my_program.axf...
Reading in symbols for ../../my_program/src/main.c...
done.
I've seen some old messages on the forum about using openocd with slickedit, but I had trouble understanding them. There was mention of a "gdb proxy" but I don't know what this means.
SlickEdit offers options to "attach" to a remote target, but in this case I want to actually load my remote target from SE and start debugging it. My remote target is not running linux or anything you can ssh to, so not sure it applies.