On 19/09/13 16:33, Spencer Oliver wrote:
> That cmd is not correct, try:
> reset_config srst_only srst_nogate
> the cmd you tried is for setting the core reset, it is confusing i know.
>
> Just done a quick test and it seems to be working here.
Hmmm ... something funny going on. Maybe I'm a patch set short of a dev 
version? I really don't like git very much.

Here's the full command and o/p:
chris:~$ openocd -c "interface cmsis-dap" -f target/k10.cfg -c 
"adapter_khz 40000" -c "cortex_m reset_config srst_only srst_nogate"
Open On-Chip Debugger 0.8.0-dev-00186-g7bfb168-dirty (2013-09-16-13:37)
Licensed under GNU GPL v2
For bug reports, read
     http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'cmsis-dap'
Info : CMSIS-DAP: SWD  Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : add flash_bank kinetis k10.flash
adapter speed: 40000 kHz
cortex_m reset_config vectreset
Info : CMSIS-DAP: FW Version = 1.0
Info : SWCLK/TCK = 0 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : DAP_SWJ Sequence (reset: 50+ '1' followed by 0)
in procedure 'init'

I ran this to check that the cortex_m reset_config vectreset report was 
from my command line argument and it was:
chris:~$ openocd -c "interface cmsis-dap" -f target/k10.cfg -c 
"adapter_khz 40000"
Open On-Chip Debugger 0.8.0-dev-00186-g7bfb168-dirty (2013-09-16-13:37)
Licensed under GNU GPL v2
For bug reports, read
     http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'cmsis-dap'
Info : CMSIS-DAP: SWD  Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : add flash_bank kinetis k10.flash
adapter speed: 40000 kHz
Info : CMSIS-DAP: FW Version = 1.0
Info : SWCLK/TCK = 0 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : DAP_SWJ Sequence (reset: 50+ '1' followed by 0)
in procedure 'init'

Regards
Chris

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to