Error when I intergrate AUTOSAR OS and MCAL. Missing _TRUSTED function

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Error when I intergrate AUTOSAR OS and MCAL. Missing _TRUSTED function

2,045 次查看
deealen
Contributor II

I can compile OS and MCAL alone, but I have some errors when I intergrate these.

Error like this:

C:/GNU/GCC/gcc-arm-none-eabi-7-2018-q2/bin/arm-none-eabi-gcc.exe -c -O1 -ggdb3 -mcpu=cortex-m4 -mthumb -mlittle-endian -fomit-frame-pointer -mhard-float -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fno-common -Wall -Wextra -Wstrict-prototypes -Wno-sign-compare -Werror=implicit-function-declaration -fstack-usage -fdump-ipa-all -DEU_DISABLE_ANSILIB_CALLS -DS32K144 -DDERIVATIVE_S32K144 -DMCAL_ENABLE_USER_MODE_SUPPORT -DLINARO -DOSGCCARM -DAPPTYPESH="<sample.h>" -DOSCFGH="<OS_cfg.h>" -DOSPROPH="\"C:/Users/DeeAl/Desktop/ECU_AUTOSAR/OS/cfg/Os_prop.h\"" -DFILE_BASENAME=Can -c C:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Can_TS_T40D2M10I3R0/src/Can.c -IC:/Users/DeeAl/Desktop/ECU_AUTOSAR/inc -IC:/Users/DeeAl/Desktop/ECU_AUTOSAR/MCAL/cfg/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Adc_TS_T40D2M10I3R0/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Base_TS_T40D2M10I3R0/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Can_TS_T40D2M10I3R0/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/CanIf_TS_T40D2M10I3R0/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Det_TS_T40D2M10I3R0/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Dem_TS_T40D2M10I3R0/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Dio_TS_T40D2M10I3R0/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/EcuM_TS_T40D2M10I3R0/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Fee_TS_T40D2M10I3R0/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Fls_TS_T40D2M10I3R0/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Gpt_TS_T40D2M10I3R0/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Icu_TS_T40D2M10I3R0/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Lin_TS_T40D2M10I3R0/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/LinIf_TS_T40D2M10I3R0/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Mcl_TS_T40D2M10I3R0/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Mcu_TS_T40D2M10I3R0/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/MemIf_TS_T40D2M10I3R0/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Port_TS_T40D2M10I3R0/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Pwm_TS_T40D2M10I3R0/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Rte_TS_T40D2M10I3R0/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Spi_TS_T40D2M10I3R0/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Wdg_TS_T40D2M10I3R0/include -IC:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/WdgIf_TS_T40D2M10I3R0/include -IC:/Users/DeeAl/Desktop/ECU_AUTOSAR/OS/cfg -IC:/NXP/AUTOSAR/S32K_AUTOSAR_OS_4_0_98_RTM_1_0_0/ssc/inc -IC:/NXP/AUTOSAR/S32K_AUTOSAR_OS_4_0_98_RTM_1_0_0/ssc/other_includes -IC:/NXP/AUTOSAR/S32K_AUTOSAR_OS_4_0_98_RTM_1_0_0/ssc/hwspec -o C:/Users/DeeAl/Desktop/ECU_AUTOSAR/output/obj/Can.o
In file included from C:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Can_TS_T40D2M10I3R0/include/Can_Flexcan.h:104:0,
 from C:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Can_TS_T40D2M10I3R0/include/Can_IPW.h:86,
 from C:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Can_TS_T40D2M10I3R0/src/Can.c:111:
C:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Can_TS_T40D2M10I3R0/src/Can.c: In function 'Can_Init':
C:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Base_TS_T40D2M10I3R0/include/Mcal.h:276:0: error: implicit declaration of function 'Call_Can_FlexCan_InitController_TRUSTED'; did you mean 'Can_FlexCan_InitController'? [-Werror=implicit-function-declaration]
 #define Mcal_Trusted_Call_Return1param(name,param1) Call_##name##_TRUSTED(param1)
C:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Can_TS_T40D2M10I3R0/include/Can_IPW.h:169:0: note: in expansion of macro 'Mcal_Trusted_Call_Return1param'
 #define Can_IPW_InitController(Controller) Mcal_Trusted_Call_Return1param(Can_FlexCan_InitController,(Controller))
C:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Can_TS_T40D2M10I3R0/src/Can.c:457:0: note: in expansion of macro 'Can_IPW_InitController'
 (void)Can_IPW_InitController( can_controller);
C:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Can_TS_T40D2M10I3R0/src/Can.c: In function 'Can_SetControllerMode':
C:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Base_TS_T40D2M10I3R0/include/Mcal.h:288:0: error: implicit declaration of function 'Call_Can_FlexCan_SetControllerMode_TRUSTED'; did you mean 'Can_FlexCan_SetControllerMode'? [-Werror=implicit-function-declaration]
 #define Mcal_Trusted_Call_Return4param(name,param1,param2,param3,param4) Call_##name##_TRUSTED(param1,param2,param3,param4)
C:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Can_TS_T40D2M10I3R0/include/Can_IPW.h:180:0: note: in expansion of macro 'Mcal_Trusted_Call_Return4param'
 Mcal_Trusted_Call_Return4param(Can_FlexCan_SetControllerMode,(Controller), (pCanControlerDescriptor), (Transition), (canif_notification_required))
C:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Can_TS_T40D2M10I3R0/src/Can.c:743:0: note: in expansion of macro 'Can_IPW_SetControllerMode'
 eReturnValue = (VAR(Can_ReturnType, AUTOMATIC))Can_IPW_SetControllerMode( Controller, &(Can_pCurrentConfig->ControlerDescriptors[Controller]), Transition,(boolean)TRUE);
C:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Can_TS_T40D2M10I3R0/src/Can.c: In function 'Can_MainFunction_Mode':
C:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Base_TS_T40D2M10I3R0/include/Mcal.h:252:0: error: implicit declaration of function 'Call_Can_FlexCan_MainFunctionMode_TRUSTED'; did you mean 'Can_FlexCan_MainFunctionMode'? [-Werror=implicit-function-declaration]
 #define Mcal_Trusted_Call(name) Call_##name##_TRUSTED()
C:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Can_TS_T40D2M10I3R0/include/Can_IPW.h:229:0: note: in expansion of macro 'Mcal_Trusted_Call'
 #define Can_IPW_MainFunctionMode() Mcal_Trusted_Call(Can_FlexCan_MainFunctionMode)
C:/NXP/AUTOSAR/S32K14X_MCAL4_0_RTM_HF2_1_0_3/eclipse/plugins/Can_TS_T40D2M10I3R0/src/Can.c:2099:0: note: in expansion of macro 'Can_IPW_MainFunctionMode'
 Can_IPW_MainFunctionMode();
cc1.exe: some warnings being treated as errors
 ‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

I use:

OS: S32K_AUTOSAR_OS_4_0_98_RTM_1_0_0

MCAL: S32K14X_MCAL4_0_RTM_1_0_3

MCAL MODE=USER , USE OS

It seems miss some "_TRUSTED" functions, but I can't find any source file defined these functions. 

What should I do?

标签 (1)
0 项奖励
回复
1 回复

1,817 次查看
geweilin
Contributor II

Could you please attatch you code files packages?

0 项奖励
回复