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