How to handle exception ,when run in tcl progress with codewarrior?

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

How to handle exception ,when run in tcl progress with codewarrior?

跳至解决方案
688 次查看
hillzzhao2016
Contributor I

hi Miss/Sir:

    I have two questions about TCL Script for auto-programming.Could u help? thanks in advanced.

1) How to handle the exception in following tcl code ,when running tcl in codewarrior.

When error occurs, the execution will stop. How to go end,if error occurs

 

fl::disconnect

fl::target -lc "LC
for Simple Flash"

fl::target -b 0xf400
0xc00

fl::target -v off -l off

cmdwin::fl::device -d
"MC56F82748_P_FLASH" -o "32kx16x1" -a 0x0 0x7fff

cmdwin::fl::image -f “c:\\FW.s" -t "Auto Detect" -re on -r 0x0 0x7fff -oe off

cmdwin::fl::erase all

cmdwin::fl::write

cmdwin::fl::device -d "MC56F82748_X_FLASH" -o "32kx16x1" -a 0x4000 0xbfff

cmdwin::fl::image -f “c:\\FW.s" -t "Auto Detect" -re on -r 0x4000 0xbfff -oe off

cmdwin::fl::erase all

cmdwin::fl::write

fl::disconnect

#End:

log s c:\\resultlog.txt

quitIDE

 

2) Could I replace “f1:erase image” with “f1::erase all?

     “f1::erase all” takes less time  than "f1::erase image".

标签 (1)
0 项奖励
回复
1 解答
509 次查看
TICS_Fiona
NXP Employee
NXP Employee

Hello Hillz

In Classic CodeWarrior for DSC, the debugger shell supports using “config” command to control whether the script will continue after an error.  The command is:

 

config onScriptError abort | continue

However I tested on Eclipse CodeWarrior, this command is not supported and I cannot find the equivalent command.  All the commands supported are listed in Chapter 4 <Debugger Shell> in CodeWarrior Development Studio Common Features Guide:

http://cache.nxp.com/files/soft_dev_tools/doc/user_guide/CWCFUG.pdf

For the second question, there is no any problem to replace “f1:erase image” with “f1::erase all”.

Best Regards

Fiona Kuang

Technical Information & Commercial Support

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Mark Correct button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
510 次查看
TICS_Fiona
NXP Employee
NXP Employee

Hello Hillz

In Classic CodeWarrior for DSC, the debugger shell supports using “config” command to control whether the script will continue after an error.  The command is:

 

config onScriptError abort | continue

However I tested on Eclipse CodeWarrior, this command is not supported and I cannot find the equivalent command.  All the commands supported are listed in Chapter 4 <Debugger Shell> in CodeWarrior Development Studio Common Features Guide:

http://cache.nxp.com/files/soft_dev_tools/doc/user_guide/CWCFUG.pdf

For the second question, there is no any problem to replace “f1:erase image” with “f1::erase all”.

Best Regards

Fiona Kuang

Technical Information & Commercial Support

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Mark Correct button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复