Date
1 - 4 of 4
for board nucleo_f302r8, where "stm32f3xx.h" header file needs to be? #stm32
MaxMn
I'm running ~/zephyrproject/zephyr$ west build -p auto -b nucleo_f302r8 samples/basic/blinky What is the proper location of stm32f3xx.h? I got it within so called "STM32Cube MCU Package for STM32F3 Series" STM32CubeF3 (https://www.st.com/content/st_com/en/products/embedded-software/mcu-mpu-embedded-software/stm32-embedded-software/stm32cube-mcu-mpu-packages/stm32cubef3.html) -- west build: building application [1/115] Preparing syscall dependency handling[7/115] 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 /home/user/zephyr-sdk-0.11.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DBUILD_VERSION=zephyr-v2.2.0-561-g67e4ccbc5161 -DKERNEL -D_FORTIFY_SOURCE=2 -D__ZEPHYR__=1 -I../kernel/include -I../arch/arm/include -I../include -Izephyr/include/generated -I../soc/arm/st_stm32/stm32f3 -I../drivers -isystem ../lib/libc/minimal/include -isystem /home/user/zephyr-sdk-0.11.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/9.2.0/include -isystem /home/user/zephyr-sdk-0.11.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/9.2.0/include-fixed -Os -imacros/home/user/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -mcpu=cortex-m4 -mthumb -imacros/home/user/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-address-of-packed-member -Wno-pointer-sign -Wpointer-arith -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 -fmacro-prefix-map=/home/user/zephyrproject/zephyr/samples/basic/blinky=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/user/zephyrproject/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/user/zephyrproject=WEST_TOPDIR -ffunction-sections -fdata-sections -mabi=aapcs -march=armv7e-m -std=c99 -nostdinc -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/user/zephyrproject/zephyr/arch/arm/core/offsets/offsets.c In file included from ../include/arch/arm/aarch32/cortex_m/cmsis.h:17, from ../arch/arm/include/aarch32/cortex_m/stack.h:23, from ../arch/arm/include/kernel_arch_data.h:33, from /home/user/zephyrproject/zephyr/arch/arm/core/offsets/offsets_aarch32.c:26, from /home/user/zephyrproject/zephyr/arch/arm/core/offsets/offsets.c:12: ../soc/arm/st_stm32/stm32f3/soc.h:24:10: fatal error: stm32f3xx.h: No such file or directory 24 | #include <stm32f3xx.h> | ^~~~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. |
|
Yannis Damigos
Hi,
toggle quoted message
Show quoted text
just tried it and it works fine on my system. are the modules installed? You could check using: west list | grep hal_stm32 Best regards, Yannis On 3/24/20 5:41 PM, MaxMn via Lists.Zephyrproject.Org wrote:
I'm running |
|
Erwan Gouriou
You might just miss a "west update". Le mar. 24 mars 2020 à 19:19, Yannis Damigos <giannis.damigos@...> a écrit : Hi, |
|
MaxMn
Bingo! Thanks, Erwan I'm watching now how "west update" is fetching repositories. stm32f3xx.h (and a lot more) are in https://github.com/zephyrproject-rtos/hal_stm32/tree/master/stm32cube/stm32f3xx/soc Am Di., 24. März 2020 um 22:52 Uhr schrieb Erwan Gouriou <erwan.gouriou@...>:
|
|