PIO new project wizard Error creating teensy project with zephyr rtos

Creating new project in PIO wizard for teensy40 or teensy41 with zephyr framework the wizard report this error popup

PIO Core Call Error: “The current working directory C:\Users\marco\Documents\PlatformIO\Projects\teensy zephyr will be used for the project.\r\n\r\nThe next files/directories have been created in C:\Users\marco\Documents\PlatformIO\Projects\teensy zephyr\r\ninclude - Put project header files here\r\nlib - Put here project specific (private) libraries\r\nsrc - Put project source files here\r\nplatformio.ini - Project Configuration File\r\nResolving teensy40 dependencies…\r\nAlready up-to-date.\r\nUpdating metadata for the vscode IDE…\r\n\n\nError: Processing teensy40 (platform: teensy; board: teensy40; framework: zephyr)\r\n--------------------------------------------------------------------------------\r\nVerbose mode can be enabled via -v, --verbose option\r\nCONFIGURATION: https://docs.platformio.org/page/boards/teensy/teensy40.html\r\nPLATFORM: Teensy (4.17.0) > Teensy 4.0\r\nHARDWARE: IMXRT1062 600MHz, 512KB RAM, 1.94MB Flash\r\nDEBUG: Current (jlink) External (jlink)\r\nPACKAGES: \r\n - framework-zephyr @ 2.20701.220422 (2.7.1) \r\n - tool-cmake @ 3.21.3 \r\n - tool-dtc @ 1.4.7 \r\n - tool-ninja @ 1.9.0 \r\n - toolchain-gccarmnoneeabi @ 1.80201.181220 (8.2.1)\r\nReading CMake configuration…\r\n– Application: C:/Users/marco/Documents/PlatformIO/Projects/teensy zephyr/zephyr\r\n– Zephyr version: 2.7.1 (C:/Users/marco/.platformio/packages/framework-zephyr)\r\n– Found Python3: C:/Users/marco/.platformio/penv/Scripts/python.exe (found suitable exact version "3.9.13") found components: Interpreter \r\n– Board: teensy40\r\n– Cache files will be written to: C:/Users/marco/.platformio/packages/framework-zephyr/.cache\r\n– Found dtc: C:/Users/marco/.platformio/packages/tool-dtc/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")\r\n– Found toolchain: gnuarmemb (C:/Users/marco/.platformio/packages/toolchain-gccarmnoneeabi)\r\n– Found BOARD.dts: C:/Users/marco/.platformio/packages/framework-zephyr/boards/arm/teensy4/teensy40.dts\r\n– Generated zephyr.dts: C:/Users/marco/Documents/PlatformIO/Projects/teensy zephyr/.pio/build/teensy40/zephyr/zephyr.dts\r\n– Generated devicetree_unfixed.h: C:/Users/marco/Documents/PlatformIO/Projects/teensy zephyr/.pio/build/teensy40/zephyr/include/generated/devicetree_unfixed.h\r\n– Generated device_extern.h: C:/Users/marco/Documents/PlatformIO/Projects/teensy zephyr/.pio/build/teensy40/zephyr/include/generated/device_extern.h\r\n– Including generated dts.cmake file: C:/Users/marco/Documents/PlatformIO/Projects/teensy zephyr/.pio/build/teensy40/zephyr/dts.cmake\r\nParsing C:/Users/marco/.platformio/packages/framework-zephyr/Kconfig\r\n\r\nLoaded configuration ‘C:/Users/marco/.platformio/packages/framework-zephyr/boards/arm/teensy4/teensy40_defconfig’\r\n\r\nConfiguration saved to ‘C:/Users/marco/Documents/PlatformIO/Projects/teensy zephyr/.pio/build/teensy40/zephyr/.config’\r\n\r\nKconfig header saved to ‘C:/Users/marco/Documents/PlatformIO/Projects/teensy zephyr/.pio/build/teensy40/zephyr/include/generated/autoconf.h’\r\n\r\n– The C compiler identification is GNU 8.2.1\r\n– The CXX compiler identification is GNU 8.2.1\r\n– The ASM compiler identification is GNU\r\n– Found assembler: C:/Users/marco/.platformio/packages/toolchain-gccarmnoneeabi/bin/arm-none-eabi-gcc.exe\r\n– Configuring incomplete, errors occurred!\r\nSee also "C:/Users/marco/Documents/PlatformIO/Projects/teensy zephyr/.pio/build/teensy40/CMakeFiles/CMakeOutput.log".\r\nSee also "C:/Users/marco/Documents/PlatformIO/Projects/teensy zephyr/.pio/build/teensy40/CMakeFiles/CMakeError.log".\r\n\r\nC:\Users\marco\.platformio\packages\toolchain-gccarmnoneeabi\bin\arm-none-eabi-gdb.exe: warning: Couldn’t determine a path for the index cache directory.\r\n\r\nCMake Error: Could not find cmake module file: CMakeDeterminezephyrCompiler.cmake\r\nCMake Error: Error required internal CMake variable not set, cmake may not be built correctly.\r\nMissing variable is:\r\nCMAKE_zephyr_COMPILER_ENV_VAR\r\nCMake Error: Error required internal CMake variable not set, cmake may not be built correctly.\r\nMissing variable is:\r\nCMAKE_zephyr_COMPILER\r\nCMake Error: Could not find cmake module file: C:/Users/marco/Documents/PlatformIO/Projects/teensy zephyr/.pio/build/teensy40/CMakeFiles/3.21.3/CMakezephyrCompiler.cmake\r\nCMake Error at CMakeLists.txt:3 (project):\r\n No CMAKE_zephyr_COMPILER could be found.\r\n\r\n Tell CMake where to find the compiler by setting the CMake cache entry\r\n CMAKE_zephyr_COMPILER to the full path to the compiler, or to the compiler\r\n name if it is in the PATH.\r\n\r\n\r\nCMake Error: Could not find cmake module file: CMakezephyrInformation.cmake\r\nCMake Error: CMAKE_zephyr_COMPILER not set, after EnableLanguage\r\n========================= [FAILED] Took 18.37 seconds =========================”

I can see error updating metadata vs code for teensy and a path error cor cmake, but where i need to set the path?
I don’t understand where i’m wrong

  1. Is this in OneDrive?
  2. Does it work in a project that has no spaces in its name?

I just tested on Linux and works with no problems. Platform-Teensy has also no recorded Zephyr issues.

Hi, thanks for reply
no the folder is in local drive
I have tryed without space and works fine… incredible.
for confirm i have tryed with space again and not works.
the problem is the space !!!

many many thanks