Hello,

after loading the OpenSDA firmware
http://www.keil.com/appnotes/docs/apnt_232.asp
and setting up user access to the HID device
/etc/udev/rules.d/99-hid.rules:
# Allow access to OpenSDA
KERNEL=="hidraw*", ATTRS{idVendor}=="c251", ATTRS{idProduct}=="f002", 
MODE="0666"
and enabling cmsis-dap
./configure --enable-cmsis-dap
and recompiling, I can start OpenOcd on the frdm-kl25z board.

Trying to attach to the debugger however says:
Info : accepting 'gdb' connection on tcp/3333
Warn : Cannot communicate... target not halted.
Error: auto_probe failed
Error: Connect failed. Consider setting up a gdb-attach event for the target to 
prepare target for GDB connect, or use 'gdb_memory_map disable'.
Error: attempted 'gdb' connection rejected

After connecting to the device in telnet and giving the halt command, gdb
can connect, even after stopping gdb/openocd and restarting

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?

Bye
-- 
Uwe Bonnes                [email protected]

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------

------------------------------------------------------------------------------
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

Reply via email to