2013-08-07 02:41 PM
I have a STM32 Discovery Kit. I have set up the IAR compiler. Succesfully compiled code. However when I try to download the the Discovery Board I get the following message...
Wed Aug 07, 2013 14:21:48: Fatal error: Can not connect to J-Link via USB. Session aborted! Any help would be appreciated! Thanks!!!!2013-08-07 03:32 PM
Configure the project to use the right debugger. Use ST-LINK not J-LINK
2013-08-07 07:08 PM
Clive,
When I go to the options the ST-Link is grayed out! Is there some other pre-setup I have to do? Thanks!2013-08-07 08:14 PM
IAR is not my chain of choice, but I can assure you the J-Link driver isn't going to work here.
Which Discovery board are we talking about here? ST make about half-a-dozen different models for the the assorted L1, F1, F3, F4 series parts.Are you using Windows 8, by chance? If so you'll need to do some magic to install the unsigned driver.ST-LINK V2 pagehttp://www.st.com/web/catalog/tools/FM146/CL1984/SC724/SS1677/PF251168
Drivershttp://www.st.com/web/en/catalog/tools/PF258167
Utilitieshttp://www.st.com/web/en/catalog/tools/PF258168
2013-08-07 09:14 PM
Clive,
I am using the STM32L1 Discovery Kit. It has an Embedded ST-Link/V2. Thanks for the help!2013-08-08 12:24 PM
Clive,
OK this turned out to be pretty simple! There are two thing that need to be done in the IAR to allow you to configure to the ST-Link. Under Options->Debugger->Driver...Select ST-Link Under Options->ST-Link...Select ''Interface'' SWD Thanks!