Replies: 1 comment
-
have to custom define them in soc.h for new vendors |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
(.venv) hulk@Ubuntu:~/zeph/zephyr$ west build -p -b my_board_2 samples/drivers/adc/adc_dt/
-- west build: making build dir /home/hulk/zeph/zephyr/build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/hulk/zeph/zephyr/samples/drivers/adc/adc_dt
-- CMake version: 3.22.1
-- Found Python3: /usr/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: /home/hulk/.cache/zephyr
-- Zephyr version: 3.6.99 (/home/hulk/zeph/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: my_board_2, qualifiers: my_soc
-- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
-- Found host-tools: zephyr 0.16.5 (/usr/local/zephyr-sdk-0.16.5)
-- Found toolchain: zephyr 0.16.5 (/usr/local/zephyr-sdk-0.16.5)
-- Found Dtc: /usr/local/zephyr-sdk-0.16.5/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
-- Found BOARD.dts: /home/hulk/zeph/zephyr/boards/custom/my_board_2/my_board_2.dts
-- Generated zephyr.dts: /home/hulk/zeph/zephyr/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/hulk/zeph/zephyr/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/hulk/zeph/zephyr/build/zephyr/dts.cmake
Parsing /home/hulk/zeph/zephyr/Kconfig
Loaded configuration '/home/hulk/zeph/zephyr/boards/custom/my_board_2/my_board_2_defconfig'
Merged configuration '/home/hulk/zeph/zephyr/samples/drivers/adc/adc_dt/prj.conf'
Configuration saved to '/home/hulk/zeph/zephyr/build/zephyr/.config'
Kconfig header saved to '/home/hulk/zeph/zephyr/build/zephyr/include/generated/autoconf.h'
-- Found GnuLd: /usr/local/zephyr-sdk-0.16.5/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd (found version "2.38")
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/local/zephyr-sdk-0.16.5/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- libmetal version: 1.5.0 (/home/hulk/zeph/zephyr/samples/drivers/adc/adc_dt)
-- Build type:
-- Host: Linux/x86_64
-- Target: Generic/arm
-- Machine: arm
-- Looking for include file stdatomic.h
-- Looking for include file stdatomic.h - found
-- open-amp version: 1.5.0 (/home/hulk/zeph/modules/lib/open-amp/open-amp)
-- Host: Linux/x86_64
-- Target: Zephyr/arm
-- Machine: arm
-- C_FLAGS : -Wall -Wextra
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Using ccache: /usr/bin/ccache
-- Configuring done
-- Generating done
-- Build files have been written to: /home/hulk/zeph/zephyr/build
-- west build: building application
[1/132] Preparing syscall dependency handling
[2/132] Generating include/generated/version.h
-- Zephyr version: 3.6.99 (/home/hulk/zeph/zephyr), build: v3.6.0-2904-gb8b33beaebf5
[8/132] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
FAILED: zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
ccache /usr/local/zephyr-sdk-0.16.5/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DKERNEL -DK_HEAP_MEM_POOL_SIZE=0 -DPICOLIBC_LONG_LONG_PRINTF_SCANF -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/hulk/zeph/zephyr/kernel/include -I/home/hulk/zeph/zephyr/arch/arm/include -I/home/hulk/zeph/zephyr/include -I/home/hulk/zeph/zephyr/build/zephyr/include/generated -I/home/hulk/zeph/zephyr/soc/custom/my_soc -I/home/hulk/zeph/modules/hal/cmsis/CMSIS/Core/Include -I/home/hulk/zeph/zephyr/modules/cmsis/. -I/home/hulk/zeph/zephyr/build/modules/libmetal/libmetal/lib/include -I/home/hulk/zeph/modules/lib/open-amp/open-amp/lib/include -isystem /home/hulk/zeph/zephyr/lib/libc/common/include -fno-strict-aliasing -Os -imacros /home/hulk/zeph/zephyr/build/zephyr/include/generated/autoconf.h -fno-printf-return-value -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m0plus -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=/usr/local/zephyr-sdk-0.16.5/arm-zephyr-eabi/arm-zephyr-eabi -imacros /home/hulk/zeph/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/home/hulk/zeph/zephyr/samples/drivers/adc/adc_dt=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/hulk/zeph/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/hulk/zeph=WEST_TOPDIR -ffunction-sections -fdata-sections --specs=picolibc.specs -std=c99 -fno-lto -MD -MT zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj -MF zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj.d -o zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj -c /home/hulk/zeph/zephyr/arch/arm/core/offsets/offsets.c
In file included from /home/hulk/zeph/zephyr/include/zephyr/arch/arm/asm_inline.h:18,
from /home/hulk/zeph/zephyr/include/zephyr/arch/arm/arch.h:33,
from /home/hulk/zeph/zephyr/include/zephyr/arch/cpu.h:19,
from /home/hulk/zeph/zephyr/include/zephyr/kernel_includes.h:36,
from /home/hulk/zeph/zephyr/include/zephyr/kernel.h:17,
from /home/hulk/zeph/zephyr/arch/arm/core/offsets/offsets_aarch32.c:28,
from /home/hulk/zeph/zephyr/arch/arm/core/offsets/offsets.c:9:
/home/hulk/zeph/zephyr/include/zephyr/arch/arm/asm_inline_gcc.h: In function 'arch_irq_lock':
/home/hulk/zeph/zephyr/include/zephyr/arch/arm/asm_inline_gcc.h:50:15: warning: implicit declaration of function '__get_PRIMASK' [-Wimplicit-function-declaration]
50 | key = __get_PRIMASK();
| ^~~~~~~~~~~~~
/home/hulk/zeph/zephyr/include/zephyr/arch/arm/asm_inline_gcc.h:51:9: warning: implicit declaration of function '__disable_irq' [-Wimplicit-function-declaration]
51 | __disable_irq();
| ^~~~~~~~~~~~~
/home/hulk/zeph/zephyr/include/zephyr/arch/arm/asm_inline_gcc.h: In function 'arch_irq_unlock':
/home/hulk/zeph/zephyr/include/zephyr/arch/arm/asm_inline_gcc.h:86:9: warning: implicit declaration of function '__enable_irq' [-Wimplicit-function-declaration]
86 | __enable_irq();
| ^~~~~~~~~~~~
/home/hulk/zeph/zephyr/include/zephyr/arch/arm/asm_inline_gcc.h:87:9: warning: implicit declaration of function '__ISB' [-Wimplicit-function-declaration]
87 | __ISB();
| ^~~~~
In file included from /home/hulk/zeph/zephyr/arch/arm/include/kernel_arch_data.h:28,
from /home/hulk/zeph/zephyr/arch/arm/core/offsets/offsets_aarch32.c:29:
/home/hulk/zeph/zephyr/arch/arm/include/cortex_m/stack.h: In function 'z_arm_interrupt_stack_setup':
/home/hulk/zeph/zephyr/arch/arm/include/cortex_m/stack.h:46:9: warning: implicit declaration of function '__set_MSP' [-Wimplicit-function-declaration]
46 | __set_MSP(msp);
| ^~~~~~~~~
In file included from /home/hulk/zeph/zephyr/arch/arm/include/kernel_arch_data.h:29:
/home/hulk/zeph/zephyr/arch/arm/include/cortex_m/exception.h: In function 'arch_is_in_isr':
/home/hulk/zeph/zephyr/arch/arm/include/cortex_m/exception.h:48:17: warning: implicit declaration of function '__get_IPSR' [-Wimplicit-function-declaration]
48 | return (__get_IPSR()) ? (true) : (false);
| ^~~~~~~~~~
/home/hulk/zeph/zephyr/arch/arm/include/cortex_m/exception.h: In function 'arch_is_in_nested_exception':
/home/hulk/zeph/zephyr/arch/arm/include/cortex_m/exception.h:73:35: error: 'IPSR_ISR_Msk' undeclared (first use in this function)
73 | return (esf->basic.xpsr & IPSR_ISR_Msk) ? (true) : (false);
| ^~~~~~~~~~~~
/home/hulk/zeph/zephyr/arch/arm/include/cortex_m/exception.h:73:35: note: each undeclared identifier is reported only once for each function it appears in
/home/hulk/zeph/zephyr/arch/arm/include/cortex_m/exception.h: In function 'z_arm_exc_setup':
/home/hulk/zeph/zephyr/arch/arm/include/cortex_m/exception.h:102:9: warning: implicit declaration of function 'NVIC_SetPriority' [-Wimplicit-function-declaration]
102 | NVIC_SetPriority(PendSV_IRQn, _EXC_PENDSV_PRIO);
| ^~~~~~~~~~~~~~~~
/home/hulk/zeph/zephyr/arch/arm/include/cortex_m/exception.h:102:26: error: 'PendSV_IRQn' undeclared (first use in this function)
102 | NVIC_SetPriority(PendSV_IRQn, _EXC_PENDSV_PRIO);
| ^~~~~~~~~~~
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/hulk/zeph/zephyr/build
Beta Was this translation helpful? Give feedback.
All reactions