Hello
I try to programming MM9Z1J638 from DOS shell. I use CW 11.1 and programmer Multilink Universal FX.
I made tcl file for that:
fl::disconnect
fl::target -lc "LC for Simple Flash"
fl::target -b 0x1000 0x2000
fl::target -v off -l off
cmdwin::fl::device -d "MM9Z1J638_FLASH" -o "128Kx32x1" -a 0xfe0000 0xffffff
cmdwin::fl::protect all off
cmdwin::fl::device -d "MM9Z1J638_EEPROM" -o "4Kx32x1" -a 0x100000 0x100fff
cmdwin::fl::protect all off
cmdwin::fl::device -d "MM9Z1J638_FLASH" -o "128Kx32x1" -a 0xfe0000 0xffffff
cmdwin::fl::image -f "C:\\LEM\\IN200\\BATS2_prj\\G16001C-Volvo-embBoot.elf" -t "Auto Detect" -re on -r 0xfe0000 0xffffff -oe off
cmdwin::fl::erase image
cmdwin::fl::write
cmdwin::fl::device -d "MM9Z1J638_EEPROM" -o "4Kx32x1" -a 0x100000 0x100fff
cmdwin::fl::image -f "C:\\LEM\\IN200\\BATS2_prj\\G16001C-Volvo-embBoot.elf" -t "Auto Detect" -re on -r 0x100000 0x100fff -oe off
cmdwin::fl::erase image
cmdwin::fl::write
fl::disconnect
quitIDE
exit
But after run this script I receive error:
CodeWarrior Debugger Shell v1.0
%>source C:\LEM\IN200\BATS2_prj\bats2\b_t.tcl
cmdwin::fl::disconnect
cmdwin::fl::target -lc LC for Simple Flash
cmdwin::fl::target -b 0x1000 0x2000
cmdwin::fl::target -v off -l off
cmdwin::fl::device -d MM9Z1J638_FLASH -o 128Kx32x1 -a 0xfe0000 0xffffff
cmdwin::fl::protect all off
Flash Programmer internal error: connection list is empty
Beginning Operation ...
-------------------------
Error: Operation failed. GetFlashDriverFile: Algorithm file C:\Freescale\CW MCU
v11.1\MCU\bin\Plugins\Support\Flash_Programme
r\ is not an elf file. Flash drivers must be elf images.
Error: Couldn't open flash driver file.
Error: Operation failed.GetFlashDriverFile: Algorithm file C:\Freescale\CW MCU
v11.1\MCU\bin\Plugins\Support\Flash_Programmer\ is
not an elf file. Flash drivers must be elf images.
What I can do with that or where I mistake?