cancel
Showing results for 
Search instead for 
Did you mean: 

ST-link program problem

xinjin
Associate II
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
4 REPLIES 4
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 Venmo
Up vote any posts that you find helpful, it shows what's working..
xinjin
Associate II
Posted on April 08, 2013 at 04:09

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

B.R.

Jin

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 Venmo
Up vote any posts that you find helpful, it shows what's working..
xinjin
Associate II
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