dist: added a unified OpenOCD script#2408
Conversation
dist/tools/openocd/openocd.sh
Outdated
There was a problem hiding this comment.
I don't like the enforcing of -tui.
There was a problem hiding this comment.
I agree with @authmillenon , I have never gotten TUI mode to work properly..
There was a problem hiding this comment.
where is it enforced? I actually put this in on your behalf - so default behavior is without tui, just when you define TUI=1 or similar the -tui option is enabled...
There was a problem hiding this comment.
but the hello hello should not be here...
dist/tools/openocd/openocd.sh
Outdated
There was a problem hiding this comment.
I think you should let us specify a board-specific gdb.cfg, since there may be other parameters that should be passed to GDB, depending on the debugger and CPU.
This trivial initialization command can just as easily be specified on the command line without having to pass via temporary files:
$(DBG) -ex "tar ext :$(GDB_PORT)" $(ELFFILE)
There was a problem hiding this comment.
yap, @authmillenon just pointed the -ex option out, I wasn't aware of it...
Concerning the gdb.conf file, I am against it for keeping the board ports slim. So far none of our boards has any additional gdb options it uses. As stated above: if you want to do something out of the ordinary, just use make debug-server and connect to it with your custom-configured frontend.
|
Tested samr21-xpro and nucleo-l1 as good. For iot-lab_M3 and fox please consider haukepetersen#5 |
|
@thomaseichinger: your PR is merged into this one. |
|
simplified the debug action by omitting the creation of an external file (using the |
|
ACK when squashed and merge at will. |
8a94882 to
5155dc7
Compare
|
rebased, waiting for Travis |
|
and go. |
dist: added a unified OpenOCD script
|
Somehow this seems to break flashing on the SAMR21. It's hanging after "Verified OK" (at least at my and @LudwigOrtmann's computer). Reverting haukepetersen@de3200a makes flashing work again. |
|
Adding the |
|
adding an |
|
Whats the exit value? Could you paste the output with adding |
|
Actually, I think do_flash should have |
|
Let's move the discussion to #2470. |
Finally found some time to look into a unified script for using OpenOCD (as talked about in #2375).
I think this makes porting again a little easier :-)
tested for: