Hello, I am trying to set up a ZEPHYR RTOS project on a teensy 4.1 through vscode using PIO IDE and I get this error message :
PIO Core Call Error: "
The following files/directories have been created in /home/owhenthesaints/Documents/PlatformIO/Projects/P
include - Put project header files here
lib - Put project specific (private) libraries here
src - Put project source files here
platformio.ini - Project Configuration File
Resolving teensy41 dependencies...
Already up-to-date.
Updating metadata for the vscode IDE...
UserSideException: Processing teensy41 (platform: teensy-ts; board: teensy41; framework: zephyr)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
PlatformIO running on linux_x86_64
CONFIGURATION: https://docs.platformio.org/page/boards/teensy-ts/teensy41.html
PLATFORM: Teensy (4.18.0+sha.f2a89fa) > Teensy 4.1
HARDWARE: IMXRT1062 600MHz, 512KB RAM, 7.75MB Flash
DEBUG: Current (jlink) External (jlink)
PACKAGES:
- framework-arduinoteensy @ 1.159.0 (1.59)
- framework-arduinoteensy-ts @ 1.159.0+sha.7e53c09
- framework-zephyr @ 2.20701.220422 (2.7.1)
- tool-cmake @ 3.21.3
- tool-dtc @ 1.4.7
- tool-gperf @ 3.0.4
- tool-ninja @ 1.7.1
- toolchain-arm-cortexm-linux @ 13.2.0-5+sha.e9efc43
Reading CMake configuration...
TypeError: expected str, bytes or os.PathLike object, not NoneType:
File "/home/owhenthesaints/.platformio/penv/lib/python3.10/site-packages/platformio/builder/main.py", line 173:
env.SConscript("$BUILD_SCRIPT")
File "/home/owhenthesaints/.platformio/packages/tool-scons/scons-local-4.6.0/SCons/Script/SConscript.py", line 609:
return _SConscript(self.fs, *files, **subst_kw)
File "/home/owhenthesaints/.platformio/packages/tool-scons/scons-local-4.6.0/SCons/Script/SConscript.py", line 279:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/home/owhenthesaints/.platformio/platforms/teensy-ts/builder/main.py", line 186:
target_elf = env.BuildProgram()
File "/home/owhenthesaints/.platformio/packages/tool-scons/scons-local-4.6.0/SCons/Util/envs.py", line 251:
return self.method(*nargs, **kwargs)
File "/home/owhenthesaints/.platformio/packages/framework-zephyr/scripts/platformio/platformio-build-pre.py", line 25:
env.ProcessProgramDeps()
File "/home/owhenthesaints/.platformio/packages/tool-scons/scons-local-4.6.0/SCons/Util/envs.py", line 251:
return self.method(*nargs, **kwargs)
File "/home/owhenthesaints/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/piobuild.py", line 121:
env.BuildFrameworks(env.get("PIOFRAMEWORK"))
File "/home/owhenthesaints/.platformio/packages/tool-scons/scons-local-4.6.0/SCons/Util/envs.py", line 251:
return self.method(*nargs, **kwargs)
File "/home/owhenthesaints/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/piobuild.py", line 347:
SConscript(env.GetFrameworkScript(name), exports="env")
File "/home/owhenthesaints/.platformio/packages/tool-scons/scons-local-4.6.0/SCons/Script/SConscript.py", line 673:
return method(*args, **kw)
File "/home/owhenthesaints/.platformio/packages/tool-scons/scons-local-4.6.0/SCons/Script/SConscript.py", line 609:
return _SConscript(self.fs, *files, **subst_kw)
File "/home/owhenthesaints/.platformio/packages/tool-scons/scons-local-4.6.0/SCons/Script/SConscript.py", line 279:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/home/owhenthesaints/.platformio/platforms/teensy-ts/builder/frameworks/zephyr.py", line 27:
SConscript(
File "/home/owhenthesaints/.platformio/packages/tool-scons/scons-local-4.6.0/SCons/Script/SConscript.py", line 673:
return method(*args, **kw)
File "/home/owhenthesaints/.platformio/packages/tool-scons/scons-local-4.6.0/SCons/Script/SConscript.py", line 609:
return _SConscript(self.fs, *files, **subst_kw)
File "/home/owhenthesaints/.platformio/packages/tool-scons/scons-local-4.6.0/SCons/Script/SConscript.py", line 279:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/home/owhenthesaints/.platformio/packages/framework-zephyr/scripts/platformio/platformio-build.py", line 1223:
codemodel = get_cmake_code_model(west_manifest)
File "/home/owhenthesaints/.platformio/packages/framework-zephyr/scripts/platformio/platformio-build.py", line 286:
run_cmake(manifest)
File "/home/owhenthesaints/.platformio/packages/framework-zephyr/scripts/platformio/platformio-build.py", line 263:
result = exec_command(cmake_cmd, env=zephyr_env)
File "/home/owhenthesaints/.platformio/penv/lib/python3.10/site-packages/platformio/proc.py", line 114:
with subprocess.Popen(*args, **kwargs) as p:
File "/usr/lib/python3.10/subprocess.py", line 971:
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1783:
env_list.append(k + b'=' + os.fsencode(v))
File "/usr/lib/python3.10/os.py", line 811:
filename = fspath(filename) # Does type-checking of `filename`.
========================== [FAILED] Took 0.85 seconds ==========================
Thanking you in advance for you kind help .