Keil RTX51 Manual page 43

Table of Contents

Advertisement

RTX Tiny
Interpretation of the debug output:
Task ID
Start
State
Wait for Event
Signal
Timer
Stack
Indicates the task number which is used in the task definition within
the _task_ keyword of the C51 Compiler.
Indicates the start address of the task function.
Indicates the state of the task. State can be one of the following:
State
Description
R
The task currently being executed is in the R
UNNING
Only one task can be running at a time.
R
Tasks which are waiting to be executed are in the R
EADY
S
.
After the currently running task has finished
TATE
processing, RTX51 Tiny starts the next task that is ready.
W
Tasks which are waiting for an event are in the W
AITING
S
. If the event occurs, the task is placed into the R
TATE
S
.
TATE
D
Tasks which are not started are in the D
ELETED
T
-
Tasks which were interrupted by a round-robin time-out are
IME
OUT
placed in the T
R
S
EADY
TATE
Indicates which events the task is currently waiting for. The events
can be a combination of the following:
Event
Description
T
The task is in the state W
IMEOUT
value 0. This event is displayed when the os_wait function is
called with the K_TMO or K_IVL event selector.
S
The task is in the state W
IGNAL
one. This event is displayed when the os_wait function is
called with the K_SIG event selector.
Indicates the state of the signal flag: 1 for signal set, 0 for signal reset.
Indicates the number of timer ticks which are required for a timeout.
It should be noted that the Timer is free running and only set to the
timeout value when the os_wait function is called with a K_TMO ar-
gument.
Indicates the start address of the local task stack in the IDATA area.
The layout of the RTX-51 tasks is described under Stack Management
earlier in this chapter.
ELETED
-
S
. This state is equivalent to the
IME
OUT
TATE
.
until the Timer reaches the
AITING
until the signal flag goes to
AITING
43
State.
UNNING
EADY
AITING
EADY
S
.
TATE
5

Advertisement

Table of Contents
loading

Table of Contents