メインコンテンツまでスキップ

Appendix

What You Will Do​

This appendix is reference material, not a chapter you follow along with. Use it to review your design or to find which value belongs to which chapter.

All Values​

Chapters 1 to 3​

ChapterElementValue
SystemProject, ECU nodeVehicleDesign, ECU (from the AUTOSAR System Tutorial)
1Composition (NAME, AS PROTOTYPE)ECU, mapped to ECU [ECU]
2Data typeSpeedType, ALIAS, BASETYPE uint16
3Sender-receiver interfaceIfSpeed, data element speed of SpeedType
3Client-server interfaceIfScale, operation GetScale, argument scale, OUT, SpeedType

Chapters 4 and 5​

SW-CPortKindInterfaceSetting
SwcSensorPpSpeedPPortIfSpeedNON-QUEUED
SwcSensorRpScaleRPortIfScaleCLIENT
SwcActuatorRpSpeedRPortIfSpeedNON-QUEUED
SwcActuatorPpScalePPortIfScaleSERVER
RunnableAccess pointRTE event
Sensor_CyclicRte_Write_PpSpeed_speed, Rte_Call_RpScale_GetScaleTimingEvent SensorCyclicTiming, 0.02 s
Actuator_InitInitEvent ActuatorInitEvent
Actuator_OnDataRte_Read_RpSpeed_speedDataReceivedEvent ActuatorOnDataEvent, RpSpeed / speed
Actuator_GetScale (TRUE under CAN BE INVOKED)OperationInvokedEvent ActuatorGetScaleEvent, PpScale / GetScale

Connectors: Assembly_SwcSensor_PpSpeed_SwcActuator_RpSpeed, Assembly_SwcActuator_PpScale_SwcSensor_RpScale.

Chapter 6​

ElementValue
BSW modulesThe suggested selection of PRTE Platform Import, with the CAN stack Can, CanIf, CanSM, ComM, Com, PduR and LSduR, plus CanNm and Nm, which you select
ECU Configuration [ECU] windowClosed with Esc, not applied
EcuM, BswM, Mcu, DetEntered by hand from the tables of PRTE Setup; among them BswMNmEnabled TRUE in BswMGeneral and EcuMDriverInitListOne with McuInit, BswMPreInit, CanInit, CanIfInit, LSduRInit, PduRInit, ComInit, CanNmInit, NmInit, ComMInit and CanSMInit
Rte values fileVehicleDesign_Rte.arxml, All → Use Imported on Rte (1 replaced)
Rte from the Rte values fileThe SW-C type and instance pairs, BswMInstance/RteEventToTaskMapping_0 (RteEventRef to BswMPollTiming), RteBswModuleInstance_0, _3, _4, _5, _6, each with RteBswExclusiveAreaImpl_0

Chapter 7​

Os containerValue
OsOSOsStatus EXTENDED; OsStackMonitoring, OsUseGetServiceId, OsUseParameterAccess TRUE
OsOS/OsHooksThe five hooks FALSE
OSDEFAULTAPPMODE (OsAppMode)No value
RES_AUTOSAR_ECUM (OsResource)OsResourceProperty STANDARD
OsCounter_0OsCounterMaxAllowedValue 1000000, OsCounterMinCycle 1, OsCounterTicksPerBase 1, OsCounterType HARDWARE, OsSecondsPerTick 0.01

Every task has OsTaskActivation 1, OsTaskSchedule FULL and OsTaskStackSize 32768. Every alarm has OsAlarmCounterRef Os/OsCounter_0.

TaskOsTaskPeriodOsTaskPriorityActivated by
OsTask_00.012OsAlarm_0
OsTask_EcuMStartupEmpty3OsTaskAutostart in Os/OSDEFAULTAPPMODE
OsTask_20.021OsAlarm_1
OsTask_30.011OsAlarm_2

Chapter 8​

Rte containerValue
RteGenerationRteCodeVendorId 79
RteBswGeneralAdded, no value
RteInitializationBehavior_0RteInitializationStrategy RTE_INITIALIZATION_STRATEGY_AT_DATA_DECLARATION, RteSectionInitializationPolicy INIT
EcuMInstance/RteModeMachineInstanceConfig_0RteModeMachineQueueLength 1, RteSwcModeManagerRef PortInterface/ModeSwitch/EcuM_CurrentMode/currentMode, Context Refs SwComponentType/Atomic/Service/EcuM/currentMode
RteOsInteraction/RteUsedOsActivation_0, _1, _2RteExpectedActivationOffset 0, RteExpectedTickDuration 0.01, RteActivationOsAlarmRef Os/OsAlarm_0, Os/OsAlarm_1, Os/OsAlarm_2
RteBswModuleInstance_0 to _7RteBswImplementationRef of BswM, EcuM, Can, CanIf, CanSM, ComM, Com, CanNm in this order; _1, _2 and _7 added with "+"; the others from the Rte values file, with RteExclusiveAreaImplMechanism ALL_INTERRUPT_BLOCKING. Nm has no instance

