Hello :-) I have made it to detect IDCODE with KT-LINK (FT2232H) interface and STM32(Primer2) board using SWD provided by LibSWD. Because there are major changes in the Transport system I need some support and feedback if SWD IDCODE detection and old JTAG code works for other people - SWD IDCODE should work, JTAG might not work :-)
http://repo.or.cz/w/openocd/libswd.git There is still some basic mem-ap function with hardcoded jtag call so other stuff does not work in SWD yet, but the work is almost done. I am wondering how current stlink_swd works if the mem-ap access is broken for SWD and mem-ap is must have to access target bus and memory...? If you like to create your own interface features for the interface driver please take a look at src/transport/swd* as reference and templates. Right now to make new interface SWD aware it is only necessary to define a feature_arm_dap that will be handled by the hardware. If an interface does not define its own features for swd transport, a default libswd will be used, but for this to work interface needs to define at least "transfer" and "bitbang" functions at the interface level plus "RnW" signal to switch SWD buffers into read/write state. Best regards :-) Tomek -- 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
