TCL Script in Codewarrior for MCU?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

TCL Script in Codewarrior for MCU?

跳至解决方案
2,733 次查看
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,493 次查看
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,494 次查看
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,493 次查看
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,493 次查看
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,493 次查看
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 项奖励
回复