- ARXML file(App_NAME.arxml) with ARRoot
- Add Application Sw Component Type
- Add App_NAME to GenerateRte
- (Optional) If SWC use IOC(Inter Os Communication) port, register App_NAME at GenerateOs_Common
- Add Runnable
- Uncheck Can Be Invoked Concurrently (to false)
- Change short name and symbol
- Add Timing Event w/ period
- Add SWC_XXX
- Click on ECU Software Components Mapping at bottom right
- Click OK and check changes
- Go to All Contents
- Expand to
- EcuC
- EcucPartitionCollection
- EcucPartition
- EcucPartitionCollection
- EcuC
- Register added SWC_XXX to EcucPartition
Assign to desired Core
- EcuC -> EcucPartitionCollection > Ecuc Partition
- Add to Software Component Instance Ref
Sequence: Event or Alarm > Task > Application
- Go to Task tab, create task
- Go to Alarm tab, configure alarm
- Application tab
- Double click on OsApplication_X
- Click Browse of App Alarm Ref
- Add OsAlarm
- Click Browse of App Task Ref
- Add Task
Sw Component Instance tab
- Add SwcInstance reference
- Path to reference should start with ECU_EXTRACT, not AUTOSAR/CSWC_RootComposition**
- Right click, then click RteEventToTaskMapping
- Go to added Event To Task Mapping
- Set Event Ref, Mapped To Task Ref and Used Os Alarm Ref with pre-configured references
Task Mapping tab (not essential)
- Check position of added event in the task
- Go to OsTask Mapping Table
- Select Task
- Check Position in the left category
- Go back to Sw Component Instance tab
- Enter the checked position in Position In Task
Generate Code
Event tab
- Add OsEvent as amount of handler
- Rename and set bit mask for extended task
Task tab
- Add task for handling
- Rename, set Priority and set Stack size
- Click Event Ref
- Select and Click add button with added OsEvents
Application tab
- Double click on desired OsApplication on the left
- Click browse at the App Task Ref
- Select the task and click add button
Event Table
- Select the desired Instance (SWC or BSW)
- Check unshaded events to map
OsTask Mapping Table
- Check proper option
- Verify the mapped Tasks (could be empty)
Mapping
- Select desired events
- Click Add
- Application contain Tasks
- Task contain Events
- OsEvents are mapped to RteEvent
- Change stack size