Trick for young players here.
I tried to create a new Zephyr project using the Project Wizard in PlatformIO (core 6.1.15, Home 3.4.4), as outlined in the ticket below.
opened 04:40AM - 01 May 24 UTC
closed 05:03AM - 01 May 24 UTC
Setting up a new project to test Zephyr on a Nordic nRF52840 throws the followin… g error.
![image](https://github.com/platformio/platformio-home/assets/8073328/9f048897-8a3e-4fbb-83f9-9913c4fc7fff)
![image](https://github.com/platformio/platformio-home/assets/8073328/5f31d359-71d5-451d-a89f-54a0c5941637)
Resolving nrf52840_dk dependencies...
Already up-to-date.
Updating metadata for the vscode IDE...
UserSideException: Processing nrf52840_dk (platform: nordicnrf52; board: nrf52840_dk; framework: zephyr)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/nordicnrf52/nrf52840_dk.html
PLATFORM: Nordic nRF52 (10.4.0+sha.1b11bd6) > Nordic nRF52840-DK
HARDWARE: NRF52840 64MHz, 256KB RAM, 1MB Flash
DEBUG: Current (jlink) On-board (cmsis-dap, jlink) External (blackmagic, stlink)
PACKAGES:
- framework-zephyr @ 2.20701.220422 (2.7.1)
- tool-cmake @ 3.21.3
- tool-dtc @ 1.4.7
- tool-ninja @ 1.9.0
- tool-sreccat @ 1.164.0 (1.64)
- toolchain-gccarmnoneeabi @ 1.80201.181220 (8.2.1)
Reading CMake configuration...
-- Application: C:/Users/DaveWyers/OneDrive/Documents/PlatformIO/Projects/Upload Test/zephyr
-- Zephyr version: 2.7.1 (C:/Users/DaveWyers/.platformio/packages/framework-zephyr)
-- Found Python3: C:/Users/DaveWyers/.platformio/penv/Scripts/python.exe (found suitable exact version "3.11.7") found components: Interpreter
-- Board: nrf52840dk_nrf52840
-- Cache files will be written to: C:/Users/DaveWyers/.platformio/packages/framework-zephyr/.cache
-- Found dtc: C:/Users/DaveWyers/.platformio/packages/tool-dtc/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (C:/Users/DaveWyers/.platformio/packages/toolchain-gccarmnoneeabi)
-- Found BOARD.dts: C:/Users/DaveWyers/.platformio/packages/framework-zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Generated zephyr.dts: C:/Users/DaveWyers/OneDrive/Documents/PlatformIO/Projects/Upload Test/.pio/build/nrf52840_dk/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Users/DaveWyers/OneDrive/Documents/PlatformIO/Projects/Upload Test/.pio/build/nrf52840_dk/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/Users/DaveWyers/OneDrive/Documents/PlatformIO/Projects/Upload Test/.pio/build/nrf52840_dk/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/Users/DaveWyers/OneDrive/Documents/PlatformIO/Projects/Upload Test/.pio/build/nrf52840_dk/zephyr/dts.cmake
Parsing C:/Users/DaveWyers/.platformio/packages/framework-zephyr/Kconfig
Loaded configuration 'C:/Users/DaveWyers/.platformio/packages/framework-zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig'
Configuration saved to 'C:/Users/DaveWyers/OneDrive/Documents/PlatformIO/Projects/Upload Test/.pio/build/nrf52840_dk/zephyr/.config'
Kconfig header saved to 'C:/Users/DaveWyers/OneDrive/Documents/PlatformIO/Projects/Upload Test/.pio/build/nrf52840_dk/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 8.2.1
-- The CXX compiler identification is GNU 8.2.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/DaveWyers/.platformio/packages/toolchain-gccarmnoneeabi/bin/arm-none-eabi-gcc.exe
-- Configuring incomplete, errors occurred!
See also "C:/Users/DaveWyers/OneDrive/Documents/PlatformIO/Projects/Upload Test/.pio/build/nrf52840_dk/CMakeFiles/CMakeOutput.log".
See also "C:/Users/DaveWyers/OneDrive/Documents/PlatformIO/Projects/Upload Test/.pio/build/nrf52840_dk/CMakeFiles/CMakeError.log".
C:\Users\DaveWyers\.platformio\packages\toolchain-gccarmnoneeabi\bin\arm-none-eabi-gdb.exe: warning: Couldn't determine a path for the index cache directory.
CMake Error: Could not find cmake module file: CMakeDetermineTestCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_Test_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_Test_COMPILER
CMake Error: Could not find cmake module file: C:/Users/DaveWyers/OneDrive/Documents/PlatformIO/Projects/Upload Test/.pio/build/nrf52840_dk/CMakeFiles/3.21.3/CMakeTestCompiler.cmake
CMake Error at CMakeLists.txt:3 (project):
No CMAKE_Test_COMPILER could be found.
Tell CMake where to find the compiler by setting the CMake cache entry
CMAKE_Test_COMPILER to the full path to the compiler, or to the compiler
name if it is in the PATH.
CMake Error: Could not find cmake module file: CMakeTestInformation.cmake
CMake Error: CMAKE_Test_COMPILER not set, after EnableLanguage
========================= [FAILED] Took 13.00 seconds =========================
When the project was called “zephyr test” the set up failed, but removing the space as “zephyrtest” worked correctly.
It appears that the second word in the name is being inserted into the make file as an argument which is incorrect. Such as CMakeDetermineTest Compiler.cmake
CMake Error: Could not find cmake module file: CMakeDetermineTestCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_Test_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_Test_COMPILER
CMake Error: Could not find cmake module file: C:/Users/.../PlatformIO/Projects/Upload Test/.pio/build/nrf52840_dk/CMakeFiles/3.21.3/CMakeTestCompiler.cmake
CMake Error at CMakeLists.txt:3 (project):
No CMAKE_Test_COMPILER could be found.
Can I suggest the the New Project wizard be updated to replace spaces with underscores.
“zephyr test” to “zephyr_test”
Regards
Dave