2010-09-08 04:46 AM
ST-Link Error: Failed to reset ST-Link device
2011-05-17 05:06 AM
Hi,
I have exactly the same problem on my board. Have you found the reason for this ''Internal command error'' ?? I have my own board with STM32F103. I have varified several times that the design is correct and the pcb layout is correct. I am using SWD interface to program the chip. I have spent more than a day trying to debug the board and have resorted to changing the chip which did not solve the problem. The ST-LINK works well in SWD mode on an Olimex dev board that I have used as a guideline to design my own hardware and software, so the ST-LINK is good and it does work in SWD mode. Thanks. FH...2011-05-17 05:06 AM
Hi,
I have solved my problem:
On my design I did not intend using the internal ADC and did not connect the VDDA to VDD as I thought that VDDA was only used for the internal ADC, my mistake! The VDDA is also used for the following: VSSA, VDDA = 2.0 to 3.6 V: external analog power supplies for ADC, Reset blocks, RCs and PLL (minimum voltage to be applied to VDDA is 2.4 V when the ADC is used). VDDA and VSSA must be connected to VDD and VSS, respectivelyFH..
2011-05-17 05:06 AM
2011-05-17 05:06 AM
2011-05-17 05:06 AM
I got exactly the same error with keil and atollic as you.
Im using a stm32vldiscovery board. It is a hardware problem so?
It is certainly possible to brick the VL Discovery board with an out of control application. The ST-LINK portion can't reset and gain control over the application processor. I added some break-out code to monitor the button on start-up, as I think the problem I saw was with a interrupt storm. One possible resolution to the bricked VL might be to change the state of the Boot pin so it doesn't run the application.
2011-05-17 05:06 AM
The boot pins controls where the processor maps address zero and starts the processor. Either FLASH (0x08000000), RAM (0x20000000), or ROM (0x1FFFF000). They are sampled at reset, and have no control after that.
If the ST-LINK can't gain control of your application, having it start something else should help.2011-05-17 05:06 AM