AnsweredAssumed Answered

"The flash device algorithm was interrupted during execution." issue

Question asked by Meimei Ouyang on Dec 2, 2016
Latest reply on Dec 7, 2016 by Martin Kovar

Hi,

 

I am using CodeWarrior 10.7 (The Eclipsed based one) build-in sample project for MPC5643L for the initial evaluation. The emulator I am using is P&E multilink.

 

I can connect/debug the microcontroller easily. However, when using the "Flash file to target" feature, I got errors everytime. The error message is:

fl::target -lc "LC for Simple Flash (1)"
fl::target -b 0x40000000 0x10000
fl::target -v off -l off
cmdwin::fl::device -d "MPC5643L_BOOKE" -o "1Mx32x1" -a 0x0 0xfffff
cmdwin::fl::protect all off
Beginning Operation ...
-------------------------
Performing target initialization ...
Start initializing the MCU ...
initialize Core_0 ...
reading SIUL.MIDR1 ...
c3f90004 <m>0x56433412</m> VC4.
Current MCU found as MPC5643L cut 2
reading SSCM.STATUS ...
c3fd8000 <m>0x9870a8e4</m> .p..
MCU found in lockstep mode.
initialize core registers for LockStep mode
init ECC SRAM 0x40000000:0x20000
SRAM initialized.
Get application entry point ...
Searching for boot sectors ...
Found boot sector at 0x0000 and entry point at 0x448.
Finish initializing the MCU.
Downloading Flash Diagnostics Driver ...
Reading flash ID ...
Unprotecting all sectors...
Unprotecting ...
Unprotect Command Succeeded
cmdwin::fl::image -f "C:\\Users\\shawn.yuan\\workspace\\MPC5643L_INTC-SW-VLE-LSM\\MPC5643L_INTERNAL_FLASH\\MPC5643L_INTC-SW-VLE-LSM.elf" -t "Auto Detect" -re on -r 0x0 0xfffff -oe off
cmdwin::fl::erase image
Beginning Operation ...
-------------------------
Auto-detection is successful.
File is of type Elf Format.

Downloading Flash Device Driver ...
Reading flash ID ...
Erasing Sector 0x00000000 to 0x00003FFF
Erasing Sector 0x00010000 to 0x0001BFFF
Erasing Sector 0x00020000 to 0x0002FFFF
Erasing ...
Erase Command Succeeded
cmdwin::fl::write
-------------------------
Using restricted address range 0x00000000 to 0x000FFFFF
Programming file C:\Users\shawn.yuan\workspace\MPC5643L_INTC-SW-VLE-LSM\MPC5643L_INTERNAL_FLASH\MPC5643L_INTC-SW-VLE-LSM.elf
Auto-detection is successful.
File is of type Elf Format.

Downloading Flash Device Driver ...
Reading flash ID ...
Auto-detection is successful.
File is of type Elf Format.

Downloading 0x00000008 bytes to be programmed at 0x00000000
Executing program ....
Error: Program failed. Flash driver reports the following error(s): The flash device algorithm was interrupted during execution.
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.
Error: Program failed. Flash driver reports the following error(s): The flash device algorithm was interrupted during execution.
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.

 

And I also tried to use CodeWarrior 5.9.0 (The classical one compare to the v10.7). The dowload is successful, meaning the program runs on board after powercycle/reset. So it shouldn't be a hardware problem.

 

Does anyone experience this issue before?

Outcomes