AnsweredAssumed Answered

Failed to read CPUID for Cortex device. ST-Link problems.

Question asked by carr.peter on Oct 20, 2011
Latest reply on Oct 22, 2011 by carr.peter
I posted this in the STM32L area by mistake. This was a VL.
--------------------------------------------------------------------------------------------------------
I started having problems with STLink  (MDK-ARM - getting an "Internal Command Error"), and ST Visual Programmer has problems. Log:
Hardware configuration set to <ST-LINK on USB with STM32F100xB plugged in and SWD protocol>.
Blank check before programming (when available) is OFF
Verify after programming is ON.
Clear memory before loading a file is ON.
Erase device memory before programming (when available) is OFF
Display a popup window when an error occurs is ON.
Log activity is OFF
> Reading section [8000000-80003FF] of  PROGRAM MEMORY area...
Error : ST-Link error (USB communication error).
Error : < PROGRAM MEMORY reading failed.
> Reading section [8000400-80007FF] of  PROGRAM MEMORY area...
Error : ST-Link error (USB communication error).
Error : < PROGRAM MEMORY reading failed.

End of Log.

  so I switched to IAR  v 6.21 and after some problems with CMSIS (fixed thanks to forum) I got it to link. Now, I get a new message
Failed to read CPUID for Cortex device.

Log is
Wed Oct 19, 2011 16:41:44: Selecting SWD as current target interface. 
Wed Oct 19, 2011 16:41:44: Hardware reset with strategy 0 was performed 
Wed Oct 19, 2011 16:41:44: Initial reset was performed 
Wed Oct 19, 2011 16:41:47: Fatal error: Failed to read CPUID for Cortex device   Session aborted! 
Wed Oct 19, 2011 16:41:47: Failed to load debugee: C:\Users\pete\Documents\stm32vldiscovery_package\an3268\stm32vldiscovery_package\Project\Demo\EWARMv5\DISCOVER\Exe\ 
DISCOVER.out 

Outcomes