Skip to content

Latest commit

 

History

History
111 lines (91 loc) · 2.78 KB

File metadata and controls

111 lines (91 loc) · 2.78 KB

RTE, OS

Adding SWC instance

Configuration > System > Swcd_App

  1. ARXML file(App_NAME.arxml) with ARRoot
  2. Add Application Sw Component Type

Build > generate.py

  1. Add App_NAME to GenerateRte
  2. (Optional) If SWC use IOC(Inter Os Communication) port, register App_NAME at GenerateOs_Common

SWC_XXX > Runnable

  1. Add Runnable
  2. Uncheck Can Be Invoked Concurrently (to false)
  3. Change short name and symbol
  4. Add Timing Event w/ period

CSWC_RootComposition > Components and Ports

  1. Add SWC_XXX

EcuExtract > Overview

  1. Click on ECU Software Components Mapping at bottom right
  2. Click OK and check changes

EcuC module

  1. Go to All Contents
  2. Expand to
    • EcuC
      • EcucPartitionCollection
        • EcucPartition
  3. Register added SWC_XXX to EcucPartition

Assign to desired Core


SWC registration (Assigning Core, Task, Alarm)

EcuC module > All Contents

  1. EcuC -> EcucPartitionCollection > Ecuc Partition
  2. Add to Software Component Instance Ref

Os module

Sequence: Event or Alarm > Task > Application

  • Go to Task tab, create task
  • Go to Alarm tab, configure alarm
  • Application tab
    1. Double click on OsApplication_X
    2. Click Browse of App Alarm Ref
    3. Add OsAlarm
    4. Click Browse of App Task Ref
    5. Add Task

Rte module

Sw Component Instance tab

  1. Add SwcInstance reference
  2. Path to reference should start with ECU_EXTRACT, not AUTOSAR/CSWC_RootComposition**
  3. Right click, then click RteEventToTaskMapping
  4. Go to added Event To Task Mapping
  5. Set Event Ref, Mapped To Task Ref and Used Os Alarm Ref with pre-configured references

Task Mapping tab (not essential)

  1. Check position of added event in the task
    1. Go to OsTask Mapping Table
    2. Select Task
    3. Check Position in the left category
  2. Go back to Sw Component Instance tab
  3. Enter the checked position in Position In Task

SWC_XXX > Overview

Generate Code


Extended Task

Os module

Event tab

  1. Add OsEvent as amount of handler
  2. Rename and set bit mask for extended task

Task tab

  1. Add task for handling
  2. Rename, set Priority and set Stack size
  3. Click Event Ref
  4. Select and Click add button with added OsEvents

Application tab

  1. Double click on desired OsApplication on the left
  2. Click browse at the App Task Ref
  3. Select the task and click add button

Rte > Task Mapping

Event Table

  1. Select the desired Instance (SWC or BSW)
  2. Check unshaded events to map

OsTask Mapping Table

  1. Check proper option
  2. Verify the mapped Tasks (could be empty)

Mapping

  1. Select desired events
  2. Click Add

Caution

  • Application contain Tasks
  • Task contain Events
  • OsEvents are mapped to RteEvent

Changing stack size

OS > Application

  1. Change stack size