zephyr bulid on s32r418aaevb_a53

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

zephyr bulid on s32r418aaevb_a53

Jump to solution
667 Views
sinetech
Contributor II

I got some errors when step SW32R41_AZ_2.7.2_0.9.0_D2208__User_Manual.pdf buliding the Hello World Sample, Please help me, thanks.


C:\zephyr_pro\zephyrproject\zephyr>west build -p auto -b s32r418aaevb_a53 samples/hello_world
[1/52] Building C object modules/hal_nxp/hal_nxp/s32_rtd/s32r/CMakeFiles/...R41_example_project/RTD/src/OsIf_Timer_System_Internal_GenericTimer.c.ob
FAILED: modules/hal_nxp/hal_nxp/s32_rtd/s32r/CMakeFiles/..__modules__hal__nxp__s32_rtd__s32r.dir/C_/Users/EPT/workspaceS32DS.3.5/S32R41_example_project/RTD/src/OsIf_Timer_System_Internal_GenericTimer.c.obj
D:\NXP\S32DS.3.5\S32DS\build_tools\gcc_v9.2\gcc-9.2-arm64-eabi\bin\aarch64-none-elf-gcc.exe -DCPU_CORTEX_A53 -DKERNEL -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/zephyr_pro/zephyrproject/zephyr/include -IC:/zephyr_pro/zephyrproject/zephyr/build/zephyr/include/generated -IC:/zephyr_pro/zephyrproject/zephyr/soc/arm64/nxp_s32/s32r -IC:/zephyr_pro/zephyrproject/modules/hal/cmsis/CMSIS/Core_A/Include -ID:/NXP/S32DS.3.5/S32DS/software/PlatformSDK_SAF85_S32R41_2022_08/SW32R_RTD_4_4_0_9_0_D2208/BaseNXP_TS_T40D47M9I0R0/include -ID:/NXP/S32DS.3.5/S32DS/software/PlatformSDK_SAF85_S32R41_2022_08/SW32R_RTD_4_4_0_9_0_D2208/BaseNXP_TS_T40D47M9I0R0/header -IC:/Users/EPT/workspaceS32DS.3.5/S32R41_example_project/board -IC:/Users/EPT/workspaceS32DS.3.5/S32R41_example_project/generate/include -IC:/Users/EPT/workspaceS32DS.3.5/S32R41_example_project/RTD/include -isystem C:/zephyr_pro/zephyrproject/zephyr/lib/libc/minimal/include -isystem d:/nxp/s32ds.3.5/s32ds/build_tools/gcc_v9.2/gcc-9.2-arm64-eabi/bin/../lib/gcc/aarch64-none-elf/9.2.0/include -isystem d:/nxp/s32ds.3.5/s32ds/build_tools/gcc_v9.2/gcc-9.2-arm64-eabi/bin/../lib/gcc/aarch64-none-elf/9.2.0/include-fixed -Os -imacros C:/zephyr_pro/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -ggdb3 -fdiagnostics-color=always --sysroot=D:/NXP/S32DS.3.5/S32DS/build_tools/gcc_v9.2/gcc-9.2-arm64-eabi/aarch64-none-elf -mcpu=cortex-a53 -mabi=lp64 -imacros C:/zephyr_pro/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-address-of-packed-member -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fstack-usage -fmacro-prefix-map=C:/zephyr_pro/zephyrproject/zephyr/samples/hello_world=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/zephyr_pro/zephyrproject/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/zephyr_pro/zephyrproject=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=nosys.specs -mtune=cortex-a53 -march=armv8-a -mlittle-endian -mstrict-align -Wunused -Wdouble-promotion -Wno-incompatible-pointer-types -fdump-ipa-all -funsigned-char -funsigned-bitfields -fstrict-volatile-bitfields -fno-short-enums -fvisibility=hidden -imacros C:/zephyr_pro/zephyrproject/zephyr/build/zephyr/include/generated/s32ct_define.h -std=c99 -nostdinc -fno-function-sections -fno-data-sections -MD -MT modules/hal_nxp/hal_nxp/s32_rtd/s32r/CMakeFiles/..__modules__hal__nxp__s32_rtd__s32r.dir/C_/Users/EPT/workspaceS32DS.3.5/S32R41_example_project/RTD/src/OsIf_Timer_System_Internal_GenericTimer.c.obj -MF modules\hal_nxp\hal_nxp\s32_rtd\s32r\CMakeFiles\..__modules__hal__nxp__s32_rtd__s32r.dir\C_\Users\EPT\workspaceS32DS.3.5\S32R41_example_project\RTD\src\OsIf_Timer_System_Internal_GenericTimer.c.obj.d -o modules/hal_nxp/hal_nxp/s32_rtd/s32r/CMakeFiles/..__modules__hal__nxp__s32_rtd__s32r.dir/C_/Users/EPT/workspaceS32DS.3.5/S32R41_example_project/RTD/src/OsIf_Timer_System_Internal_GenericTimer.c.obj -c C:/Users/EPT/workspaceS32DS.3.5/S32R41_example_project/RTD/src/OsIf_Timer_System_Internal_GenericTimer.c
C:/Users/EPT/workspaceS32DS.3.5/S32R41_example_project/RTD/src/OsIf_Timer_System_Internal_GenericTimer.c:46: error: could not open dump file 'modules/hal_nxp/hal_nxp/s32_rtd/s32r/CMakeFiles/..__modules__hal__nxp__s32_rtd__s32r.dir/C_/Users/EPT/workspaceS32DS.3.5/S32R41_example_project/RTD/src/OsIf_Timer_System_Internal_GenericTimer.c.082i.materialize-all-clones': No such file or directory
46 |
|
[11/52] Building C object zephyr/soc/arm64/nxp_s32/s32r/CMakeFiles/soc__arm64__nxp_s32__s32r.dir/mmu_regions.c.obj
FAILED: zephyr/soc/arm64/nxp_s32/s32r/CMakeFiles/soc__arm64__nxp_s32__s32r.dir/mmu_regions.c.obj
D:\NXP\S32DS.3.5\S32DS\build_tools\gcc_v9.2\gcc-9.2-arm64-eabi\bin\aarch64-none-elf-gcc.exe -DCPU_CORTEX_A53 -DKERNEL -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/zephyr_pro/zephyrproject/zephyr/include -IC:/zephyr_pro/zephyrproject/zephyr/build/zephyr/include/generated -IC:/zephyr_pro/zephyrproject/zephyr/soc/arm64/nxp_s32/s32r -IC:/zephyr_pro/zephyrproject/modules/hal/cmsis/CMSIS/Core_A/Include -ID:/NXP/S32DS.3.5/S32DS/software/PlatformSDK_SAF85_S32R41_2022_08/SW32R_RTD_4_4_0_9_0_D2208/BaseNXP_TS_T40D47M9I0R0/include -ID:/NXP/S32DS.3.5/S32DS/software/PlatformSDK_SAF85_S32R41_2022_08/SW32R_RTD_4_4_0_9_0_D2208/BaseNXP_TS_T40D47M9I0R0/header -IC:/Users/EPT/workspaceS32DS.3.5/S32R41_example_project/board -IC:/Users/EPT/workspaceS32DS.3.5/S32R41_example_project/generate/include -IC:/Users/EPT/workspaceS32DS.3.5/S32R41_example_project/RTD/include -isystem C:/zephyr_pro/zephyrproject/zephyr/lib/libc/minimal/include -isystem d:/nxp/s32ds.3.5/s32ds/build_tools/gcc_v9.2/gcc-9.2-arm64-eabi/bin/../lib/gcc/aarch64-none-elf/9.2.0/include -isystem d:/nxp/s32ds.3.5/s32ds/build_tools/gcc_v9.2/gcc-9.2-arm64-eabi/bin/../lib/gcc/aarch64-none-elf/9.2.0/include-fixed -Os -imacros C:/zephyr_pro/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -ggdb3 -fdiagnostics-color=always --sysroot=D:/NXP/S32DS.3.5/S32DS/build_tools/gcc_v9.2/gcc-9.2-arm64-eabi/aarch64-none-elf -mcpu=cortex-a53 -mabi=lp64 -imacros C:/zephyr_pro/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-address-of-packed-member -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fstack-usage -fmacro-prefix-map=C:/zephyr_pro/zephyrproject/zephyr/samples/hello_world=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/zephyr_pro/zephyrproject/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/zephyr_pro/zephyrproject=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=nosys.specs -mtune=cortex-a53 -march=armv8-a -mlittle-endian -mstrict-align -Wunused -Wdouble-promotion -Wno-incompatible-pointer-types -fdump-ipa-all -funsigned-char -funsigned-bitfields -fstrict-volatile-bitfields -fno-short-enums -fvisibility=hidden -imacros C:/zephyr_pro/zephyrproject/zephyr/build/zephyr/include/generated/s32ct_define.h -std=c99 -nostdinc -MD -MT zephyr/soc/arm64/nxp_s32/s32r/CMakeFiles/soc__arm64__nxp_s32__s32r.dir/mmu_regions.c.obj -MF zephyr\soc\arm64\nxp_s32\s32r\CMakeFiles\soc__arm64__nxp_s32__s32r.dir\mmu_regions.c.obj.d -o zephyr/soc/arm64/nxp_s32/s32r/CMakeFiles/soc__arm64__nxp_s32__s32r.dir/mmu_regions.c.obj -c C:/zephyr_pro/zephyrproject/zephyr/soc/arm64/nxp_s32/s32r/mmu_regions.c
In file included from C:/zephyr_pro/zephyrproject/zephyr/include/arch/arm64/arch.h:33,
from C:/zephyr_pro/zephyrproject/zephyr/include/arch/cpu.h:17,
from C:/zephyr_pro/zephyrproject/zephyr/include/kernel_includes.h:33,
from C:/zephyr_pro/zephyrproject/zephyr/include/kernel.h:17,
from C:/zephyr_pro/zephyrproject/zephyr/include/init.h:11,
from C:/zephyr_pro/zephyrproject/zephyr/include/device.h:29,
from C:/zephyr_pro/zephyrproject/zephyr/soc/arm64/nxp_s32/s32r/mmu_regions.c:10:
C:/zephyr_pro/zephyrproject/zephyr/include/devicetree.h:1544:32: error: 'DT_CHOSEN_zephyr_ipc_shm_REG_IDX_0_VAL_ADDRESS' undeclared here (not in a function); did you mean 'DT_N_S_cpus_S_cpu_0_REG_IDX_0_VAL_ADDRESS'?
1544 | #define DT_CHOSEN(prop) DT_CAT(DT_CHOSEN_, prop)
| ^~~~~~~~~~
C:/zephyr_pro/zephyrproject/zephyr/include/arch/arm64/arm_mmu.h:180:14: note: in definition of macro 'MMU_REGION_ENTRY'
180 | .base_pa = _base_pa, \
| ^~~~~~~~
C:/zephyr_pro/zephyrproject/zephyr/soc/arm64/nxp_s32/s32r/mmu_regions.c:25:2: note: in expansion of macro 'MMU_REGION_FLAT_ENTRY'
25 | MMU_REGION_FLAT_ENTRY("SHM0",
| ^~~~~~~~~~~~~~~~~~~~~
C:/zephyr_pro/zephyrproject/zephyr/include/devicetree.h:1332:2: note: in expansion of macro 'DT_CAT'
1332 | DT_CAT(node_id, _REG_IDX_##idx##_VAL_ADDRESS)
| ^~~~~~
C:/zephyr_pro/zephyrproject/zephyr/include/devicetree.h:1355:30: note: in expansion of macro 'DT_REG_ADDR_BY_IDX'
1355 | #define DT_REG_ADDR(node_id) DT_REG_ADDR_BY_IDX(node_id, 0)
| ^~~~~~~~~~~~~~~~~~
C:/zephyr_pro/zephyrproject/zephyr/soc/arm64/nxp_s32/s32r/mmu_regions.c:26:19: note: in expansion of macro 'DT_REG_ADDR'
26 | DT_REG_ADDR(DT_CHOSEN(zephyr_ipc_shm)),
| ^~~~~~~~~~~
C:/zephyr_pro/zephyrproject/zephyr/include/devicetree.h:1544:25: note: in expansion of macro 'DT_CAT'
1544 | #define DT_CHOSEN(prop) DT_CAT(DT_CHOSEN_, prop)
| ^~~~~~
C:/zephyr_pro/zephyrproject/zephyr/soc/arm64/nxp_s32/s32r/mmu_regions.c:26:31: note: in expansion of macro 'DT_CHOSEN'
26 | DT_REG_ADDR(DT_CHOSEN(zephyr_ipc_shm)),
| ^~~~~~~~~
C:/zephyr_pro/zephyrproject/zephyr/include/devicetree.h:1544:32: error: 'DT_CHOSEN_zephyr_ipc_shm_REG_IDX_0_VAL_SIZE' undeclared here (not in a function)
1544 | #define DT_CHOSEN(prop) DT_CAT(DT_CHOSEN_, prop)
| ^~~~~~~~~~
C:/zephyr_pro/zephyrproject/zephyr/include/arch/arm64/arm_mmu.h:182:11: note: in definition of macro 'MMU_REGION_ENTRY'
182 | .size = _size, \
| ^~~~~
C:/zephyr_pro/zephyrproject/zephyr/soc/arm64/nxp_s32/s32r/mmu_regions.c:25:2: note: in expansion of macro 'MMU_REGION_FLAT_ENTRY'
25 | MMU_REGION_FLAT_ENTRY("SHM0",
| ^~~~~~~~~~~~~~~~~~~~~
C:/zephyr_pro/zephyrproject/zephyr/include/devicetree.h:1346:2: note: in expansion of macro 'DT_CAT'
1346 | DT_CAT(node_id, _REG_IDX_##idx##_VAL_SIZE)
| ^~~~~~
C:/zephyr_pro/zephyrproject/zephyr/include/devicetree.h:1364:30: note: in expansion of macro 'DT_REG_SIZE_BY_IDX'
1364 | #define DT_REG_SIZE(node_id) DT_REG_SIZE_BY_IDX(node_id, 0)
| ^~~~~~~~~~~~~~~~~~
C:/zephyr_pro/zephyrproject/zephyr/soc/arm64/nxp_s32/s32r/mmu_regions.c:27:19: note: in expansion of macro 'DT_REG_SIZE'
27 | DT_REG_SIZE(DT_CHOSEN(zephyr_ipc_shm)),
| ^~~~~~~~~~~
C:/zephyr_pro/zephyrproject/zephyr/include/devicetree.h:1544:25: note: in expansion of macro 'DT_CAT'
1544 | #define DT_CHOSEN(prop) DT_CAT(DT_CHOSEN_, prop)
| ^~~~~~
C:/zephyr_pro/zephyrproject/zephyr/soc/arm64/nxp_s32/s32r/mmu_regions.c:27:31: note: in expansion of macro 'DT_CHOSEN'
27 | DT_REG_SIZE(DT_CHOSEN(zephyr_ipc_shm)),
| ^~~~~~~~~
[14/52] Building C object modules/hal_nxp/hal_nxp/s32_rtd/s32r/CMakeFiles.../workspaceS32DS.3.5/S32R41_example_project/RTD/src/Linflexd_Uart_Ip.c.ob
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --build 'C:\zephyr_pro\zephyrproject\zephyr\build'

 

0 Kudos
Reply
1 Solution
598 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

please double check again all the environment variables mentioned in User Manual. There is lot of settings and requirements. 

View solution in original post

0 Kudos
Reply
1 Reply
599 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

please double check again all the environment variables mentioned in User Manual. There is lot of settings and requirements. 

0 Kudos
Reply