Hi Mike, On 3/18/13, shed <m...@theshedworks.org.uk> wrote: > CM0+ also has a standard AHB-AP which is sufficient for most operations. > The MDM-AP looks like it would be really useful to debug low-power > issues and > hopefully support could be added at some later date. But right now I'm > concentrating on getting basic cmsis-dap support into the mainline code. > > I can read/write memory and regs, and halt/resume the core which should be > enough for a flash programmer if someone wants to implement one..... > > I'm using a Feedom KL25 with the Keil CMSIS-DAP firmware for the initial > dev work > although I could probably do with some alternative hardware for > verification and > testing JTAG mode. >
I think it is working here: # openocd -c "interface cmsis-dap" -f tcl/target/kl25.cfg Open On-Chip Debugger 0.7.0-dev-g1d8f0c1 (2013-03-18-19:24) 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-ADI: cmsis_dap_select Info : CMSIS-DAP: cmsis_dap_swd_init Info : kernel driver active Info : kernel driver now detached. Info : CMSIS-DAP: SWD Supported Info : CMSIS-DAP: Interface Initialised (SWD) cortex_m3 reset_config sysresetreq adapter speed: 50 kHz Info : CMSIS-DAP: cmsis_dap_init Info : CMSIS-DAP: FW Version = 1.0 Info : CMSIS-DAP: Packet Size = 64 Info : CMSIS-DAP: Packet Count = 32 Info : SWCLK/TCK = 0 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1 Info : CMSIS-DAP: cmsis_dap_reset_link Info : DAP_SWJ Sequence (reset: 50+ '1' followed by 0) Info : DAP Read IDCODE Info : CMSIS-DAP: Interface ready Info : clock speed 50 kHz Info : CMSIS-ADI: cmsis_dap_init Info : CMSIS-ADI: cmsis_dap_queue_idcode_read Info : CMSIS-ADI: cmsis_dap_queue_dp_read 00 Info : 0bc11477 Info : IDCODE 0x0bc11477 Info : CMSIS-ADI: cmsis_dap_queue_ap_abort START... Info : CMSIS-ADI: cmsis_dap_queue_dp_read 04 Info : 00000040 Info : CMSIS-ADI: cmsis_dap_queue_dp_write 04 00000020 Info : CMSIS-ADI: cmsis_dap_queue_dp_read 04 Info : 00000040 Info : CMSIS-ADI: cmsis_dap_queue_dp_write 04 50000000 Info : CMSIS-ADI: cmsis_dap_queue_dp_read 04 Info : f0000040 Info : CMSIS-ADI: cmsis_dap_run Info : CMSIS-ADI: cmsis_dap_queue_dp_read 04 Info : f0000040 Info : CMSIS-ADI: cmsis_dap_queue_dp_write 08 00000000 Info : CMSIS-ADI: cmsis_dap_queue_ap_read 00 Info : CMSIS-ADI: cmsis_dap_queue_dp_write 08 00000000 Info : 03000040 Info : CMSIS-ADI: cmsis_dap_queue_ap_read 04 Info : ddfdffff Info : CMSIS-ADI: cmsis_dap_queue_dp_write 08 000000f0 Info : CMSIS-ADI: cmsis_dap_queue_ap_read f4 Info : CMSIS-ADI: cmsis_dap_queue_dp_write 08 000000f0 Info : 00000000 Info : CMSIS-ADI: cmsis_dap_queue_ap_read f8 Info : f0002003 Info : CMSIS-ADI: cmsis_dap_queue_ap_read fc Info : 04770031 Info : CMSIS-ADI: cmsis_dap_queue_dp_write 08 00000000 Info : CMSIS-ADI: cmsis_dap_queue_ap_write 00 a2000012 Info : CMSIS-ADI: cmsis_dap_queue_dp_write 08 00000000 Info : CMSIS-ADI: cmsis_dap_queue_ap_write 04 e000ed00 Info : CMSIS-ADI: cmsis_dap_queue_ap_read_block 01 Info : CMSIS-ADI: cmsis_dap_run Info : CMSIS-ADI: cmsis_dap_queue_ap_write 04 e0002000 Info : CMSIS-ADI: cmsis_dap_queue_ap_read_block 01 Info : CMSIS-ADI: cmsis_dap_run Info : CMSIS-ADI: cmsis_dap_queue_ap_write 04 e0001000 Info : CMSIS-ADI: cmsis_dap_queue_ap_read_block 01 Info : CMSIS-ADI: cmsis_dap_run Info : kl25.cpu: hardware has 2 breakpoints, 2 watchpoints END... Thank you very much, this implementation you developed is very useful for people using KL25Z. Do you need help with more tests? I want to work with you to add it to OpenOCD mainline. Best Regards, Alan ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel