cancel
Showing results for 
Search instead for 
Did you mean: 

unable to download into flash.

nanuradha
Associate II
Posted on January 17, 2007 at 05:06

unable to download into flash.

4 REPLIES 4
sjo
Associate II
Posted on May 17, 2011 at 09:35

Bit more info needed - Device, Toolchain, OS, own hardware ?

Regards

sjo

nanuradha
Associate II
Posted on May 17, 2011 at 09:35

Dear all,

while dumping the code into flash we are encountering an error as

ERROR:Flash download failed - Target DLL has cancelled.

this is happening quite frequently,why?

what is the solution for it.

thanks in advance.

anuradha.

nanuradha
Associate II
Posted on May 17, 2011 at 09:35

Dear Sjo,

we are using MCBSTR9 Evaluation Board(Keil) with ULINK(JTAG Debugger). STR912FW44 is the microcontroler.

IDE: Keil's uvision 3.03

OS is Win2000 NT.

we are facing a problem while downloading program into flash, everytime the program is changed..

various error messages that are comming are:

1.JTAG Communication failed

2. Cannot enter Debug Mode

Erase Failed

3. Cannot enter flash downloading algorithm

Erase Failed

4. Flash download failed - Target DLL has cancelled.

to rectify this we are following these steps.

1- Power-down the board.

2- Power-on the board while keeping the board RESET button pressed.

3- start a program erase (keeping the RESET button pressed).

( full chip erase) which is not advisable to be done frequently.

please suggest us a solution as early as possible.

with regards,

HBL team.

mehdi239955
Associate II
Posted on May 17, 2011 at 09:35

Dear anuradha;

This behavior is known, in fact, when you’re in low power mode or sleep mode, etc you can face this kind of problem.

Is it your case?

Can you give us more details about the code 😉

Nevertheless, it is possible to prevent the JTAG connection's lost by software. In fact, try to do not enter in these particular modes before the debugger get a connection with the target, using an interruption (push a button to enter in these modes).

>Flash download failed - Target DLL has cancelled.

For erasing try to use CAPS it could be better

Goodluck :D