![Keil RTX51 Скачать руководство пользователя страница 41](http://html1.mh-extra.com/html/keil/rtx51/rtx51_manual_3913946041.webp)
RTX Tiny
41
5
System Debugging
This chapter contains additonal information about the stack handling and the system de-
bugging with dScope-51.
Stack Management
RTX51 Tiny reserves an individual stack area for each task. Due to the design of RTX51
Tiny which uses only the on-chip memory resources of the 8051, the entire stack is man-
age in the internal memory (IDATA) of the 8051. To allocate the largest available stack
space to the current running task, the stack space used by other not running tasks is
moved. The following figure illustrates the stack assignment of the individual tasks.
Stack Assignment for
Stack Area
for Task 2
0FFH
RAMTOP
Stack Area
for Task 1
Stack Area
for Task 0
(50H)
?STACK
0F8H
0F0H
Task0 = Running Task
Stack Assignment for
Stack Area
for Task 2
0FFH
RAMTOP
Stack Area
for Task 1
Stack Area
for Task 0
(50H)
?STACK
0F8H
58H
Task1 = Running Task
Stack Assignment for
Stack Area
for Task 2
0FFH
RAMTOP
Stack Area
for Task 1
Stack Area
for Task 0
(50H)
?STACK
60H
58H
Task2 = Running Task
The figure illustrates that RTX51 Tiny always allocates the entiere free memory as a
stacka area for thye currently running task. The memory used for the stack starts at the
symbol ?STACK which denotes the start address of the ?STACK segment. The ?STACK
symbol reserves the first unassigned byte in the internal memory.
Debugging with dScope-51
A RTX51 Tiny application can be tested using the dScope-51 Source-Level Debugger.
The RTX51 system status is displayed using a debug function. The use of this debug
function is explained in the following.
Содержание RTX51
Страница 4: ......
Страница 6: ......
Страница 20: ......
Страница 24: ......
Страница 39: ...RTX Tiny 39 4...
Страница 40: ......
Страница 44: ...44 RTX51 Tiny Specifications 5...
Страница 68: ...RTX51 TINY REAL TIME OPERATING SYSTEM User s Guide 2 95...