做網(wǎng)站3個(gè)月搜索引擎營(yíng)銷流程是什么?
目錄
- 關(guān)鍵詞
- 平臺(tái)說(shuō)明
- 背景
- 一、配置DcmDspDataInfos
- 二、配置DcmDspDatas
- 三、創(chuàng)建DcmDspDidInfos
- 四、創(chuàng)建DcmDspDids
- 五、總覽
- 六、創(chuàng)建一個(gè)ASWC
- 七、mapping DCM port
- 八、打開(kāi)davinci developer,創(chuàng)建runnabl
- 九、生成代碼
??
關(guān)鍵詞
嵌入式、C語(yǔ)言、autosar、OS、BSW、UDS、diagnostic
平臺(tái)說(shuō)明
項(xiàng)目 | Value |
---|---|
OS | autosar OS |
autosar廠商 | vector , EB |
芯片廠商 | TI 英飛凌 |
編程語(yǔ)言 | C,C++ |
編譯器 | HighTec (GCC) |
autosar版本 | 4.3.1 |
參考文檔 | TechnicalReference_Dcm.pdf AUTOSAR_SRS_DiagnosticLogAndTrace.pdf AUTOSAR_SWS_DiagnosticCommunicationManager.pdf AUTOSAR_SWS_DiagnosticEventManager.pdf AUTOSAR_SWS_FunctionInhibitionManager.pdf- 【14229-1.2.3】,【15765-1.2.3.4】. 【11898】 |
??
??
>>>>>>>>>>>>>>>>>>>>>>>>>回到總目錄<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
??
??
縮寫(xiě) | 描述 |
---|---|
DEM | Diagnostic Event Manager |
DET | Development Error Tracer |
DDM | Diagnostic Data Modifier |
DCM | Diagnostic Communication Manager |
LSB | least significant byte |
MSB | most significant byte |
背景
??項(xiàng)目已經(jīng)導(dǎo)入過(guò)CDD文件,有基礎(chǔ)的的DSD,DSL,DSP配置。 可以通過(guò)編寫(xiě)CDD文件實(shí)現(xiàn)本文的功能,這里將手動(dòng)配置。
??以0XF1 90 為例。
一、配置DcmDspDataInfos
??
二、配置DcmDspDatas
??
三、創(chuàng)建DcmDspDidInfos
??
四、創(chuàng)建DcmDspDids
??
五、總覽
??可在左側(cè)功能欄快捷窗口 Daignostatics中總覽。
六、創(chuàng)建一個(gè)ASWC
??在davinci developer中創(chuàng)建一個(gè)ASWC 用于所有診斷相關(guān)的服務(wù)操作。這里創(chuàng)建CtDiagHandler,保存同步到CFG中,然后關(guān)閉davinci developer軟件。
七、mapping DCM port
??
八、打開(kāi)davinci developer,創(chuàng)建runnabl
??
九、生成代碼
??在Dcm_Lcfg.c中:
,{ ((Dcm_DidMgrOpFuncType)(Rte_Call_DataServices_Data_F190_VehicleIdentificationNumber_ReadData)), 17u, 17u,0x0002u} /* DID: 0xF190 */ /* PRQA S 0313 */ /* MD_Dcm_0313 */
??在Rte_Dcm.h中:
# define Rte_Call_DataServices_Data_F190_VehicleIdentificationNumber_ReadData DataServices_Data_F190_VehicleIdentificationNumber_ReadData
??在CtDiagHandler.c中:
FUNC(Std_ReturnType, CtDiagHandler_CODE) DataServices_Data_F190_VehicleIdentificationNumber_ReadData(Dcm_OpStatusType OpStatus, P2VAR(uint8, AUTOMATIC, RTE_CTDIAGHANDLER_APPL_VAR) Data) /* PRQA S 0624, 3206 */ /* MD_Rte_0624, MD_Rte_3206 */
{
/*********************************************************************************************************************** DO NOT CHANGE THIS COMMENT! << Start of runnable implementation >> DO NOT CHANGE THIS COMMENT!* Symbol: DataServices_Data_F190_VehicleIdentificationNumber_ReadData (returns application error)*********************************************************************************************************************/Std_ReturnType ret = E_NOT_OK;uint8 VIN_number = 17U;uint8 i;// Read default valuefor (i = 0; i < VIN_number ; i++){Data[i] = 0x00; }return RTE_E_OK;/*********************************************************************************************************************** DO NOT CHANGE THIS COMMENT! << End of runnable implementation >> DO NOT CHANGE THIS COMMENT!*********************************************************************************************************************/
}
??
??
>>>>>>>>>>>>>>>>>>>>>>>>>回到總目錄<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
??
??