Skip to main content
xinjin
Associate III
April 8, 2013
Question

ST-link program problem

  • April 8, 2013
  • 4 replies
  • 951 views
Posted on April 08, 2013 at 04:00

Dear,

    I sucessfully download the Custom_HID demo code on STM32L152-EVAL. It works. However, after I disconnect the USB cable from CN1, I use IAR and ST-link to program again, the error ''Fatal error: Failed to read CPUID for Cortex device   Session aborted! '' occurs. I reconnect the USB cable and re-program, it works again. Strange.

B.R.

Jin
    This topic has been closed for replies.

    4 replies

    Tesla DeLorean
    Guru
    April 8, 2013
    Posted on April 08, 2013 at 04:06

    You can run into a lot of problems with SWD/JTAG connectivity in low power modes.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    xinjin
    xinjinAuthor
    Associate III
    April 8, 2013
    Posted on April 08, 2013 at 04:09

    Thanks clive, so you means my code was entered into low power mode?

    B.R.

    Jin

    Tesla DeLorean
    Guru
    April 8, 2013
    Posted on April 08, 2013 at 12:55

    There are several things you can do in your code that can break ST-LINK connectivity. If the problem is with your code this can be identified by resetting the part with BOOT0 High

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    xinjin
    xinjinAuthor
    Associate III
    April 9, 2013
    Posted on April 09, 2013 at 02:50

    Yes, it happens when I run the Custom_HID demo code in the debug mode and remove the USB cable. 

    B.R.

    Jin