Firmware & Flashing
The Crimpdeq firmware is written in async Rust (no_std) using esp-hal and a small set of supporting crates.
This section explains how to flash the firmware to your device and, optionally, how the code is organized.
Choose the Firmware for Your PCB
Each PCB revision needs its own firmware. Use the latest firmware release for your PCB:
| PCB revision | Firmware |
|---|---|
| V1 | v0.4.0 |
| V2 | v2.x |
| V3 | v3.x |
| V4 | v4.x |
| Prototype | v0.4.0 |
⚠️ Note: Firmware for a different revision does not work with your PCB. For example, V3 uses an ADS1220 ADC instead of the HX711 used by V1 and V2, and V4 moves the ADS1220 data-ready signal and the battery gauge pins.
Choose a Flashing Method
There are two supported ways to flash the firmware:
1. Web Tools
- No local setup required
- Fastest way to install the latest release
- Best if you do not plan to modify the firmware
2. Local Setup
- Requires installing Rust and
probe-rs - Lets you build from source and modify the code
- Better for development and debugging
Firmware Internals
If you want to understand or modify the firmware, see the Firmware Details chapter.
If you only want a working device, you can flash the firmware and continue to Calibration.