Troubleshooting guide
Some of the solutions to common problems students have faced when setting up the toolchain are provided here.
If you have faced other issues that are not here and have managed to solve them, please get in touch with the TAs so this website can be updated and other students facing similar issues can benefit.
CMake unable to find Python or Zephyr
In some cases, CMake fails to find Zephyr and Python. If this is the case on your machine, then add the following to CMakeLists.txt
, right after the set(CONF_FILE prj.conf)
.
find_package(python)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
Note that you have to replace
find_package(Zephyr)
withfind_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
and not have both
CMake still unable to find Python
If CMake still can't find Python, then add the below to CMakeLists.txt
, right after set(CONF_FILE prj.conf)
.
set(Python3_EXECUTABLE "/usr/bin/python")
set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE})