S32M LIN Stack compilation errors

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32M LIN Stack compilation errors

Jump to solution
2,300 Views
hns80
Senior Contributor I

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?

0 Kudos
Reply
1 Solution
2,232 Views
hns80
Senior Contributor I

I deleted both projects completely from my workspace, then re-imported the Lin_Slave and Lin_Master projects. Before opening the configurator, I fixed the backslash problem on the LDF source line mentioned in the original post.

I then opened the configurator, updated the code, and was able to build successfully.

Why is this line of the configurator consistently broken across all versions of this code? I see the same problem in the S32K118 implementation. 

 

View solution in original post

0 Kudos
Reply
2 Replies
2,293 Views
hns80
Senior Contributor I

I needed to add an include to lin_commontl_proto.c for the master and slave code:
#include "OsIf_Internal.h"

The master code will build now, but the slave code still has errors:

1. LINIF_IDLE is not defined

2. stacks/lin/lin_dal/src/lin_dal.c:520:23: error: 'LinIf_Channel_State' undeclared 

 

0 Kudos
Reply
2,233 Views
hns80
Senior Contributor I

I deleted both projects completely from my workspace, then re-imported the Lin_Slave and Lin_Master projects. Before opening the configurator, I fixed the backslash problem on the LDF source line mentioned in the original post.

I then opened the configurator, updated the code, and was able to build successfully.

Why is this line of the configurator consistently broken across all versions of this code? I see the same problem in the S32K118 implementation. 

 

0 Kudos
Reply