K60 flash programming problem

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

K60 flash programming problem

2,087 Views
embeddedprogram
Contributor II

I have created a processor expert project in Codewarrior 10.4 for Kinetis TWR-K60D100M with MK60DN512VLQ10 processor.  I can run the project fine in flash when debugging, but when I try to flash the same file using the lightening bolt icon I get the following error where it thinks the image size is zero bytes.  Any help would be appreciated here.  I checked the elf file on disk and it is about 11K.

fl::target -lc "RFID_FLASH_OSJTAG"

fl::target -b 0x20000000 0x10000

fl::target -v off -l off

cmdwin::fl::device -d "FTFL_PFlash512" -o "128Kx32x1" -a 0x0 0x7ffff

cmdwin::fl::image -f "C:\\Users\\jberezin\\workspace\\RFID\\FLASH\\RFID.elf" -t "Auto Detect" -re on -r 0x0 0x7ffff -oe off

cmdwin::fl::erase image

Beginning Operation ...   

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

Auto-detection is successful.  

  File is of type Elf Format.  

Image size is 0 bytes, nothing to erase.  

Nothing to erase.  No sectors selected

Performing target initialization ...   

Erase Command Succeeded.  

cmdwin::fl::write

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

Using restricted address range 0x00000000 to 0x0007FFFF  

Programming file C:\Users\jberezin\workspace\RFID\FLASH\RFID.elf  

Auto-detection is successful.  

  File is of type Elf Format.  

0 Bytes Programmed, Check Restricted Address Range  

Program Command Succeeded  

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

fl::target -b 0x20000000 0x10000

fl::target -v off -l off

cmdwin::fl::device -d "FTFL_PFlash512" -o "128Kx32x1" -a 0x0 0x7ffff

cmdwin::fl::image -f "C:\\Users\\jberezin\\workspace\\RFID\\FLASH\\RFID.elf" -t "Auto Detect" -re on -r 0x0 0x7ffff -oe off

cmdwin::fl::erase image

Beginning Operation ...   

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

Auto-detection is successful.  

  File is of type Elf Format.  

Image size is 0 bytes, nothing to erase.  

Nothing to erase.  No sectors selected

Performing target initialization ...   

Erase Command Succeeded.  

cmdwin::fl::write

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

Using restricted address range 0x00000000 to 0x0007FFFF  

Programming file C:\Users\jberezin\workspace\RFID\FLASH\RFID.elf  

Auto-detection is successful.  

  File is of type Elf Format.  

0 Bytes Programmed, Check Restricted Address Range  

Program Command Succeeded  

Labels (1)
Tags (2)
3 Replies

563 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi

Please check attached zip file, which includes two videos about how to program TWR-K60D100M board with CodeWarrior project.

Wish it helps.

best regards,

Ma Hui

563 Views
embeddedprogram
Contributor II

Hui Ma,

Thanks for your prompt response.  I viewed these excellent videos, but I think there is still a problem.  I was using Way 2 before. Today I tried both of these methods and received similar results to yours, but the program was not present in the system after programming.

If you look into both of your videos and view the console output, you will see the following to lines at the end:

0 Bytes Programmed, Check Restricted Address Range  

Program Command Succeeded  

I believe the bytes in the above message should be non-zero.


Even though the task succeeded nothing was programmed.  This is the same problem I am experiencing.

So I think we are both still having an identical problem.


Thanks.


Jeff


563 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi Jeff,

I fix this problem on my PC, what I have done is at first to enter into the debug panel, after that,use Flash programmer tool without any problem. There shows download bytes to program address.

After that, I create a new project, without any modification, the Flash programmer tool also works. If you still meet same problem after enter into debug panel, you can restart your PC and try again.

flash program result.jpg

Wish it helps.

with regards,

Ma Hui

0 Kudos