cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L Discovery Board no target connected help

zlbearss
Associate
Posted on November 20, 2013 at 03:28

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. 

3 REPLIES 3
Posted on November 20, 2013 at 03:53

Windows 8 requires special attention when trying to install unsigned drivers.

https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/ST-LINK%20under%20Windows%208&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=222

[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&currentviews=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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
zlbearss
Associate
Posted on November 20, 2013 at 05:05

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:

http://i.imgur.com/4orV4oQ.png

Here is the error I get trying to debug an example project:

http://i.imgur.com/Sq0RAxv.png

frankmeyer9
Associate II
Posted on November 20, 2013 at 09:53

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.