cancel
Showing results for 
Search instead for 
Did you mean: 

Keil Error: Flash Download Failed - Target DLL has been cancelled

andreaspiezia9
Associate III
Posted on January 08, 2014 at 10:46

Hi,

I was working with my stm32f3discovery and using the On-board ST-LINK/V2 for debug/ flash programming.

I was working fine: flash download, debug and so on.

After that I've disconnected the board. When I've reconnected and tried to download in flash a pop up has been showed: Error: Flash Download Failed - Target DLL has been cancelled .

Please can you help me?

Thanks

22 REPLIES 22
andrew2
Associate II
Posted on July 16, 2014 at 16:52

I am running into a similar problem on a STM32f0discovery board (STM32F051R8T6).  When I pull Boot0 high the board appears to go into a different mode of operation (the LED that I turn on in my program is not turned on), which makes me think the MCU is loading from a different place in memory.  This would be fine, except I still can't erase the flash.  I get the ''No target connected'' message followed by the ''Error: Flash Erase failed  -  Target DLL has been cancelled'' again.  Any ideas on how do de-brick the board?

Edit:  It is worth noting that the board bricked because I put it in to standby mode.

Posted on July 16, 2014 at 18:33

Yes, when BOOT0 is High at reset the chip goes into the System Loader code in ROM, and doesn't execute broken user code in FLASH.

Code that goes into low power or standby states early enough in the boot process will break the SWD/JTAG connectivity before the debugger can wrestle away control, and allow you to start the part over from the beginning again.

I would recommend using the ST-LINK Utilities, and most current firmware/drivers.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
andrew2
Associate II
Posted on July 16, 2014 at 21:06

The ST-LINK Utility is what I needed to use.  I had to set the ''Connect Under Reset'' option.  Thank you!