No description
  • Rust 97.1%
  • HTML 2.9%
Find a file
Dániel Buga cc05555b20
Merge pull request #167 from card-io-ecg/probe-rs
Use probe-rs and rtt-target
2024-10-10 17:54:45 +00:00
.cargo Preverify before running 2024-10-10 19:47:56 +02:00
.github/workflows Toolchain tweak 2024-10-10 18:03:08 +02:00
.vscode Add launch configs 2024-10-10 18:03:08 +02:00
ads129x Update bonanza 2024-01-29 13:42:26 +01:00
bad-server Drop embedded-svc 2024-02-25 23:03:24 +01:00
config-site Display list of visible networks 2023-11-06 10:38:11 +01:00
device-descriptor Replace std's padding with impl based on ufmt 2023-10-08 23:02:00 +02:00
embassy-alloc-taskpool Clean up 2023-09-10 19:12:10 +02:00
gui Work around rustc warnings 2024-04-21 21:45:26 +02:00
logger Add println macro 2023-10-19 16:09:32 +02:00
macros Fix transfer coefficient calculation 2023-09-30 16:53:09 +02:00
max17055 Update bonanza 2024-01-29 13:42:26 +01:00
register-access Clean up incomplete_features 2023-11-01 07:25:23 +01:00
signal-processing Update dependencies 2023-11-02 09:35:17 +01:00
src Use probe-rs and rtt-target 2024-10-10 19:25:03 +02:00
xtask Clean up 2024-10-10 19:52:22 +02:00
.gitignore Update esp-println 2023-12-07 21:44:47 +01:00
build.rs Use probe-rs and rtt-target 2024-10-10 19:25:03 +02:00
Cargo.toml Use probe-rs and rtt-target 2024-10-10 19:25:03 +02:00
LICENSE-MIT Initial commit 2023-04-28 09:42:27 +02:00
partitions.csv Add partition table 2023-05-11 09:44:33 +02:00
README.md test 2024-10-10 18:03:08 +02:00
rustfmt.toml Configure rustfmt to merge imports 2023-06-27 20:28:12 +02:00

Card/IO firmware

This repository contains the firmware source code for the Card/IO open source ECG device, built with an ESP32-C6 or ESP32-S3 MCU.

This firmware is in its early stages of development.

Setup

Tools you need to build the firmware:

  • Espressif's Xtensa-enabled rust compiler - espup

    Make sure to run . ~/export-esp.sh before trying to work with the firmware

  • cargo install cargo-espflash
  • cargo install cargo-watch

Enable External / USB JTAG selector solder bridge

  • pip install esptool
  • python -m espefuse burn_efuse --port COM4 STRAP_JTAG_SEL 1

Commands

  • cargo xtask -h: Prints information about available commands. Most of the commands have short aliasses, listed below.
  • cargo xbuild <hw>: Build the firmware for a <hw> version board.
  • cargo xrun <hw>: Build and run the firmware on a <hw> version board.
  • cargo monitor: Connect to the Card/IO device and display serial output. <hw> can be omitted, or one of: v4, v6s3, v6c6. Defaults to v6c6.
  • cargo xcheck <hw>: runs cargo check
  • cargo xclippy <hw>: runs cargo clippy
  • cargo xdoc <hw> [--open]: runs cargo doc and optionally opens the generated documentation.
  • cargo xtest: runs cargo test.
  • cargo example <package> <example> [--watch]: runs an example. Use --watch to enable automatic reload when a file changes.
  • To run the config site on your PC, run cargo example config-site simple --watch and open 127.0.0.1:8080 in a browser.