cancel
Showing results for 
Search instead for 
Did you mean: 

STLink problems. Failed to read CPUID

petecarr
Associate II
Posted on October 20, 2011 at 01:57

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 

1 REPLY 1
petecarr
Associate II
Posted on October 20, 2011 at 02:33

Sorry everyone. I'm in the wrong area. This is a STM32VL.

I do have a 32L and that refuses to talk at all.