Hey Uwe,
On Thu, Mar 10, 2016 at 12:31:16PM +0100, Uwe Bonnes wrote:
> after loading the OpenSDA firmware
> http://www.keil.com/appnotes/docs/apnt_232.asp
I think mbed's cmsis-dap implementation is a bit better, it
additionally provides serial port and a mass storage device for
reflashing.
> Adding a halt command in the gdb-attach event like
> $_TARGETNAME configure -event gdb-attach {
>
> echo "Halting target"
> halt
> }
>
> helps, but this will alway halt the device on gdb connect. Is this the right
> way
> to go?
It depends on what you find acceptable in your specific case. If you
add this command to your config file you are aware of it and so
the halting won't be unexpected. Alternatively, you can start openocd
with additional ``-c "init; halt"'' command line switch when you're
ready to halt the target. Or you can halt it manually via telnet
before attaching GDB. Or you can even disable gdb memory map and then
you'll be able to attach at any time but you won't be able to reflash
from gdb with "load" command. Plenty of possibilities :)
--
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:[email protected]
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel