Skip to content

darwinbeing/zpsu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HP HSTNS-PL30 DIY Raspberry Pi Pico Watt Meter

alt text alt text

Build on Mac OS

  1. Create an Anaconda virtual environment
    Download Anaconda for Mac(Intel)

  2. Installing Dependencies
    brew install cmake dtc

  3. Install West
    pip install west

  4. Initialize Zephyr(Tag: v4.2.1)
    west init --mr v4.2.1 ~/zephyrproject
    cd ~/zephyrproject
    west update
    pip install -r ~/zephyrproject/zephyr/scripts/requirements.txt

  5. 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

  6. Clone repo
    git clone https://github.com/darwinbeing/zpsu_mon.git ~/

  7. Compile
    cd ~/zpsu_mon
    source ~/zephyrproject/zephyr/zephyr-env.sh

    Pico RP2040 Display Pack
    west build -b rpi_pico -d build_lcd1 -- -DCONFIG_PICO_DISPLAY_PACK=y

    Pico RP2040 Display Pack2
    west build -b rpi_pico -d build_lcd2 -- -DCONFIG_PICO_DISPLAY_PACK2=y

    Pico2 RP2350A Display Pack
    west build -b rpi_pico2/rp2350a/m33 -d build_lcd3 -- -DCONFIG_PICO_DISPLAY_PACK=y

    Pico2 RP2350A Display Pack2
    west build -b rpi_pico2/rp2350a/m33 -d build_lcd4 -- -DCONFIG_PICO_DISPLAY_PACK2=y

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published