TCL Script in Codewarrior for MCU?

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

TCL Script in Codewarrior for MCU?

Jump to solution
2,442 Views
RuiFaria
Contributor III

Hi,

 

I am using Codewarrior v10.5 for kinetis K70 but before i used Codewarrior Classic for M52259.

 

Is it possible to use TCL Script in Codewarrior for MCU or something equivalent?

 

Like we use in Classic by calling CmdIDE.exe.

 

Thanks,

Rui Faria

Labels (1)
0 Kudos
1 Solution
1,202 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
4 Replies
1,203 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,202 Views
RuiFaria
Contributor III

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

0 Kudos
1,202 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

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

0 Kudos
1,202 Views
RuiFaria
Contributor III

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

0 Kudos