Skip to main content
andreaspiezia9
Associate III
January 8, 2014
Question

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

  • January 8, 2014
  • 22 replies
  • 10217 views
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

    This topic has been closed for replies.

    22 replies

    Tesla DeLorean
    Guru
    July 16, 2014
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    andrew2
    Associate II
    July 16, 2014
    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!