Rta-Osek Renesas SH2A With The Renesas Compiler: Features at A Glance
Rta-Osek Renesas SH2A With The Renesas Compiler: Features at A Glance
Rta-Osek Renesas SH2A With The Renesas Compiler: Features at A Glance
Features at a Glance
All CPU overheads of the kernel have low worst The libraries containing the code for the RTA-
case bounds and little variability in execution OSEK kernel have been built using the following
time. The kernel is particularly suited to systems tools:
with very tight constraints on hardware costs
and where run-time performance must be guar- Renesas HEW4 SH Series Compiler v9.02
anteed.
Renesas HEW4 SH Series Assembler v7.01
Renesas HEW4 Optimizing Linker v9.04 Functionality
Memory Model The table below outlines the restrictions on the maxi-
mum number of operating system objects allowed by
RTA-OSEK supports the flat 32-bit address space memory RTA-OSEK.
model provided by the Renesas compiler.
BCC1 BCC2 ECC1 ECC2
ORTI Debugger Support
Max no of tasks 32 plus an idle task
ORTI is the OSEK Run-Time Interface that is supported by Max tasks per priority 1 32 1 32
RTA-OSEK for the following debuggers:
Max queued activations 1 255 1 255
Lauterbach TRACE32 Max events per task n/a n/a 32 32
Further information about ORTI for RTA-OSEK can be Max nested resources 255
found in the RTA-OSEK ORTI Guide. Max alarms Not limited by RTA-OSEK
RTA-OSEK activity
RTA-OSEK provides an optimization for task termination
if the user can guarantee that tasks only terminate from
their entry function. Tasks that terminate from else- Category 2 ISR
where are not eligible for this optimization and duly re-
Inte rrupt A sse rte d
quire 56 more stack bytes per priority level than
Task
indicated in the table above.
The following table gives the key kernel timings for op-
erating system behavior in CPU cycles.
A E
Task Type Basic Extended Ref ActivateTask(T2)
RTA-OSEK activity
Category 1 ISR Latency 29 29 K
TerminateTask()
Category 2 ISR Entry Latency 41 43 A Category 2 ISR
Category 2 ISR Exit Latency 241 359 E
Task T2 ready to run
Normal Termination 97 203 D Task T2
ChainTask 227 499 J Interrupt Asserted
Wa itEve nt(E 1)
Task T2 Task T2
SetE ve nt(T2,E1)
ActivateTask(T2)
Task T1 Task T1
F M
A larm activate s T2
Task T1 Task T1
Benchmarks
J The following sections shows benchmarks for RTA-OSEK
memory usage for BCC1, BCC2, ECC1 and ECC2 conform-
ant applications. The applications have the following
RTA-OSEK activity ChainTask(T1) framework:
Task T1 No tasksets
Period (ms)
BCC2
ECC1
ECC2
This application has the following overheads:
ISR1 10 10 IPL1 IPL1 IPL1 IPL1
A 10 10 8 8 8 8 Memory Usage Bytes
B 20 20 7 7 7 7 OS ROM 2800
C 30 20 6 6 6 6 OS RAM 954
D 40 30 5 5 5 5 comprising RAM data 206
E 50 50 4 4 4 4 comprising RAM stack 748
F 60 80 3 3 3 3
G 70 100 2 2 2 2 ECC2
H 80 150 1 1 1 2 The ECC2 application uses 6 basic tasks and 2 extended
Idle 10 - idle idle idle idle tasks. Tasks G and H are the extended tasks and share a
priority. The extended tasks wait on a single event that
is set by tasks A-F.
The overhead figures give the ROM and RAM required
for RTA-OSEK in addition to that required by the appli- This application has the following overheads:
cation. The RAM figure is shown split into RAM data and
RAM stack. Memory Usage Bytes
Tasks A, B and C
BCC2
Tasks D, E and F
The BCC2 application uses 8 basic tasks with unique pri-
orities. Tasks G and H
Tasks A-G are attached to 7 alarms. Task H is activated The benefit of this optimization is shown in the follow-
multiple times from Task A and has maximum queued ing table:
activation count of 255.
Total Stack Space (bytes) BCC1 BCC2 ECC1 ECC2
This application has the following overheads:
Non-optimized 1020 996 1128 1212
Memory Usage Bytes OS Overhead 640 616 748 832
OS ROM 2234 Application Overhead 380 380 380 380
OS RAM 758 Optimized 440 440 548 548
comprising RAM data 142 OS Overhead 260 260 368 268
comprising RAM stack 616 Application Overhead 180 180 180 180
Notes
Contact Addresses
ETAS GmbH
70469 Stuttgart, Germany
Phone +49 711 89661-0
Fax +49 711 89661-106
[email protected]
ETAS S.A.S.
94588 Rungis Cedex, France
Phone +33 1 567000-50
Fax +33 1 567000-51
[email protected]
ETAS Ltd.
Derby DE21 4SU
Great Britain
Phone +44 1332 253770
Fax +44 1332 253779
[email protected]
ETAS Inc.
Ann Arbor, MI 48103, USA
Phone +1 888 ETAS INC
Fax +1 734 997-9449
[email protected]
ETAS K.K.
Yokohama 220-6217, Japan
Phone +81 45 222-0900
Fax +81 45 222-0956
[email protected]
www.etas.com
ETAS/COM_Fi/07.2008