Stopping a command file in True-Time simulator

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

Stopping a command file in True-Time simulator

2,077 Views
Cmux
Contributor II

I have written a command file to log my variables every 10ms. I am running that command file in an infinite loop. How do I stop the execution of the command file when I want to stop logging data? The only way I found is to kill the true-time simulator application but I am looking for an elegant way to do that.

 

-- 

Cmux

Labels (1)
0 Kudos
6 Replies

647 Views
stanish
NXP Employee
NXP Employee

Hello Cmux,

 

I assume you use HiWare true-time simulator (8/16bit).

REPEAT-UNTIL and WHILE-ENDWHILE loops can be ended by pressing Esc key.

 

Stanish

0 Kudos

647 Views
Cmux
Contributor II

Is there no way to stop an infinite loop?

 

-- 

Cmux

0 Kudos

647 Views
CrasyCat
Specialist III

Hello

 

I assume you are referring to an infinite loop defined in a debugger command file?

Am I right?

 

Then the next question is which processor are you targeting (HC08, HC12, Coldfire, ...)?

Which version of CodeWarrior are you using?

To retrieve that info:
- Start CodeWarrior
- Select Help -> About Freescale CodeWarrior
- Click on "Install Products"
- CodeWarrior version used is displayed on top in the Installed Products dialog.

 

CrasyCat

0 Kudos

647 Views
Cmux
Contributor II
Yes I am referring to an infinite loop in the debugger command file. I am using an MC9S12P microcontroller with CodeWarrior v5.0.
0 Kudos

647 Views
CrasyCat
Specialist III

Hello

 

Did you try to click inside of the command window and press ESC?

This should stop execution of the currently executed command file.

 

CrasyCat

0 Kudos

647 Views
Cmux
Contributor II

Yes I tried pressing Esc in the command window. I tried all sorts of escape sequences in the command window to no avail. Any other ideas?

 

-- 

Cmux

0 Kudos