arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Pit_Ip_PBcfg.d" -MT"generate/src/Pit_Ip_PBcfg.o" -o "generate/src/Pit_Ip_PBcfg.o" "../generate/src/Pit_Ip_PBcfg.c"
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Gpt_Cfg.d" -MT"generate/src/Gpt_Cfg.o" -o "generate/src/Gpt_Cfg.o" "../generate/src/Gpt_Cfg.c"
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Gpt_Ipw_PBcfg.d" -MT"generate/src/Gpt_Ipw_PBcfg.o" -o "generate/src/Gpt_Ipw_PBcfg.o" "../generate/src/Gpt_Ipw_PBcfg.c"
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Gpt_PBcfg.d" -MT"generate/src/Gpt_PBcfg.o" -o "generate/src/Gpt_PBcfg.o" "../generate/src/Gpt_PBcfg.c"
In file included from ../generate/src/Dio_Cfg.c:429:
C:/NXP/S32DS.3.5/S32DS/software/PlatformSDK_S32XX_4_0_0/RTD/BaseNXP_TS_T40D11M40I2R0/include/Dio_MemMap.h:6475:13: error: expected ',' or ';' before '#pragma'
6475 | #pragma GCC section rodata
| ^~~
#ifdef DIO_STOP_SEC_CONFIG_DATA_UNSPECIFIED
/**
* @file Dio_MemMap.h
*/
#ifdef ENTERED_DIO_START_SEC_CONFIG_DATA_UNSPECIFIED
#undef ENTERED_DIO_START_SEC_CONFIG_DATA_UNSPECIFIED
#else
#error "MemMap.h, no valid matching start-stop section defined."
#endif
#ifdef MEMMAP_MATCH_ERROR
#undef MEMMAP_MATCH_ERROR
#endif
#undef DIO_STOP_SEC_CONFIG_DATA_UNSPECIFIED
/**
* @file Dio_MemMap.h
*/
#undef MEMMAP_ERROR
#pragma GCC section rodata
#endif
the line of #pragma no specify the strings of rodata name?
Hello, @jun13_chen
Thanks for the reply.
I have tested it but feel sorry that I am not able to reproduce the issue from my side, the only difference here is that I was using S32DS3.5.3, instead of 3.5.13 as you mentioned.
From the “S32G Real-Time Drivers AUTOSAR 4.4 Version 4.0.2 P12 release notes”, it is delivered as an Update Site for S32 Design Studio "S32 Design Studio IDE 3.5 - Update 3" and the Configuration components were developed using "S32 Design Studio IDE 3.5 - Update 3", as a result, I suggest using S32DS 3.5.3 for another trial.
Sorry for your inconvenience.
BR
Chenyin
Hi, @jun13_chen
Thanks for the post.
May I know if you had made some modification on the example? I just installed this version RTD to the S32DS3.5.3, built with the example you mentioned, but no issue found during the compilation.
From the description, you were setting it with EB but not S32DS, right?
BR
Chenyin
I not modify any code of the project. I create project with S32DS following version.
S32 Design Studio for S32 Platform
Version: 3.5
Build id: 240726 (Update 13)
Copyright 2017-2024 NXP
13:08:51 **** Clean-only build of configuration Debug_RAM for project Platform_Multicore_SingleElf_Example_S32G3XX ****
make -j16 clean
rm -rf ./*
13:08:52 Build Finished. 0 errors, 0 warnings. (took 1s.455ms)
13:08:52 **** Incremental Build of configuration Debug_RAM for project Platform_Multicore_SingleElf_Example_S32G3XX ****
make -j16 all
Building file: ../src/main.c
Building file: ../generate/src/Clock_Ip_Cfg.c
Building file: ../generate/src/Clock_Ip_PBcfg.c
Invoking: Standard S32DS C Compiler
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
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Clock_Ip_Cfg.d" -MT"generate/src/Clock_Ip_Cfg.o" -o "generate/src/Clock_Ip_Cfg.o" "../generate/src/Clock_Ip_Cfg.c"
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Clock_Ip_PBcfg.d" -MT"generate/src/Clock_Ip_PBcfg.o" -o "generate/src/Clock_Ip_PBcfg.o" "../generate/src/Clock_Ip_PBcfg.c"
Building file: ../generate/src/Dio_Cfg.c
Building file: ../generate/src/Ftm_Gpt_Ip_PBcfg.c
Building file: ../generate/src/Gpt_Cfg.c
Invoking: Standard S32DS C Compiler
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Dio_Cfg.d" -MT"generate/src/Dio_Cfg.o" -o "generate/src/Dio_Cfg.o" "../generate/src/Dio_Cfg.c"
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Ftm_Gpt_Ip_PBcfg.d" -MT"generate/src/Ftm_Gpt_Ip_PBcfg.o" -o "generate/src/Ftm_Gpt_Ip_PBcfg.o" "../generate/src/Ftm_Gpt_Ip_PBcfg.c"
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Gpt_Cfg.d" -MT"generate/src/Gpt_Cfg.o" -o "generate/src/Gpt_Cfg.o" "../generate/src/Gpt_Cfg.c"
Building file: ../generate/src/Gpt_Ipw_PBcfg.c
In file included from ../generate/src/Dio_Cfg.c:429:
C:/NXP/S32DS.3.5/S32DS/software/PlatformSDK_S32XX_4_0_0/RTD/BaseNXP_TS_T40D11M40I2R0/include/Dio_MemMap.h:6475:13: error: expected ',' or ';' before '#pragma'
Building file: ../generate/src/Gpt_PBcfg.c
6475 | #pragma GCC section rodata
Building file: ../generate/src/IntCtrl_Ip_Cfg.c
| ^~~
Invoking: Standard S32DS C Compiler
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Gpt_Ipw_PBcfg.d" -MT"generate/src/Gpt_Ipw_PBcfg.o" -o "generate/src/Gpt_Ipw_PBcfg.o" "../generate/src/Gpt_Ipw_PBcfg.c"
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Gpt_PBcfg.d" -MT"generate/src/Gpt_PBcfg.o" -o "generate/src/Gpt_PBcfg.o" "../generate/src/Gpt_PBcfg.c"
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/IntCtrl_Ip_Cfg.d" -MT"generate/src/IntCtrl_Ip_Cfg.o" -o "generate/src/IntCtrl_Ip_Cfg.o" "../generate/src/IntCtrl_Ip_Cfg.c"
Building file: ../generate/src/Mcu_Cfg.c
Building file: ../generate/src/Mcu_PBcfg.c
Invoking: Standard S32DS C Compiler
Building file: ../generate/src/OsIf_Cfg.c
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Mcu_Cfg.d" -MT"generate/src/Mcu_Cfg.o" -o "generate/src/Mcu_Cfg.o" "../generate/src/Mcu_Cfg.c"
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Mcu_PBcfg.d" -MT"generate/src/Mcu_PBcfg.o" -o "generate/src/Mcu_PBcfg.o" "../generate/src/Mcu_PBcfg.c"
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/OsIf_Cfg.d" -MT"generate/src/OsIf_Cfg.o" -o "generate/src/OsIf_Cfg.o" "../generate/src/OsIf_Cfg.c"
Building file: ../generate/src/Pit_Ip_PBcfg.c
Building file: ../generate/src/Platform_Cfg.c
Invoking: Standard S32DS C Compiler
make: *** [generate/src/subdir.mk:84: generate/src/Dio_Cfg.o] Error 1
make: *** Waiting for unfinished jobs....
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Pit_Ip_PBcfg.d" -MT"generate/src/Pit_Ip_PBcfg.o" -o "generate/src/Pit_Ip_PBcfg.o" "../generate/src/Pit_Ip_PBcfg.c"
Building file: ../generate/src/Platform_Ipw_Cfg.c
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Platform_Cfg.d" -MT"generate/src/Platform_Cfg.o" -o "generate/src/Platform_Cfg.o" "../generate/src/Platform_Cfg.c"
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Platform_Ipw_Cfg.d" -MT"generate/src/Platform_Ipw_Cfg.o" -o "generate/src/Platform_Ipw_Cfg.o" "../generate/src/Platform_Ipw_Cfg.c"
Finished building: ../generate/src/Gpt_Cfg.c
Finished building: ../generate/src/Clock_Ip_Cfg.c
Finished building: ../generate/src/Clock_Ip_PBcfg.c
Finished building: ../generate/src/Ftm_Gpt_Ip_PBcfg.c
Finished building: ../generate/src/Gpt_Ipw_PBcfg.c
Finished building: ../generate/src/Gpt_PBcfg.c
Finished building: ../generate/src/IntCtrl_Ip_Cfg.c
Finished building: ../generate/src/OsIf_Cfg.c
Finished building: ../src/main.c
Finished building: ../generate/src/Mcu_Cfg.c
Finished building: ../generate/src/Mcu_PBcfg.c
Finished building: ../generate/src/Pit_Ip_PBcfg.c
Finished building: ../generate/src/Platform_Cfg.c
Finished building: ../generate/src/Platform_Ipw_Cfg.c
"make -j16 all" terminated with exit code 2. Build might be incomplete.
13:08:56 Build Failed. 3 errors, 0 warnings. (took 3s.891ms)
the example of Platform_Multicore_SingleElf_Example_S32G3XX
Release Name: S32 Real-Time Driver AUTOSAR 4.4 Version 4.0.2 Patch 12
Description: NXP Automotive Realtime Drivers package including support AUTOSAR 4.4 and non-AUTOSAR with EB Tresos and S32 Configuration Tool
Release Date: 31 Jul 2024