This firmware transmit cobs encoder data via usb-cdc.
- download rppico-encoder-node.uf2 from latest release
- connect raspberry pi pico with boot mode
- mount raspberry pi pico mass storage
- copy rppico-encoder-node.uf2 to raspberry pi pico
- OK!
install toolchain.
# install target for arm cortex-M0+
rustup target install thumbv6m-none-eabi
# install tools for development
cargo install flip-link elf2uf2-rs probe-run
# build
cargo build --release
# create uf2 binary (rppico-encoder-firm is elf file)
elf2uf2rs target/thumbv6m-none-eabi/release/rppico-encoder-firm target/thumbv6m-none-eabi/release/rppico-encoder-firm.uf2
you can run program on raspberry pi pico with below command
cargo run
or
cargo build --release
elf2uf2rs -d target/thumbv6m-none-eabi/release/rppico-encoder-firm