-
Create an Anaconda virtual environment
Download Anaconda for Mac(Intel) -
Installing Dependencies
brew install cmake dtc -
Install West
pip install west -
Initialize Zephyr(Tag: v4.0.0)
west init --mr v4.0.0 ~/zephyrproject
cd ~/zephyrproject
west update
pip install -r ~/zephyrproject/zephyr/scripts/requirements.txt -
Setting Up the Toolchain
macOS (x86_64) hosted cross toolchains AArch32 13.2.Rel1
export ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb
export GNUARMEMB_TOOLCHAIN_PATH=~/zephyrproject/arm-gnu-toolchain-13.2.Rel1-darwin-x86_64-arm-none-eabi -
Clone repo
git clone https://github.com/darwinbeing/zpsu_mon.git ~/ -
Compile
cd ~/zpsu_mon
source ~/zephyrproject/zephyr/zephyr-env.shPico Display Pack
west build -b rpi_pico -d build_lcd1 -- -DCONFIG_PICO_DISPLAY_PACK=yPico Display Pack2
west build -b rpi_pico -d build_lcd2 -- -DCONFIG_PICO_DISPLAY_PACK2=y
The WiFi functionality on the Pico W is up and running with Zephyr. The chip ID can be read, and the WiFi firmware downloads properly. For faster transmission, the driver needs to support DMA.