Skip to main content
Visitor II
July 29, 2011
Question

Fatal error: ST-Link, Failed to identify target MCU

  • July 29, 2011
  • 8 replies
  • 4993 views
Posted on July 29, 2011 at 13:10

Hello,

        I am using stm32f103 mcu and st-link debugger but when i connect it and debug m code i get the error as ''Fri Jul 29, 2011 16:10:47: Fatal error: ST-Link, Failed to identify target MCU - Check hardware and interface selected   Session aborted! 

 

'' pls help i have done all the possible checks which i found on this forum. but it is still not working.

#st-link
    This topic has been closed for replies.

    8 replies

    Visitor II
    July 29, 2011
    Posted on July 29, 2011 at 13:34

    which work bench are you using. IAR?? Select the correct target MCU in project settings.

    Also select ST link as the debugger in the debugger tab in the setting.

    Visitor II
    July 29, 2011
    Posted on July 29, 2011 at 13:34

    which work bench are you using. IAR?? Select the correct target MCU in project settings.

    Also select ST link as the debugger in the debugger tab in the setting.

    atulAuthor
    Visitor II
    July 29, 2011
    Posted on July 29, 2011 at 13:57

    Yes i m using IAR and i have tried those things what you have mentioned but still getting this error.

    Graduate II
    July 29, 2011
    Posted on July 29, 2011 at 14:01

    Does SWD mode work?

    Visitor II
    July 29, 2011
    Posted on July 29, 2011 at 14:08

    is ST link driver already there in your PC. I mean is ST link working ok for any other projects in your PC??

    atulAuthor
    Visitor II
    July 29, 2011
    Posted on July 29, 2011 at 14:21

    Thanks for the reply.....

    but st- link drivers are properly installed on my computer but it doesnt work for anything that means no project.

    atulAuthor
    Visitor II
    July 29, 2011
    Posted on July 29, 2011 at 14:51

    i m not using SWD mode........

    Graduate II
    July 29, 2011
    Posted on July 29, 2011 at 16:55

    i m not using SWD mode........

    I didn't ask if you were using it, I was suggesting you see if it works any better. So try it.

    Does the ST-LINK utility work?

    Is this a standard board, or something custom?

    The ST-LINK can have a hard time breaking into a system with certain things happening early in the reset process (it has to run several thousand cycles before it gains control). If it's running your code you could change the BOOTx pin states and have it run the System Loader instead.

    The U-Link (Keil) and J-Link are more robust commercial JTAG pods