Skip to main content
andreaspiezia9
Associate III
Question

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

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

    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

    Tesla DeLorean
    Guru
    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 (See Profile) 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

    Tesla DeLorean
    Guru
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    lucaslucas644
    Visitor II
    Posted on July 13, 2014 at 09:42

    Tesla DeLorean
    Guru
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    lucaslucas644
    Visitor II
    Posted on July 14, 2014 at 12:54

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