Hello Rui:
You might want to check the next excellent tutorials by colleague Erich Styger, containing a bunch of information about scripting and Command Line programming/debugging:
Scripting: The Debugger Shell, Getting started… | MCU on Eclipse
Debugger Shell: Test Automation | MCU on Eclipse
Eclipse Command Line Code Generation with Processor Expert | MCU on Eclipse
CodeWarrior Flash Programming from a DOS Shell | MCU on Eclipse
I guess you will find them very useful.
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Rui:
You might want to check the next excellent tutorials by colleague Erich Styger, containing a bunch of information about scripting and Command Line programming/debugging:
Scripting: The Debugger Shell, Getting started… | MCU on Eclipse
Debugger Shell: Test Automation | MCU on Eclipse
Eclipse Command Line Code Generation with Processor Expert | MCU on Eclipse
CodeWarrior Flash Programming from a DOS Shell | MCU on Eclipse
I guess you will find them very useful.
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi,
I am trying to follow the examples in the tutorials but it isn't working for me.
CodeWarrior Debugger Shell v1.0
%>source C:\scriptErase.tcl
cmdwin::fl::disconnect
cmdwin::fl::target -lc LC for Simple Flash
cmdwin::fl::target -b 0x1fff0000 0x20000
cmdwin::fl::target -v off -l off
cmdwin::fl::device -d FTFE_PFlash512 -o 64Kx64x1 -a 0x0 0x7ffff
cmdwin::fl::erase all
Flash Programmer internal error: connection list is empty
Beginning Operation ...
-------------------------
Error: Operation failed. CodeWarrior Plugin is unable to open file "P3-PFlash.elf"
in "C:\Freescale\CW MCU v10.5\MCU\bin\Plugins\Support\Flash_Programmer" directory.
Please make sure the file exists and is readable.
Error: Couldn't open flash driver file.
Error: Operation failed.CodeWarrior Plugin is unable to open file "P3-PFlash.elf"
in "C:\Freescale\CW MCU v10.5\MCU\bin\Plugins\Support\Flash_Programmer" directory.
Please make sure the file exists and is readable.
It can't open the "P3-PFlash.elf" file but it is in "C:\Freescale\CW MCU v10.5\MCU\bin\Plugins\Support\Flash_Programmer\ARM_EABI" instead of "C:\Freescale\CW MCU v10.5\MCU\bin\Plugins\Support\Flash_Programmer".
How could i solve this Error?
Thanks,
Rui Faria
Hello Rui:
Those errors are indeed strange and I have not played much with the scripts, so I have no clue right now, sorry. But if I think of something I will let you know.
Regards!
Jorge_Gonzalez
Hi Jorge,
I solve the problem by creating a new DEBUG CONFIGURATION and name it “LC for Simple Flash”.
But i still having problems in unprotect and unsecure my K70 using TCL scripts.
Best Regards,
Rui Faria