Skip to main content
greg
Associate II
August 7, 2013
Question

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

  • August 7, 2013
  • 5 replies
  • 1933 views
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!!!!

    This topic has been closed for replies.

    5 replies

    Tesla DeLorean
    Guru
    August 7, 2013
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    greg
    gregAuthor
    Associate II
    August 8, 2013
    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!

    Tesla DeLorean
    Guru
    August 8, 2013
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    greg
    gregAuthor
    Associate II
    August 8, 2013
    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
    gregAuthor
    Associate II
    August 8, 2013
    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!