Ah your session should look something like this:
% ./openocd -f stm32swd.cfg
Open On-Chip Debugger 0.7.0-dev-gcf35ed5-dirty (2012-11-16-02:03)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'swd'
Info : Interface 'ft2232_swd' defines its own 'oocd_feature_arm_dap' features.
Info : Interface signal - 'RnW' added.
Info : Interface signal - 'LED' added.
Info : Interface signal - 'SRST' added.
Info : Interface signal - 'SRSTin' added.
Info : Interface signal - 'CLK' added.
Info : Interface signal - 'MOSI' added.
Info : Interface signal - 'MISO' added.
Info : Interface signal - 'nSWDsel' added.
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
Info : KT-LINK SWD-Mode initialization complete...
Info : max TCK change to: 30000 kHz
Info : clock speed 1000 kHz
LIBSWD_N: Using libswd master-GIT-devel (http://libswd.sf.net)
LIBSWD_N: (c) Tomasz Boleslaw CEDRO (http://www.tomek.cedro.info)
Info : New SWD context initialized at 0x0x801423340
LIBSWD_I: Executing libswd_dap_activate(libswdctx=@0x801423340,
operation=LIBSWD_OPERATION_EXECUTE)
LIBSWD_I: Executing libswd_dap_reset(libswdctx=@0x801423340,
operation=LIBSWD_OPERATION_EXECUTE)
LIBSWD_I: Executing libswd_dp_read_idcode(libswdctx=@0x801423340,
operation=LIBSWD_OPERATION_EXECUTE)
LIBSWD_I: libswd_dp_read_idcode(libswdctx=@0x801423340,
operation=LIBSWD_OPERATION_EXECUTE,
**idcode=0x1BA01477/00011011101000000001010001110111).
Info : SWD transport initialization complete. Found IDCODE=0x1BA01477.
LIBSWD_I: libswd_dp_read(libswdctx=@0x801423340,
operation=LIBSWD_OPERATION_EXECUTE, addr=0x4,
**data=0x0/00000000000000000000000000000000).
LIBSWD_I: libswd_dp_write(libswdctx=@0x801423340,
operation=LIBSWD_OPERATION_EXECUTE, addr=0x4,
*data=0x20/00000000000000000000000000100000).
LIBSWD_I: libswd_dp_read(libswdctx=@0x801423340,
operation=LIBSWD_OPERATION_EXECUTE, addr=0x4,
**data=0x0/00000000000000000000000000000000).
LIBSWD_I: libswd_dp_write(libswdctx=@0x801423340,
operation=LIBSWD_OPERATION_EXECUTE, addr=0x4,
*data=0x50000000/01010000000000000000000000000000).
LIBSWD_I: libswd_dp_read(libswdctx=@0x801423340,
operation=LIBSWD_OPERATION_EXECUTE, addr=0x4,
**data=0xF0000000/11110000000000000000000000000000).
LIBSWD_I: libswd_dp_read(libswdctx=@0x801423340,
operation=LIBSWD_OPERATION_EXECUTE, addr=0x4,
**data=0xF0000000/11110000000000000000000000000000).
LIBSWD_I: libswd_dp_write(libswdctx=@0x801423340,
operation=LIBSWD_OPERATION_EXECUTE, addr=0x4,
*data=0x50000001/01010000000000000000000000000001).
LIBSWD_I: libswd_dp_read(libswdctx=@0x801423340,
operation=LIBSWD_OPERATION_EXECUTE, addr=0x4,
**data=0xF0000001/11110000000000000000000000000001).
LIBSWD_I: libswd_ap_write(libswdctx=@0x801423340,
operation=LIBSWD_OPERATION_EXECUTE, addr=0x0,
*data=0xA2000012/10100010000000000000000000010010).
LIBSWD_I: libswd_ap_write(libswdctx=@0x801423340,
operation=LIBSWD_OPERATION_EXECUTE, addr=0x4,
*data=0xE000ED00/11100000000000001110110100000000).
Assertion failed: (jtag_trst == 0), function jtag_checks, file core.c, line 339.
Abort (core dumped)
Core dump is caused by hardcoded mem-ap dependency on jtag
(src/target/arm_adi_v5.c). When this is fixed, everything should work
fine in SWD. JTAG may need some facelifting after Transport layer
changes :-)
More details at http://stm32primer2swd.sf.net
--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel