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
andreaspiezia9
Associate III
Posted on January 16, 2014 at 18:48

Hi Clive,

I've connected the pin BOOT0 of my stm32f3discovery to the 3V source on the board (verified 2.97V) via a 22K ohm resistence. 

Windows start to looking for the drive, at the end it says ''insert disk prvided with STM32 Bootloader''. 

Let me highlight that I was working with USART with interrupt.

What should be the problem?

Thank you very much for all suggestion.

andreaspiezia9
Associate III
Posted on January 16, 2014 at 19:00

Now works!

For everyone that could be in the same case:

1. Connect the board only to USB User, leave NC USB St-link

2. connecte the pin BOOT0 of stm32f3discovery to the 3V source on the board via a 22K ohm resistence

3. Don't consider all message as ''driver not found....''

4. Connect USB St-link

5. download a safe program

 End

With

Posted on January 16, 2014 at 19:10

On the USER side it's probably looking for a DFU driver. If you have installed the DFU/DFuSe package you should have those.

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 16, 2014 at 20:02

I don't have it.

Any way now it works.

Thanks

Posted on July 13, 2014 at 01:07

I don't subscribe to this style of programming.

I would suggest you put a while(1); loop at the end of main() so it doesn't crash out the end into never-never land.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
lucaslucas644
Associate II
Posted on July 13, 2014 at 09:42

Posted on July 13, 2014 at 16:37

Ok, so is your problem that you can't download ANY code to the board, or that some apps you wrote don't work, I'm confused?

Can you erase the board using the ST-LINK Utilities, and the BOOT0 trick?
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
lucaslucas644
Associate II
Posted on July 14, 2014 at 12:54

Posted on July 14, 2014 at 14:30

Sounds like you might want to focus on project construction, and the settings/options

Take a look at some sample projects for the board

STM32F3-Discovery_FW_V1.1.0\Project\Peripheral_Examples\CRC_8BitsMessage\MDK-ARM\CRC.uvproj
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..