To assist anyone else who may be having issues building AQW fro Zephyr, here’s additional steps that may help you.
Initially, I setup AQW for Zephyr with assistance from Jared. Yesterday, I repeated, the AQW build for Zephyr on macOS Catalina, and was able to build the AQW examples successfully.
jaredwolff The nrf9160feather setup works cleanly without any additional changes. It would be good to have the same for AQW at some stage.
AQW build for Zephyr
1. SDK Setup - download Circuit Dojo Zephyr SDK Tools and install
2. Run Setup - Open command window in VSCode and type Zephyr Tools: Setup
3. Create an empty folder for AQW repo, for example "aqw-demo"
4. Initialize the repo using the Zephyr Tools:Init Repo command
5. Make sure you use https://github.com/circuitdojo/air-quality-wing-zephyr-demo.git as the URL
6. If you get a manifest-tmp error (as currently 04/15/23), move manifest-tmp to aqw-demo folder and rename io demo
7. In aqw-demo/.west, create config file
[manifest]
path = demo
file = west-ncs.yml
[zephyr]
base = zephyr
8. There are two yml files in aqw-demo/demo, west-ncs.yml for Nordic NCS, and west-vanilla.yml for generic Zephyr
west-ncs.yml - Change revision to v2.3.0 to the currently latest Nordic NCS
west-vanilla.yml - Change revision to the latest Zephyr if desired, currently v3.3.0
9. In VSCode Explorer window, select the demo folder & right-click and select "Open in integrated Terminal"
From within the demo repo terminal window, run "git pull" to get the latest aqw repo updates
10. In VSCode Explorer window, select the .west folder & right-click and select "Open in integrated Terminal"
From within the .west terminal window, run "west update" to update the zephyr repo.
11. Run (macOS: Shift + Cmd + P) Zephyr Tools:Change Board - Select particle_xenon
Current supported board targets include:
particle_xenon
circuitdojo_feather_nrf9160_ns
nrf52840dk_nrf52840
12. Run Zephyr Tools:Change Project - Select project, for example "basic"
13. Run Zephyr Tools:Init Repo, navigate to the aqw-demo folder
You may get prompted to update "pip", run: pip install --upgrade pip from a .west terminal window
14. Run Zephyr Tools:Build
Once the build completes you should get a "Build complete!" popup along with success messages in the the terminal.
15. Code may be flashed using a link probe, for example, Segger Edu Mini (preferable for debugging & Segger RTT)
Alternatively, place the device into bootloader mode, then load using the Zephyr Tools: Load via Bootloader task.
Switching repo from NCS (west-ncs.yml) to vanilla Zephyr (west-vanilla.yml)
1. From a VSCode .west terminal window, run the following comamnds to switch from NCS to vanilla zephyr.
west config manifest.file west-vanilla.yml
west update
After executing the above commands, aqw-demo/.west/config will get modified to use "file = west-vanilla.yml".
The zephyr repo can be switch back to using NCS by running the following.
west config manifest.file west-ncs.yml
west update
```