Hello,
We have two hardware board based on S32K3 and they have different CAN Pin settings.
So I created one project with two different functional groups 'VS_0' and 'VS-1' but when I generate the code it includes both groups code and thus when I compile it, it gives linker error as follows:
c:/nxp/s32ds.3.4/s32ds/build_tools/gcc_v10.2/gcc-10.2-arm32-eabi/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/real-ld.exe: ./generate/src/FlexCAN_Ip_Sa_VS_1_PBcfg.o:C:\xbms\xbms_application\Application\Debug_FLASH/../generate/src/FlexCAN_Ip_Sa_VS_1_PBcfg.c:107: multiple definition of `FlexCAN_State0'; ./generate/src/FlexCAN_Ip_Sa_VS_0_PBcfg.o:C:\xbms\xbms_application\Application\Debug_FLASH/../generate/src/FlexCAN_Ip_Sa_VS_0_PBcfg.c:107: first defined here
c:/nxp/s32ds.3.4/s32ds/build_tools/gcc_v10.2/gcc-10.2-arm32-eabi/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/real-ld.exe: ./generate/src/FlexCAN_Ip_Sa_VS_1_PBcfg.o:C:\xbms\xbms_application\Application\Debug_FLASH/../generate/src/FlexCAN_Ip_Sa_VS_1_PBcfg.c:110: multiple definition of `FlexCAN_State1'; ./generate/src/FlexCAN_Ip_Sa_VS_0_PBcfg.o:C:\xbms\xbms_application\Application\Debug_FLASH/../generate/src/FlexCAN_Ip_Sa_VS_0_PBcfg.c:110: first defined here
Can you please guide me as what I am doing wrong.
Regards,
Hemant Kapoor