This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

New board created based on nrf5340 SoC by VS code nrf Connect Extension get build error

Hi All,

I am using VS code with nrf Connect Extension and nrf Connect SDK 1.7.0 develop nrf5340 application on windows10.

I created a new application from the Hello World sample, then created a new board and added a build configuration with the custom board I just created. Nothing else I did, a error got as below when build:

Building hello_world
west build --build-dir c:\Users\yasun\ncs\my-apps\hello_world\build c:\Users\yasun\ncs\my-apps\hello_world --pristine --board ys_mbm18era -- -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DBOARD_ROOT:STRING="c:/Users/yasun/ncs/my-apps/hello_world" -DCONF_FILE:STRING="c:/Users/yasun/ncs/my-apps/hello_world/prj.conf"

-- west build: generating a build system
Including boilerplate (Zephyr base): C:/Users/yasun/ncs/v1.7.0/zephyr/cmake/app/boilerplate.cmake
-- Application: C:/Users/yasun/ncs/my-apps/hello_world
-- Zephyr version: 2.6.99 (C:/Users/yasun/ncs/v1.7.0/zephyr), build: v2.6.99-ncs1
-- Found Python3: C:/Users/yasun/ncs/v1.7.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: ys_mbm18era
-- Cache files will be written to: C:/Users/yasun/ncs/v1.7.0/zephyr/.cache
-- Found dtc: C:/Users/yasun/ncs/v1.7.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (c:/Users/yasun/ncs/v1.7.0/toolchain/opt)
-- Found BOARD.dts: C:/Users/yasun/ncs/my-apps/hello_world/boards/arm/ys_mbm18era/ys_mbm18era.dts
-- Generated zephyr.dts: C:/Users/yasun/ncs/my-apps/hello_world/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Users/yasun/ncs/my-apps/hello_world/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/Users/yasun/ncs/my-apps/hello_world/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/Users/yasun/ncs/my-apps/hello_world/build/zephyr/dts.cmake
Parsing C:/Users/yasun/ncs/v1.7.0/zephyr/Kconfig
Loaded configuration 'C:/Users/yasun/ncs/my-apps/hello_world/boards/arm/ys_mbm18era/ys_mbm18era_defconfig'
Merged configuration 'c:/Users/yasun/ncs/my-apps/hello_world/prj.conf'
Configuration saved to 'C:/Users/yasun/ncs/my-apps/hello_world/build/zephyr/.config'
Kconfig header saved to 'C:/Users/yasun/ncs/my-apps/hello_world/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/yasun/ncs/v1.7.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
-- Configuring incomplete, errors occurred!
See also "C:/Users/yasun/ncs/my-apps/hello_world/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/yasun/ncs/my-apps/hello_world/build/CMakeFiles/CMakeError.log".
CMake Error at c:\Users\yasun\ncs\my-apps\hello_world\build\boards\arm\ys_mbm18era\board.cmake:1:
Parse error. Expected a command name, got unquoted argument with text
"%TSD-Header-".
Call Stack (most recent call first):
C:\Users\yasun\ncs\v1.7.0\zephyr\cmake\app\boilerplate.cmake:621 (include)
C:\Users\yasun\ncs\v1.7.0\zephyr\share\zephyr-package\cmake\ZephyrConfig.cmake:24 (include)
C:\Users\yasun\ncs\v1.7.0\zephyr\share\zephyr-package\cmake\ZephyrConfig.cmake:35 (include_boilerplate)
c:\Users\yasun\ncs\my-apps\hello_world\build\CMakeLists.txt:5 (find_package)


FATAL ERROR: command exited with status 1: 'c:\Users\yasun\ncs\v1.7.0\toolchain\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\Users\yasun\ncs\v1.7.0\toolchain\opt\bin\python.exe' '-Bc:\Users\yasun\ncs\my-apps\hello_world\build' '-Sc:\Users\yasun\ncs\my-apps\hello_world' -GNinja -DBOARD=ys_mbm18era -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DBOARD_ROOT:STRING=c:/Users/yasun/ncs/my-apps/hello_world -DCONF_FILE:STRING=c:/Users/yasun/ncs/my-apps/hello_world/prj.conf
The terminal process terminated with exit code: 1.

The board create window as below:

Parents
  • Hi,

    I am unable to reproduce this issue on my side. From the build output it seems like the issue can be with the file board.cmake. What does that file look like?

    Can you provide support information from VS Code? You can get this by opening the command palette (Ctrl+Shift+P) and write nRF Connect: Generate Support Information. Copy the information and add it here using Insert -> Code.

    Best regards,

    Marte

Reply
  • Hi,

    I am unable to reproduce this issue on my side. From the build output it seems like the issue can be with the file board.cmake. What does that file look like?

    Can you provide support information from VS Code? You can get this by opening the command palette (Ctrl+Shift+P) and write nRF Connect: Generate Support Information. Copy the information and add it here using Insert -> Code.

    Best regards,

    Marte

Children
Related