@jhox616 I’d need your console output.
Also a list of all other plugins that you’ve enabled.
@jhox616 I’d need your console output.
Also a list of all other plugins that you’ve enabled.
Ok so I think this is the console log wanted:
[SETUP] unzip C:\Users\Jerrad\.zephyrtools\downloads\zephyr-tools-0.1.7-x86_64-pc-windows-msvc.zip to C:\Users\Jerrad\.zephyrtools\zephyr-tools
[SETUP] unzip C:\Users\Jerrad\.zephyrtools\downloads\newtmgr.zip to C:\Users\Jerrad\.zephyrtools\newtmgr
[SETUP] unzip C:\Users\Jerrad\.zephyrtools\downloads\ninja-win.zip to C:\Users\Jerrad\.zephyrtools\ninja
[SETUP] unzip C:\Users\Jerrad\.zephyrtools\downloads\cmake-3.22.0-windows-x86_64.zip to C:\Users\Jerrad\.zephyrtools\cmake
[SETUP] Installing zephyr-sdk-0.16.4 toolchain...
[SETUP] 7z extract C:\Users\Jerrad\.zephyrtools\downloads\zephyr-sdk-0.16.4_windows-x86_64_minimal.7z to C:\Users\Jerrad\.zephyrtools\toolchain
[SETUP] 7z extract C:\Users\Jerrad\.zephyrtools\downloads\toolchain_windows-x86_64_arm-zephyr-eabi.7z to C:\Users\Jerrad\.zephyrtools\toolchain\zephyr-sdk-0.16.4
git version 2.49.0.windows.1
[SETUP] git installed
python --version
[SETUP] python3 found
python -m pip --version
pip 22.0.4 from C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\site-packages\pip (python 3.9)
[SETUP] pip installed
python -m venv --help
[SETUP] python3 venv OK
python -m venv "C:\Users\Jerrad\.zephyrtools\env"
[SETUP] virtual python environment created
Requirement already satisfied: west in c:\users\jerrad\.zephyrtools\env\lib\site-packages (1.4.0)
Requirement already satisfied: packaging in c:\users\jerrad\.zephyrtools\env\lib\site-packages (from west) (25.0)
Requirement already satisfied: pykwalify in c:\users\jerrad\.zephyrtools\env\lib\site-packages (from west) (1.8.0)
Requirement already satisfied: colorama in c:\users\jerrad\.zephyrtools\env\lib\site-packages (from west) (0.4.6)
Requirement already satisfied: PyYAML>=5.1 in c:\users\jerrad\.zephyrtools\env\lib\site-packages (from west) (6.0.2)
Requirement already satisfied: ruamel.yaml>=0.16.0 in c:\users\jerrad\.zephyrtools\env\lib\site-packages (from pykwalify->west) (0.18.12)
Requirement already satisfied: python-dateutil>=2.8.0 in c:\users\jerrad\.zephyrtools\env\lib\site-packages (from pykwalify->west) (2.9.0.post0)
Requirement already satisfied: docopt>=0.6.2 in c:\users\jerrad\.zephyrtools\env\lib\site-packages (from pykwalify->west) (0.6.2)
Requirement already satisfied: six>=1.5 in c:\users\jerrad\.zephyrtools\env\lib\site-packages (from python-dateutil>=2.8.0->pykwalify->west) (1.17.0)
Requirement already satisfied: ruamel.yaml.clib>=0.2.7 in c:\users\jerrad\.zephyrtools\env\lib\site-packages (from ruamel.yaml>=0.16.0->pykwalify->west) (0.2.12)
WARNING: You are using pip version 22.0.4; however, version 25.1.1 is available.
You should consider upgrading via the 'C:\Users\Jerrad\.zephyrtools\env\Scripts\python.exe -m pip install --upgrade pip' command.
[SETUP] west installed
[SETUP] Zephyr setup complete!`
Terminal:
`
PS C:\Users\Jerrad\Documents\SmartCollar> west build -b circuitdojo_feather_nrf9160ns -d build
ERROR: source directory "." does not contain a CMakeLists.txt; is this really what you want to build? (Use -s SOURCE_DIR to specify the application source directory)
FATAL ERROR: refusing to proceed without --force due to above error
PS C:\Users\Jerrad\Documents\SmartCollar> `
I have a pop up that says “Provide target folder”
There’s no CMakeLists.txt
in the folder you’re trying to build. Is there a project there? I suggest you use the quick launch menu CTRL+SHIFT+P and type Zephyr Tools: Change
and change the project to what you’re targeting.
The Zephyr Tools plugin also allows you to create blank new projects if that’s needed.
I’d first recommend you follow my instructions here exactly to get some NFED samples working, then, change to use your own project.
Hi Jared,
I followed the guide and still got the error with build.ninja file not being available
Executing task: west build -b circuitdojo_feather_nrf9160/nrf9160/ns -d build\circuitdojo_feather_nrf9160
ninja: error: loading 'build.ninja': The system cannot find the file specified.
FATAL ERROR: command exited with status 1: 'C:\Users\Jerrad\.zephyrtools\cmake\cmake-3.22.0-windows-x86_64\bin\cmake.EXE' --build 'C:\SmartCollar\nfed\samples\blinky\build\circuitdojo_feather_nrf9160'
* The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command west build -b circuitdojo_feather_nrf9160/nrf9160/ns -d build\circuitdojo_feather_nrf9160" terminated with exit code: 1.
I was using python 3.9 but I got the error which says that it was looking for version 3.10. I upgraded and then got the error above. Also this folder is at the very shortest path. I can’t see any reasons why this is not working. I also ran setup two times just to be sure. I made the mistake of running zephyr setup on version 0.15 but then adjusted it to version 0.16.
I was using python 3.9
3.9 is the recommended/tested version
Do you have ninja
in your path? You can type
ninja --version
It should work as long as your setup phase went well.
I have this same issue am have raise another post (pending approval).
I suspect the Zephyr Build process is broken and is silently failing. Have found the 7z sdk has not been unarchived properly or environment variables set as expected.
Working on this now. Stay tuned guys.
It think this was a combination of things:
7z
support stopped working for some reason. It’s now fixed in 0.3.5Setup
and Init Repo
I pushed this version to VS Marketplace. It should be available soon.
jhox616 we got it working with a workaround in place.
see: Other Thread
The extension in VScode will need updating (thanks @jaredwolff ) and you might need to copy onle of the folders if you get a 7zip error.
Good luck!
@FlareHalo I pushed 0.3.6 which should address the issues you were still seeing. Let me know if things look better now. cc @jhox616
@jhox616 did you try the latest update on your side? Let me know if you run into any other snags.