Every mapping has its mapped-to-task flag TRUE. ActuatorGetScaleEvent is not mapped.

EventTaskAlarmPosition
SensorCyclicTimingOs/OsTask_2Os/OsAlarm_1-
ActuatorInitEventOs/OsTask_3-2
ActuatorOnDataEventOs/OsTask_3-1
BswMPollTiming (Rte values file)Os/OsTask_3Os/OsAlarm_20
The twelve BSW main function events of BswM, EcuM, Can (five), CanSM, ComM, Com (two), CanNmOs/OsTask_0Os/OsAlarm_02 to 13

Chapter 9​

ModuleValue
EcuCEcucConfigSet/EcucPduCollection (PduIdTypeEnum UINT16, PduLengthTypeEnum UINT32) with PduNmTx and PduNmRx (PduLength 8), EcucHardware/Core0 (EcucCoreId 0)
CanCanGeneral (CanIndex 0, CanMainFunctionModePeriod 0.01, CanTimeoutDuration 0.001), CanConfigSet/CanController_0 (CanControllerId 0, processing POLLING, CanCpuClockRef Mcu/McuModuleConfiguration/Default/CoreClock), CanControllerBaudrateConfig_0 (CanControllerBaudRate 500), CanHardwareObject_0 (TRANSMIT) and CanHardwareObject_1 (RECEIVE)
CanIfCanIfPublicCfg (CanIfPublicHandleTypeEnum UINT16, CanIfPublicTxConfirmPollingSupport and CanIfPublicTxBuffering TRUE), CanIfPrivateCfg (LINEAR), CanIfDispatchCfg (both CAN_SM), CanIfInitCfg (CanIf_Config) with CanIfInitHohCfg_0, CanIfCtrlDrvCfg_0 with CanIfCtrlCfg_0 (→ CanController_0)
CanIfCanIfHthCfg_0 (→ CanHardwareObject_0), CanIfHrhCfg_0 (→ CanHardwareObject_1), CanIfBufferCfg_0 (CanIfBufferSize 1, → CanIfHthCfg_0), CanIfTxPduCfg_0 (1281 = 0x501, → PduNmTx), CanIfRxPduCfg_0 (1282 = 0x502, → PduNmRx)
ComMComMGeneral, ComMConfigSet/ComMChannel_0 (COMM_BUS_TYPE_CAN, ComMChannelId 0), ComMNetworkManagement (ComMNmVariant FULL)
CanSMCanSMGeneral (0.01), CanSMConfiguration (3, 0.02), CanSMManagerNetwork_0 (2, 0.1, 0.2, 0.1, TRUE, → ComMChannel_0), CanSMController_0 (→ CanIfCtrlCfg_0)
NmNmGlobalConfig with NmGlobalConstants (NmNumberOfChannels 1), NmGlobalFeatures (eight items FALSE), NmGlobalProperties (NmCycletimeMainFunction 0.01); NmChannelConfig_0 (four items FALSE, → ComMChannel_0) with NmBusType/NmStandardBusNmConfig (NM_BUSNM_CANNM)
CanNmCanNmGlobalConfig (thirteen items FALSE, CanNmMainFunctionPeriod 0.01), CanNmChannelConfig_0 (CanNmMsgCycleTime 0.1, CanNmTimeoutTime 1.0, CanNmNodeId 1, CanNmNodeIdEnabled TRUE, CanNmCarWakeUpFilterEnabled no value, → ComMChannel_0), CanNmRxPdu_0 (→ PduNmRx), CanNmTxPdu (→ PduNmTx)
LSduRLSduRGeneral (LSduRMetaDataSupport, LSduRZeroCostOperation FALSE), LSduRConfig
LSduRLSduRBswModules_0 (ECU/CanIf, LSduRLowerModule TRUE), LSduRBswModules_1 (ECU/CanNm, LSduRUpperModule TRUE); both TRUE on LSduRRxIndication, LSduRTransmit, LSduRTxConfirmation
LSduRLSduRPath_0 (0, source and destination PduNmRx), LSduRPath_1 (1, source and destination PduNmTx)
PduRPduRGeneral (PduRZeroCostOperation FALSE), PduRRoutingPaths (PduRConfigurationId 0)
ComComGeneral (ComSupportedIPduGroups 0), ComConfig with ComMainFunctionRx (ComMainRxTimeBase 0.01) and ComMainFunctionTx (ComMainTxTimeBase 0.01)

