Hi Sir,
I try to build s32k3 sample code.
(SDK : SW32K3_S32DS_3.4.3_D2112 / SW32K3_RTD_4.4_2.0.0_CD01_DS_updatesite_D2111)
Create Adc_example_S32K344 and got build error message.
It seems not include head file.
I also try other sample code, fail on head file not include, too.
Would you share me the solution?
===========================================================
14:46:54 **** Incremental Build of configuration Debug_FLASH for project Adc_example_S32K344 ****
make -j4 all
Building file: ../src/main.c
Building file: ../Project_Settings/Startup_Code/exceptions.c
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@src/main.args" -MMD -MP -MF"src/main.d" -MT"src/main.o" -o "src/main.o" "../src/main.c"
Invoking: Standard S32DS C Compiler
Building file: ../Project_Settings/Startup_Code/system.c
arm-none-eabi-gcc "@Project_Settings/Startup_Code/exceptions.args" -MMD -MP -MF"Project_Settings/Startup_Code/exceptions.d" -MT"Project_Settings/Startup_Code/exceptions.o" -o "Project_Settings/Startup_Code/exceptions.o" "../Project_Settings/Startup_Code/exceptions.c"
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@Project_Settings/Startup_Code/exceptions.args" -MMD -MP -MF"Project_Settings/Startup_Code/system.d" -MT"Project_Settings/Startup_Code/system.o" -o "Project_Settings/Startup_Code/system.o" "../Project_Settings/Startup_Code/system.c"
../src/main.c:26:10: fatal error: Adc.h: No such file or directory
26 | #include "Adc.h"
| ^~~~~~~
compilation terminated.
make: *** [src/subdir.mk:20: src/main.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from C:/NXP/S32DS.3.4/S32DS/software/PlatformSDK_S32K3_2021_11_CD01/SW32K3_RTD_4_4_2_0_0_D2111_CD01/Base_TS_T40D34M20I0R0/include/Mcal.h:66,
from ../Project_Settings/Startup_Code/exceptions.c:30:
C:/NXP/S32DS.3.4/S32DS/software/PlatformSDK_S32K3_2021_11_CD01/SW32K3_RTD_4_4_2_0_0_D2111_CD01/Base_TS_T40D34M20I0R0/include/OsIf_Internal.h:46:10: fatal error: OsIf_Cfg.h: No such file or directory
46 | #include "OsIf_Cfg.h"
| ^~~~~~~~~~~~
compilation terminated.
make: *** [Project_Settings/Startup_Code/subdir.mk:42: Project_Settings/Startup_Code/exceptions.o] Error 1
In file included from C:/NXP/S32DS.3.4/S32DS/software/PlatformSDK_S32K3_2021_11_CD01/SW32K3_RTD_4_4_2_0_0_D2111_CD01/Base_TS_T40D34M20I0R0/include/Mcal.h:66,
from ../Project_Settings/Startup_Code/system.c:36:
C:/NXP/S32DS.3.4/S32DS/software/PlatformSDK_S32K3_2021_11_CD01/SW32K3_RTD_4_4_2_0_0_D2111_CD01/Base_TS_T40D34M20I0R0/include/OsIf_Internal.h:46:10: fatal error: OsIf_Cfg.h: No such file or directory
46 | #include "OsIf_Cfg.h"
| ^~~~~~~~~~~~
compilation terminated.
make: *** [Project_Settings/Startup_Code/subdir.mk:42: Project_Settings/Startup_Code/system.o] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.
14:46:55 Build Failed. 7 errors, 0 warnings. (took 816ms)
==========================================================================
Hi@StephenYeh,
Use this example instead: Adc_Sar_Bctu_Ip_example_S32K344
It is without MCAL autosar drivers.
BR, Daniel