Trouble downloading application to MCF52259 target from CW10.X

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Trouble downloading application to MCF52259 target from CW10.X

1,016 Views
PabloBaena
Contributor III

Hi, a strange error message is stopping me from downloading the application into my MCF52259 own boards and Tower module. I have already tried in several PCs, new CW installation, new MQX import, several boards, as well with OSDBDM and Multilink Universal. It completes previous erasing of flash, but then fails when programming.

 

One day code was downloading perfectly, the next day, without any change, it just will never download again.

 

Please anybody has a clue or encountered this anytime?

 

My enviroment:

CW 10.4 and 10.5 (Windows XP SP3)

Tower MCF52259

Debugger: Multilink Universal and embeded OSBDM.

Application: MQX examples

 

Here's the error message:

 

Downloading Flash Device Driver ... 

Reading flash ID ... 

Auto-detection is successful. 

  File is of type Elf Format. 

 

Downloading 0x0000E02F bytes to be programmed at 0x0000C000 

Executing program .... 

<e>Error:  Program failed.   Flash driver reports the following error(s): The flash device algorithm was interrupted during execut

ion.

Please check if the flash base address is correct or if there are any flash devices mapped inside the selected memory space.

If a custom target initialization file was used then check the following parameters: flash base address, flash bank size and flash

bank port size.

Please enable Verify Target Memory Writes in Target Configuration to check that the algorithm downloads correctly. If you are down

loading the algorithm to DDR try checking your DDR configuration.</e>

Labels (1)
Tags (3)
0 Kudos
4 Replies

537 Views
PabloBaena
Contributor III

Hi,

I reported the issue to PEMicro. The programmer had to be replaced with a new one. It definitely was a hardware problem. Now I can happily go back to developing and debugging.

0 Kudos

537 Views
anteantee
Contributor II

i'm having the same problem on my pc using cw10.4 and cw10.2

but on other pc using cw7.2 the device can be programmed

:/

0 Kudos

537 Views
drummer
Contributor IV

It sounds like you have inadvertently enabled the watchdog timer. You should, after clearing the memory re-power up the board.

Once the watchdog timer is enabled it cannot be disabled unless powered up with a clean memory.

0 Kudos

537 Views
PabloBaena
Contributor III

Unfortunately watchdog timer is not being touched at all.

Code works fine when debugging with OSBDM...It happens only with the PEMicro Multilink Universal in every setup enviroment.  Even new installations, new applications....I've asked PEMicro directly and have no answer yet...

I don´t just understand what is that DDR message and what has to do here...

Another message I get when trying to Blank erase:

fl::target -lc "LC for Simple Flash"

fl::target -b 0x20000000 0xffff

fl::target -v off -l off

cmdwin::fl::device -d "CFM_MCF5225X_512" -o "256Kx16x1" -a 0x0 0x7ffff

cmdwin::fl::erase all

Beginning Operation ...   

-------------------------

Performing target initialization ...   

Downloading Flash Device Driver ...  

Reading flash ID ...

Erasing entire flash ...   

Erasing ...

Erase Command Succeeded   

cmdwin::fl::blankcheck all

Beginning Operation ...   

-------------------------

Downloading Flash Utility Driver ...  

Performing Blank Check from 0x00000000 to 0x0007FFFF ...   

Blank Checking ...

Error:  Blank Check failed.

Error: Blank Check failed.

0 Kudos