2013-11-19 06:28 PM
Over the summer, I attended a STM32L seminar. I got the board to connect and program perfectly on my work laptop. Since then the board has sat in my drawer, but I just recently got out to use on a school project. On my computer at school, I can not get it to connect. In my device manager it shows up under universal serial bus devices as a STM32 STLink. I have been following the guides I got at the seminar, but it isn't working. My OS is windows 8.1. I have been trying to get this to work for a few days with no luck. Any help is appreciated.
2013-11-19 06:53 PM
Windows 8 requires special attention when trying to install unsigned drivers.
[DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Discovery/STLink%20driver%20not%20working%20for%20Windows%208%20%2864%20bit%29&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F¤tviews=644]https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2FSTM32Discovery%2FSTLink%20driver%20not%20working%20for%20Windows%208%20%2864%20bit%29&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F¤tviews=644 There is supposed to be a signed version available, but I don't have a specific cite or version to point you at. Check you can see the board with the ST-Link utilities, update the firmware, and use the ''ST-Link Debugger'' rather than ''ST-Link Deprecated Version'' in tools like Keil. Connect in SWD mode, not JTAG.2013-11-19 08:05 PM
So I followed the instructions for the unsigned drivers and still no luck. I have uninstalled and reinstalled both the driver and keil a few times with no luck either.
Here is a picture of the driver itself after just following all the instructions you posted:http://i.imgur.com/ES2mzMw.jpg
Here is a picture of the debugger settings:Here is the error I get trying to debug an example project:2013-11-20 12:53 AM
You need to differ between problems with the ST-Link part (STM23F103) and the target (STM32Lxx) on your discovery board.
''Target error'' usually means, the ST-Link is working properly, but cannot acces the target, or can't get it under control. Most often this is caused by flawed software. Try to mass-erase the target with the ST-Link Utility software. If this fails, try with the Flash Loader Demonstrator and the BOOT0/BOOT1 'trick', to get the target into the system bootloader.