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

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

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

ソリューションへジャンプ
687件の閲覧回数
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 解決策
508件の閲覧回数
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 返信
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 件の賞賛
返信