On 2 March 2012 15:53, Shaun Menzies <shaunmenz...@gmail.com> wrote: > Hi, > > Firstly, i'm very sorry for emailing you directly out of the blue. I'm not > looking for help or anything but just a bit of clarification re your > stlink/v2 work. >
No problem, however i have cc'd the list in the reply. It is better to use the list as other's may benefit from any info given. > I'm setting up a template development environment on Windows using Eclipse > and OpenOCD for an STM32F103RC development board. I connect to the board via > the ST-Link/V2 USB Dongle. > > I have tried cross compiling OpenOCD from GIT from Ubuntu to Win 7 64-bit > using the --enable-stlink config option which compiles with no errors but > results in a "session's transport is not selected" error when executing > "openocd -f stlink-v2". > OpenOCD needs to know about your target and dongle, for example: openocd -f interface/stlink-v2.cfg -f target/stm32f4x_stlink.cfg personally i create a openocd.cfg and add various options to it, eg. #log_output openocd.log #debug_level 3 source [find interface/stlink-v2.cfg] source [find target/stm32f4x_stlink.cfg] If you are still getting issues then enable debug logging. > I also tried cross compiling using Cygwin directly on the Win 7 box but to > no avail. > > I may have grasped the wrong end of the stick so could you clarify the > following: > > 1) St-link/V2 support in OpenOCD is for the USB dongles as well as the > stlink chips embedded in the STM32F... 'discovery' modes ? yes > 2) The stlink-v2.cfg file requires no modification and can be used as is ? yes > 3) Does it matter if libusb 1.0, libusb 1.0 dev or libusb-win is used ? both will work, however if you use linusb 1.0 (winusb backend) then you can use the same winusb driver installed by ST. > 4) Do I need the libusb USB filter installed on the Win 7 64 box ? I use the filter driver when using libusb-win32, it is not supported for libusb. > 5) Has anyone else provided test results for the STM32F103 board ? quite a few are using the stlink, so most things should work. > 6) Would you have any tips or pointers that coudl help steer me back on a > track as i've very little hair left! > The biggest problem is usually the build, I generally use ubuntu to build windoze 32/64 builds using mingw-w64. I have only tested 32bit builds under cygwin. Cheers Spen ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel