Question
STLink problems. Failed to read CPUID
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 OFFVerify after programming is ON.Clear memory before loading a file is ON.Erase device memory before programming (when available) is OFFDisplay 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 messageFailed to read CPUID for Cortex device.Log isWed 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