W dniu 2012-11-21 09:39, CeDeROM pisze: > % /tmp/openocd/target/bin/openocd -c "source [find target/stm32f1x-swd.cfg]" > Open On-Chip Debugger 0.7.0-dev-g88134cb-dirty (2012-11-21-09:36) > Licensed under GNU GPL v2 > For bug reports, read > http://openocd.sourceforge.net/doc/doxygen/bugs.html > Info : Transport - autoselecting 'swd' as the only option for > 'ft2232_swd' interface. > Info : Transport - interface 'ft2232_swd' defines its own > 'oocd_feature_arm_dap' features. > Info : Transport - using 'oocd_feature_arm_dap' features of the > 'ft2232_swd' interface... > 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 > cortex_m3 reset_config sysresetreq > Error: unable to open ftdi device: device not found > in procedure 'init' > > > Please note this is proper behavior with the current head. I dont have > hadrware connected at the moment, but as you can see features setup is > working well with ft2232_swd interface. Note that you can use > configure.shfor faster configuration - it will install binary into > /tmp/openocd/target/bin/openocd. Let me know if that works for you :-)
This approach would not work for cross-compilation and Windows (; My configure command was equivalent to the script (maintainer mode, ft2232-libftdi), yet it does not work like for you... > d:\openocd-dev\openocd-swd\bin>openocd -c "source [find > target/stm32f1x-swd.cfg] > " > Open On-Chip Debugger 0.7.0-dev-g88134cb-dirty (2012-11-20-08:36) > Licensed under GNU GPL v2 > For bug reports, read > http://openocd.sourceforge.net/doc/doxygen/bugs.html > Info : Transport - autoselecting 'swd' as the only option for 'ft2232_swd' > inter > face. > Info : Transport - selecting LibSWD as SWD transport mechanism and interface > fea > tures... > Error: Cannot add this invalid feature! > Warn : Transport - features '' failed to attach to interface 'ft2232_swd'! > Error: Transport - interface 'ft2232_swd' does not provide/accept features > requi > red by transport 'swd'! > Runtime Error: > d:/openocd-dev/openocd-swd/bin/../scripts/interface/kt-link-swd.c > fg:4: > at file "d:/openocd-dev/openocd-swd/bin/../scripts/target/stm32f1x-swd.cfg", > lin > e 4 > in procedure 'interface' called at file > "d:/openocd-dev/openocd-swd/bin/../scrip > ts/interface/kt-link-swd.cfg", line 4 Config file was not modified. I guess there's some portability issue here - what works for your compiler/OS does not work for mine (and I see the same behavior for 32- and 64-bit versions). 4\/3!! ------------------------------------------------------------------------------ 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
