CodeWarrior does not flash K20DX32 properly

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

CodeWarrior does not flash K20DX32 properly

529 Views
gerryk
Contributor I

I have built a simple program and it will run and debug fine, but when I flash it the device, it does not work,

 

Here is the output of the flash console:

 

fl::target -lc "Flash Arm"

fl::target -b 0x1ffff000 0x2000

fl::target -v off -l off

cmdwin::fl::device -d "FTFL_PFlash32S1RAM8" -o "8Kx32x1" -a 0x0 0x7fff

cmdwin::fl::image -f "D:\\CSSD Documents\\Apparata\\500RackFirmware\\Arm\\Code Warrior\\V0-0\\Rack500-V0-0\\FLASH\\Rack500-V0-0.elf" -t "Auto Detect" -re on -r 0x0 0x7fff -oe off

cmdwin::fl::erase image

Beginning Operation ...   

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

Auto-detection is successful.  

  File is of type Elf Format.  

 

Performing target initialization ...   

Downloading Flash Device Driver ...  

Reading flash ID ...

Erasing Sector 0x00000000 to 0x000003FF  

Erasing Sector 0x00000400 to 0x000007FF  

Erasing Sector 0x00000800 to 0x00000BFF  

Erasing Sector 0x00000C00 to 0x00000FFF  

Erasing Sector 0x00001000 to 0x000013FF  

Erasing Sector 0x00001400 to 0x000017FF  

Erasing Sector 0x00001800 to 0x00001BFF  

Erasing Sector 0x00001C00 to 0x00001FFF  

Erasing Sector 0x00002000 to 0x000023FF  

Erasing Sector 0x00002400 to 0x000027FF  

Erasing Sector 0x00002800 to 0x00002BFF  

Erasing Sector 0x00002C00 to 0x00002FFF  

Erasing ...

Erase Command Succeeded   

cmdwin::fl::write

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

Using restricted address range 0x00000000 to 0x00007FFF  

Programming file D:\CSSD Documents\Apparata\500RackFirmware\Arm\Code Warrior\V0-0\Rack500-V0-0\FLASH\Rack500-V0-0.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 0x000000F8 bytes to be programmed at 0x00000000  

Executing program ....  

Program Command Succeeded   

Downloading 0x00001310 bytes to be programmed at 0x00000400  

Executing program ....  

Program Command Succeeded   

Downloading 0x00001310 bytes to be programmed at 0x00001710  

Executing program ....  

Program Command Succeeded   

Downloading 0x000004C0 bytes to be programmed at 0x00002A20  

Executing program ....  

Program Command Succeeded   

cmdwin::fl::device -d "FTFL_DFlash32S1RAM8" -o "8Kx32x1" -a 0x10000000 0x10007fff

cmdwin::fl::image -f "D:\\CSSD Documents\\Apparata\\500RackFirmware\\Arm\\Code Warrior\\V0-0\\Rack500-V0-0\\FLASH\\Rack500-V0-0.elf" -t "Auto Detect" -re on -r 0x10000000 0x10007fff -oe off

cmdwin::fl::erase image

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

Auto-detection is successful.  

  File is of type Elf Format.  

 

Image size is 0 bytes, nothing to erase.  

Nothing to erase.  No sectors selected

Erase Command Succeeded.  

cmdwin::fl::write

Beginning Operation ...   

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

Using restricted address range 0x10000000 to 0x10007FFF  

Programming file D:\CSSD Documents\Apparata\500RackFirmware\Arm\Code Warrior\V0-0\Rack500-V0-0\FLASH\Rack500-V0-0.elf  

Auto-detection is successful.  

  File is of type Elf Format.  

 

0 Bytes Programmed, Check Restricted Address Range  

Program Command Succeeded  

 

I can't tell if the device was flashed correctly or not, but in any case the program does not run from flash......

Labels (1)
Tags (1)
0 Kudos
1 Reply

278 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

hi,

can you pleases check if this solution can help?

Re: MK10DX256VLK7 doesn't run standalone, just when debugging. Verified it's running from FLASH, not...


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos