User`s manual

SCIOPTA - Real-Time Kernel
User’s Manual Manual Version 4.1 11-3
SCIOPTA - Real-Time Kernel
11 System Start and Setup
11.3 C Startup
After a cold start the kernel will call the C startup function. The C startup function is written in assembler and has
the name cstartup. It initializes the C system and replaces the library C startup function. C startup functions are
compiler specific.
For IAR Embedded Workbench there is no C startup function needed.
There is no C startup function needed in the SCIOPTA SCSIM Simulator.
11.3.1 Location
Reset hooks are compiler manufacturer and board specific. Reset hook examples can be found in the SCIOPTA
Board Support Package deliveries.
cstartup.S C System initialization.
The extension .S is used in GCC for assembler source files. For other compiler packages the ex-
tensions for assembler source files might be different.
File location: <installation_folder>\sciopta\<version>\bsp\<arch>\src\
11.4 Starting the SCIOPTA SCSIM Simulator
Only for the SCIOPTA SCSIM Simulator:
You need to write the WinMain method and include the sciopta_start system call to implement a SCIOPTA
WIN32 application.
Please consult the SCIOPTA - Kernel, Reference Manual for more information about the sciopta_start system
call.
In the delivered SCIOPTA examples the WinMain method and the whole startup code is usually included in the
file system.c.
system.c SCIOPTA SCSIM Simulator setup including the WinMain method.
File location: <installation_folder>\sciopta\<version>\exp\krn\win32\hello\
11.4.1 Module Data RAM
In SCIOPTA system running in a real target CPU the module RAM memory map is defined in the linker scripts.
In the SCIOPTA SCSIM Simulator you need to declare the module RAM by a character array of the size of the
module.
Please consult chapter 15.7.6.1 “Module Data RAM” on page 15-17.