cancel
Showing results for 
Search instead for 
Did you mean: 

Fatal error: Can not connect to J-Link via USB. Session aborted!

greg
Associate II
Posted on August 07, 2013 at 23:41

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!!!!

5 REPLIES 5
Posted on August 08, 2013 at 00:32

Configure the project to use the right debugger. Use ST-LINK not J-LINK

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
greg
Associate II
Posted on August 08, 2013 at 04:08

Clive,

When I go to the options the ST-Link is grayed out!  Is there some other pre-setup I have to do?  Thanks!

Posted on August 08, 2013 at 05:14

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 page

http://www.st.com/web/catalog/tools/FM146/CL1984/SC724/SS1677/PF251168

Drivers

http://www.st.com/web/en/catalog/tools/PF258167

Utilities

http://www.st.com/web/en/catalog/tools/PF258168

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
greg
Associate II
Posted on August 08, 2013 at 06:14

Clive,

I am using the STM32L1 Discovery Kit.  It has an Embedded ST-Link/V2.

Thanks for the help!

greg
Associate II
Posted on August 08, 2013 at 21:24

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!