You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I built hello_world project, use IAR. But error happen, How can i fix this?
Build command:
west build -p -b stm32_min_dev zephyr\samples\hello_world
Output:
(.venv) D:\zephyrproject>west build -p -b stm32_min_dev zephyr\samples\hello_world
-- west build: making build dir D:\zephyrproject\build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: D:/zephyrproject/zephyr/samples/hello_world
-- CMake version: 4.0.2
-- Found Python3: D:/zephyrproject/.venv/Scripts/python.exe (found suitable version "3.11.9", minimum required is "3.10") found components: Interpreter
-- Cache files will be written to: D:/zephyrproject/zephyr/.cache
-- Zephyr version: 4.1.0 (D:/zephyrproject/zephyr)
-- Found west (found suitable version "1.3.0", minimum required is "0.14.0")
-- Board: stm32_min_dev, Revision: blue, qualifiers: stm32f103xb
-- Found toolchain: IAR C/C++ Compiler for Arm (D:\iar\ewarm-9.60.2\arm)
-- Found host-tools: zephyr 0.17.0 (D:/apps/zephyr-sdk-0.17.0)
-- Found Zephyr SDK at D:/apps/zephyr-sdk-0.17.0
-- Found Dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found BOARD.dts: D:/zephyrproject/zephyr/boards/others/stm32_min_dev/stm32_min_dev.dts
-- Found devicetree overlay: D:/zephyrproject/zephyr/boards/others/stm32_min_dev/stm32_min_dev_stm32f103xb_blue.overlay
-- Generated zephyr.dts: D:/zephyrproject/build/zephyr/zephyr.dts
-- Generated pickled edt: D:/zephyrproject/build/zephyr/edt.pickle
-- Generated devicetree_generated.h: D:/zephyrproject/build/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: D:/zephyrproject/build/zephyr/dts.cmake
Parsing D:/zephyrproject/zephyr/Kconfig
Loaded configuration 'D:/zephyrproject/zephyr/boards/others/stm32_min_dev/stm32_min_dev_defconfig'
Merged configuration 'D:/zephyrproject/zephyr/samples/hello_world/prj.conf'
Configuration saved to 'D:/zephyrproject/build/zephyr/.config'
Kconfig header saved to 'D:/zephyrproject/build/zephyr/include/generated/zephyr/autoconf.h'
-- Found C Compiler D:/iar/ewarm-9.60.2/arm/bin/iccarm.exe
-- Found assembler D:/apps/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- The C compiler identification is IAR ARM 9.60.2
-- The CXX compiler identification is IAR ARM 9.60.2
-- The ASM compiler identification is GNU
-- Found assembler: D:/apps/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- Using ccache: C:/Strawberry/c/bin/ccache.exe
-- Configuring done (17.5s)
-- Generating done (0.5s)
-- Build files have been written to: D:/zephyrproject/build
-- west build: building application
[1/150] Generating include/generated/zephyr/version.h
-- Zephyr version: 4.1.0 (D:/zephyrproject/zephyr), build: v4.1.0
[7/150] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.o
FAILED: zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.o
ccache D:\iar\ewarm-9.60.2\arm\bin\iccarm.exe --silent D:/zephyrproject/zephyr/arch/arm/core/offsets/offsets.c -DHSE_VALUE=8000000 -DKERNEL -DK_HEAP_MEM_POOL_SIZE=0 -DSTM32F103xB -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -D__PROGRAM_START -D__ZEPHYR__=1 -ID:/zephyrproject/zephyr/kernel/include -ID:/zephyrproject/zephyr/arch/arm/include -ID:/zephyrproject/build/zephyr/include/generated/zephyr -ID:/zephyrproject/zephyr/include -ID:/zephyrproject/build/zephyr/include/generated -ID:/zephyrproject/zephyr/soc/st/stm32 -ID:/zephyrproject/zephyr/soc/st/stm32/common/. -ID:/zephyrproject/zephyr/drivers -ID:/zephyrproject/zephyr/soc/st/stm32/stm32f1x/. -ID:/zephyrproject/modules/hal/cmsis/CMSIS/Core/Include -ID:/zephyrproject/zephyr/modules/cmsis/. -ID:/zephyrproject/modules/hal/stm32/stm32cube/stm32f1xx/soc -ID:/zephyrproject/modules/hal/stm32/stm32cube/stm32f1xx/drivers/include -ID:/zephyrproject/modules/hal/stm32/stm32cube/common_ll/include -ID:/zephyrproject/zephyr/lib/libc/minimal/include -ID:/zephyrproject/zephyr/lib/libc/common/include -e -Ohz --preinclude D:/zephyrproject/build/zephyr/include/generated/zephyr/autoconf.h --debug --preinclude D:/zephyrproject/zephyr/include/zephyr/toolchain/iar/iar_missing_defs.h -e --language gnu --do_explicit_init_in_named_sections --macro_positions_in_diagnostics --no_wrap_diagnostics --endian=little --cpu=Cortex-M3 -DRTT_USE_ASM=0 --diag_suppress=Ta184 --vla --aeabi --thumb --diag_error=Pe223 --diag_warning=Pe054 --diag_warning=Pe144 --diag_warning=Pe167 --diag_suppress=Pe1675 --diag_suppress=Pe111 --diag_suppress=Pe1143 --diag_suppress=Pe068 -D__IAR_CSTD_c17 --dependencies=ns zephyr\CMakeFiles\offsets.dir\arch\arm\core\offsets\offsets.o.d -o zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.o
IAR ANSI C/C++ Compiler V9.60.2.399/W64 for ARM
Copyright 1999-2024 IAR Systems AB.
PC-locked license - IAR Embedded Workbench for ARM
Command line error: Unexpected command line arguments:
--language
--do_explicit_init_in_named_sections
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --build 'D:\zephyrproject\build'
OS: Windows 11,
IAR: V9.60.2
CMake: version 4.0.2
Ninja: 1.12.1
zephyr: v4.1.0
Regression
This is a regression.
Steps to reproduce
No response
Relevant log output
Impact
Annoyance – Minor irritation; no significant impact on usability or functionality.
Environment
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Hello! I am happy that you are testing Zephyrs support for IAR, but unfortunately it requires a newer toolchain than 9.60.2.
It is not something that can easily be backported either, since IAR added support for many required GNU extensions.
Describe the bug
I built hello_world project, use IAR. But error happen, How can i fix this?
Build command:
Output:
OS: Windows 11,
IAR: V9.60.2
CMake: version 4.0.2
Ninja: 1.12.1
zephyr: v4.1.0
Regression
Steps to reproduce
No response
Relevant log output
Impact
Annoyance – Minor irritation; no significant impact on usability or functionality.
Environment
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: