I am using S32DS 3.5 and S32M24 RTD 2.0.0 and installed the S32K1_S32M24X_LINSTACK_RTM_1_0_2_D2308_updatesite.zip.
I imported the master and slave examples, fixed the backslash problem in the mex file (<setting name="LDFRelativePath" value="src\LIN21.ldf"/>), and generated the configuration code.
Neither project will build.
The slave code has these errors:
Description Resource Path Location Type
'LinIf_Channel_State' undeclared (first use in this function) lin_dal.c /Lin_Slave_S32M244_Example_DS/stacks/lin/lin_dal/src line 520 C/C++ Problem
'LINIF_IDLE' undeclared (first use in this function); did you mean 'LINIF_CODE'? lin_dal.c /Lin_Slave_S32M244_Example_DS/stacks/lin/lin_dal/src line 520 C/C++ Problem
Field 'lin_baudrate_adjusted_flg' could not be resolved lin_dal.c /Lin_Slave_S32M244_Example_DS/stacks/lin/lin_dal/src line 199 Semantic Error
Field 'lin_max_frame_res_timeout_val' could not be resolved lin_dal.c /Lin_Slave_S32M244_Example_DS/stacks/lin/lin_dal/src line 193 Semantic Error
Field 'lin_protocol_state' could not be resolved lin_dal.c /Lin_Slave_S32M244_Example_DS/stacks/lin/lin_dal/src line 172 Semantic Error
Field 'lin_protocol_state' could not be resolved lin_dal.c /Lin_Slave_S32M244_Example_DS/stacks/lin/lin_dal/src line 438 Semantic Error
Field 'lin_protocol_state' could not be resolved lin_dal.c /Lin_Slave_S32M244_Example_DS/stacks/lin/lin_dal/src line 443 Semantic Error
Field 'lin_protocol_state' could not be resolved lin_dal.c /Lin_Slave_S32M244_Example_DS/stacks/lin/lin_dal/src line 488 Semantic Error
Field 'lin_virtual_interface' could not be resolved lin_dal.c /Lin_Slave_S32M244_Example_DS/stacks/lin/lin_dal/src line 128 Semantic Error
Field 'lin_virtual_interface' could not be resolved lin_dal.c /Lin_Slave_S32M244_Example_DS/stacks/lin/lin_dal/src line 146 Semantic Error
Field 'lin_virtual_interface' could not be resolved lin_dal.c /Lin_Slave_S32M244_Example_DS/stacks/lin/lin_dal/src line 176 Semantic Error
Field 'lin_virtual_interface' could not be resolved lin_dal.c /Lin_Slave_S32M244_Example_DS/stacks/lin/lin_dal/src line 181 Semantic Error
Field 'lin_virtual_interface' could not be resolved lin_dal.c /Lin_Slave_S32M244_Example_DS/stacks/lin/lin_dal/src line 302 Semantic Error
Field 'lin_virtual_interface' could not be resolved lin_dal.c /Lin_Slave_S32M244_Example_DS/stacks/lin/lin_dal/src line 411 Semantic Error
Field 'lin_virtual_interface' could not be resolved lin_dal.c /Lin_Slave_S32M244_Example_DS/stacks/lin/lin_dal/src line 489 Semantic Error
Field 'max_idle_timeout_cnt' could not be resolved lin_dal.c /Lin_Slave_S32M244_Example_DS/stacks/lin/lin_dal/src line 528 Semantic Error
Field 'response_buffer_ptr' could not be resolved lin_dal.c /Lin_Slave_S32M244_Example_DS/stacks/lin/lin_dal/src line 443 Semantic Error
Field 'response_length' could not be resolved lin_dal.c /Lin_Slave_S32M244_Example_DS/stacks/lin/lin_dal/src line 438 Semantic Error
implicit declaration of function 'OsIf_ResumeAllInterrupts' [-Werror=implicit-function-declaration] lin_commontl_proto.c /Lin_Master_S32M244_Example_DS/stacks/lin/src line 1241 C/C++ Problem
implicit declaration of function 'OsIf_ResumeAllInterrupts' [-Werror=implicit-function-declaration] lin_commontl_proto.c /Lin_Slave_S32M244_Example_DS/stacks/lin/src line 1241 C/C++ Problem
implicit declaration of function 'OsIf_SuspendAllInterrupts' [-Werror=implicit-function-declaration] lin_commontl_proto.c /Lin_Master_S32M244_Example_DS/stacks/lin/src line 1172 C/C++ Problem
implicit declaration of function 'OsIf_SuspendAllInterrupts' [-Werror=implicit-function-declaration] lin_commontl_proto.c /Lin_Slave_S32M244_Example_DS/stacks/lin/src line 1172 C/C++ Problem
make: *** [stacks/lin/lin_dal/src/subdir.mk:20: stacks/lin/lin_dal/src/lin_dal.o] Error 1 Lin_Slave_S32M244_Example_DS C/C++ Problem
make: *** [stacks/lin/src/subdir.mk:36: stacks/lin/src/lin_commontl_proto.o] Error 1 Lin_Master_S32M244_Example_DS C/C++ Problem
make: *** [stacks/lin/src/subdir.mk:36: stacks/lin/src/lin_commontl_proto.o] Error 1 Lin_Slave_S32M244_Example_DS C/C++ Problem
make: *** Waiting for unfinished jobs.... Lin_Master_S32M244_Example_DS C/C++ Problem
make: *** Waiting for unfinished jobs.... Lin_Slave_S32M244_Example_DS C/C++ Problem
Symbol 'LinIf_Channel_State' could not be resolved lin_dal.c /Lin_Slave_S32M244_Example_DS/stacks/lin/lin_dal/src line 520 Semantic Error
Symbol 'LINIF_IDLE' could not be resolved lin_dal.c /Lin_Slave_S32M244_Example_DS/stacks/lin/lin_dal/src line 520 Semantic Error
The master code has fewer errors:
Description Resource Path Location Type
implicit declaration of function 'OsIf_ResumeAllInterrupts' [-Werror=implicit-function-declaration] lin_commontl_proto.c /Lin_Master_S32M244_Example_DS/stacks/lin/src line 1241 C/C++ Problem
implicit declaration of function 'OsIf_SuspendAllInterrupts' [-Werror=implicit-function-declaration] lin_commontl_proto.c /Lin_Master_S32M244_Example_DS/stacks/lin/src line 1172 C/C++ Problem
How can these errors be resolved?