Skip to content

m5stack/VAMeter-Firmware

Repository files navigation

VAMeter-Firmware

Firmware source code of VA Meter.

Tree

.
├── app
│   ├── apps                    # Apps
│   │   ├── app_files
│   │   ├── app_launcher
│   │   ├── app_power_monitor
│   │   ├── app_settings
│   │   ├── app_startup_anim
│   │   ├── app_template
│   │   ├── app_waveform
│   │   └── utils
│   ├── assets                  # Asset Pool
│   └── hal                     # HAL defines
└── platforms
    ├── desktop                 # Desktop project
    └── vameter                 # IDF project

Build

Fetch Dependencies

python ./fetch_repos.py

Desktop Build

Tool Chains

sudo apt install build-essential cmake

Build

mkdir build && cd build
cmake .. && make -j8

Run

cd desktop && ./app_desktop_build

IDF Build

Tool Chains

ESP-IDF v5.1.3

Build

cd platforms/vameter
idf.py build

Flash

idf.py -p <YourPort> flash -b 1500000
Flash AssetPool
parttool.py --port <YourPort> write_partition --partition-name=assetpool --input "path/to/AssetPool-VAMeter.bin"

If you run desktop build before, you can found AssetPool-VAMeter.bin at

../../build/desktop/AssetPool-VAMeter.bin. Or download one from the release page.