The full lists of items are in each chapter's tables. Network management lives only in the ECU configuration: the System tutorial keeps NM off on CanCluster and has no NM frame, so the NM PDUs and their CAN ids exist only in EcuC and CanIf (Communication Configuration).

Generated Code​

Validation and Code Generation ends with COMPLETE and 99 file(s) generated under code/ECU/, four INFO rows and no warning or error. The MODULE_SET row lists 15 modules: Mcu, EcuM, BswM, Rte, Os, Can, CanIf, PduR, Com, ComM, CanSM, CanNm, Nm, LSduR, Det.

Path under code/ECU/ContentWho owns it
gen/The generated RTE and BSW configurationThe generator, which rewrites it on each run
src/SwcSensor.c, SwcActuator.c and the EcuM start-up files EcuM_StartupTask.c and EcuM_Callout_Stubs.cYou. Created once, never overwritten
include/SwcSensor.h, SwcActuator.hYou
CMakeLists.txtThe build descriptionYou. Created once

Common Problems​

SymptomCauseWhere to fix it
The ECU icon is missing inside the compositionThe composition is not mapped to a nodeComposition and ECU Mapping
BSW values you entered were overwrittenPRTE AUTO CONFIGURATION, the PRTE Auto Configuration icon or Auto-Generate was pressed, or the ECU Configuration window was applied with Ctrl+SDo not press them; close the window with Esc. PRTE Setup
Generation stops with MANDATORY_MODULE_MISSINGOne of Os, Rte, EcuM, BswM, Mcu has no configurationPRTE Setup, Os Configuration
The EcuM of PRTE Setup does not find its application mode or resourceThe names are not exactly OSDEFAULTAPPMODE and RES_AUTOSAR_ECUMOs Configuration
src/EcuM_StartupTask.c is not writtenThe start-up task is not named exactly OsTask_EcuMStartupOs Configuration
Generation stops with RTE_EVENT_MAPPING_TASK_FLAG_MISMATCH or RTE_BSW_EVENT_MAPPING_TASK_FLAG_MISMATCHRteEventIsMappedToTask or RteBswEventIsMappedToTask is still the FALSE that "+" wroteRte Configuration
Generation stops with RTE_BSW_INSTANCE_MISSINGCanNm has a main function but no RteBswModuleInstance_7Rte Configuration
Generation stops with RTE_CS_SERVER_UNMAPPED_NOT_CONCURRENTActuator_GetScale is not set to TRUEInternal Behavior
EcuC holds the PDUs but no Core0EcuC needs the core Core0 (EcucCoreId 0) as soon as it holds anythingCommunication Configuration
Generation stops with CANIF_BUFFERING_GATE_INCONSISTENTCanIfPublicTxBuffering is not TRUE, while the transmit PDU uses CanIfBufferCfg_0Communication Configuration
A TRUE or FALSE value is empty and its row has a red borderThe button was already selected, and clicking it again cleared the valueClick the same button once more. Communication Configuration
ComMNmVariant is not FULLThis ECU runs CanNm, so it must stay the FULL that "+" writesCommunication Configuration
A reference to ComMChannel_0 in CanSM, Nm or CanNm has nothing to pickComM was not configured firstCommunication Configuration
Generation stops on an empty TRUE/FALSE item of Nm or CanNmMany of these items have no default value, so "+" leaves them emptyClick FALSE on each, or TRUE where the table says so. Communication Configuration
Generation stops with CANNM_CARWAKEUP_LAYOUTCanNmCarWakeUpFilterEnabled still holds the value "+" wroteClick its selected button once more to clear it. Communication Configuration
Generation stops with LSDUR_PATH_SOURCE_UNRESOLVEDLSduRBswModuleRef was typed instead of picked from the listPick ECU/CanIf and ECU/CanNm from the dropdown. Communication Configuration
Generated code is marked with a header not found, such as Rte.hThe SDK headers are in the vECU, not on your computer, so a window on your computer cannot resolve themValidation and Code Generation