TCL Script in Codewarrior for MCU?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

TCL Script in Codewarrior for MCU?

ソリューションへジャンプ
2,778件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
1 解決策
1,538件の閲覧回数
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 件の賞賛
返信
4 返答(返信)
1,539件の閲覧回数
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 件の賞賛
返信
1,538件の閲覧回数
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 件の賞賛
返信
1,538件の閲覧回数
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 件の賞賛
返信
1,538件の閲覧回数
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 件の賞賛
返信