Codewarrior : Facing issue in Automation using TCL Scripting

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

Codewarrior : Facing issue in Automation using TCL Scripting

351 Views
in-nitin-gupta
Contributor I

Hi

I found an automation guide (https://www.nxp.com/docs/en/user-guide/IDE_5.6_Automation_Guide.pdf) which states that TCL scripts can be used for automating flashing and debugging operations and found it quite useful but facing some challenge/issue as well i.e. once the flashing is completed, need to quit/close the CodeWarrior IDE. Document recommends to use "quitIDE" command for the same.

Used the same command but it closes only one thread of the CodeWarrior IDE i.e. closes the IDE  but respective process/thread still exists/visible in the Task Manager window. I need to close the same forcefully. 

Looking for some idea/thought through which Codewarrior IDE can be closed completely.

0 Kudos
Reply
2 Replies

260 Views
in-nitin-gupta
Contributor I

Hi Jira_kral

Thanks for your reply. 

Well as soon as I execute quitIDE, there is no console to execute "taskkill" command. Also if I try to execute through the dos prompt then it is hard to gauge the completion of the existing TCL scripting. I mean there needs to be a sync between TCL Script and External DOS command execution for "task kill".

0 Kudos
Reply

289 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

I'm not much familiar with CW v5.6 and it's scripting language. But if the the tcl console allows call OS commands, you can use taskkill command. 

When I went through the guide, may be the quitIDE will work if you start new IDE for the console with /s  parameter. 

0 Kudos
Reply