I'm probably doing something very silly but I'm having problems trying to connect to an stm32f4 discovery board with it's inbuilt ST/LINK V2 interface.
However when I try to set the board as a target in Code Sourcery I get "Failed to open STLinkUSBDriver.DLL" as the stm32f4discovery is a supported target I must be doing something wrong, help please!?
I have installed what appears to be the latest drivers (stsw-link004) and have the STM32 ST-LINK Utility and that talks happily to the board.
Peter D Hull
Reading the manual helps!
7.11.1. Configuration on Microsoft Windows Hosts
You must install drivers for the ST-LINK device before you can use it to debug your program. You
can obtain the latest drivers from the STMicroelectronics web site3.
You must also update the ST-LINK device with the latest firmware using ST-LINK utility. You can
obtain the utility from the STMicroelectronics web site4.
You need to copy STLinkUSBDriver.dll from the installation directory of ST-LINK utility,
typically located at c:\Program Files\STMicroelectronics\STM32 ST-LINK
Utility\ST-LINK Utility, to the i686-mingw32\arm-none-eabi\lib directory of
the Sourcery CodeBench software installation.
So to confirm very silly as the information was in the manual all the time.
Thanks to those who's time was wasted sorry!
Peter D Hull