7 years, 3 months ago.

Error: Flash Download failed - Target DLL has been cancelled

/media/uploads/kwalsh/error.jpg

"PDSC: Cannot recover from reset" in console.

Hey Everyone, Been plagued with this flash error and I feel like I've exhausted debugging option for it, but there's a chance I missed something. I'm using the mbed LPC1768 evaluation board. When using the online mbed IDE, everything works fine and I can drop the binary (.bin) file onto the chip directly. The problem is I want to use offline tools, i.e. uVision5, but this is where the flashing problems occur.

I have the up-to-date firmware (version 141212 that added CMSIS-DAP support) and updated my mbed USB serial driver (mbedWinSerial_16466) to that device. As well my programming algorithm should be correct, using LPC12xx IAP 512kB Flash. My target Xtal is 12MHz. I have correctly added startup.s and system.c files (see below).

/media/uploads/kwalsh/project.jpg

Even when I export the "Hello World" sample project from online mbed IDE to uVision5, I still receive the same flash error. Please let me know if you have any suggestions, perhaps I'm missing something.

Thanks, kwalsh

/media/uploads/kwalsh/debug_debug.jpg

/media/uploads/kwalsh/debug_trace.jpg

/media/uploads/kwalsh/debug_flash.jpg

/media/uploads/kwalsh/debug_pack.jpg

/media/uploads/kwalsh/utilities.jpg

Hi Keegan,

Thanks very much for the question and issues you are having. Could you show me your Debug>Settings window please :)

Regards,

Andrea, team mbed

posted by Andrea Corrado 16 Jan 2017

Hey Andrea, Will do when I get back home from work today. I tried another laptop computer and the online mbed Compiler export method worked just fine. So the problem appears to be limited to my desktop.

Will definitely share the Debug>Settings window, but any other thoughts on why this could be limited to my desktop? USB drivers?

I reformatted the desktop last night, but still getting the same "Flash Download failed..." error message.

Appreciate you getting back to me and trying to work through the issue!

Thanks, kwalsh

posted by Keegan Walsh 16 Jan 2017

Hey Andrea,

Just updated the question with the Debug>Settings images of my Target Options.

On a side note, during my reformatting, I noticed that in my BIOS, I needed to disable the USB 3.0 Controller in-order for my keyboard/mouse to be usable in Windows 7. I'm looking in to updating my BIOS in an effort to avoid this, but do you think that could be related? I've not had any other problems with my USB with other devices, e.g. Altera FPGA SoCs.

In my comment above about the flashing process working correctly on my laptop, that had an older version of uVision5, Version 18, versus on my desktop I'm running uVision5 Version 22. Any thoughts there?

Really would appreciate you insight, I really like the mbed environment, but this issue is quite annoying.

Thanks,

kwalsh

posted by Keegan Walsh 17 Jan 2017
Be the first to answer this question.