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
chen
Associate II
Posted on January 08, 2014 at 11:10

Hi

Have you tried rebooting/re-powering everything?

Try the 'ST-Link Utility' program. You should be able to read back (and program) the Flash and the option bytes but you cannot debug.

The ST-Link (on board and stand alone) are suppose to be tolerant of plugging/unplugging while powered but I have seen stand alone ST-Link blown.

I have even blown a Seger J-Link myself!

If after the re-power and the ST-Link Util does not work - the ST-Link could be damaged.

Posted on January 08, 2014 at 13:26

To de-brick, pull BOOT0 High, restart, and then use the Flash->Erase option.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
andreaspiezia9
Associate III
Posted on January 08, 2014 at 14:51

Thank you,

I've tried with rebooting/re-powering but nothing.

andreaspiezia9
Associate III
Posted on January 08, 2014 at 14:55

Hi Clive,

thank you, but what do you mean with BOOT0?

chen
Associate II
Posted on January 08, 2014 at 15:10

Hi

It is one of the pins on the STM32 processor. It is used to control boot up - whether it does the ARM core boot or whether it runs the built in STM written bootloader.

However, I am unclear on whether clive means on the STM32F407 or the STM32F103 processor that is used as the ST-Link.

andreaspiezia9
Associate III
Posted on January 08, 2014 at 15:52

Hi,

I'm using STM32F3DISCOVERY -> STM32F303VCT6

Posted on January 08, 2014 at 16:14

The F303 can get in a state that the ST-LINK can't get it out of.

About half way up the right hand pin header are BOOT0 and VDD, jumper them and reset the F303. This will put it in System Loader mode rather than broken user code that might have bricked the device. See then if you can erase the F303, and remove the jumper.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
andreaspiezia9
Associate III
Posted on January 08, 2014 at 19:25

Hi Clive,

I've connected pin BOOT0 to pin 5V via a 10K resistor and reset but the problem persist. 

As soon as I plugged in the USB cable in the PC and in the USB USER connector it says that USB device not recognized.

I'm persuading to buy an other discovery board.

Posted on January 08, 2014 at 19:47

VDD is 3V, not sure BOOT0 is FT

Did have one of my F3-DISCO's go weird on me, fought with it for a while, and not it's happy again. Double check your 3V supply.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..