Adopt proper embedded tooling for the blank-screen debug (user has a Pi Debug Probe):
- flip-link linker (baked into pm-rust:2): stack overflow faults cleanly instead of
silently corrupting .bss/.data (the SPI buffer -> black screen class of bug).
- defmt + defmt-rtt + panic-probe: firmware logs boot/heap-free/display/parse/loop
heartbeat over RTT; panics print message+location. .cargo runner = probe-rs run.
- Restore the full live metronome (from 08b0940) as the instrumented target.
- deploy + serve pm-kit.elf (probe-rs decodes defmt strings from the ELF).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
10 lines
501 B
Docker
10 lines
501 B
Docker
# Rust toolchain for the PM track-format crate (Stage 1 of the Rust port).
|
|
# Host-tested codec for now; the RP2350 firmware target is added for later stages.
|
|
FROM docker.io/library/rust:1-slim
|
|
|
|
# Cortex-M33 target for the eventual RP2350 firmware. Harmless for the host tests.
|
|
RUN rustup target add thumbv8m.main-none-eabihf \
|
|
&& rustup component add llvm-tools-preview \
|
|
&& cargo install flip-link # stack-overflow-safe linker (overflow faults instead of corrupting statics)
|
|
|
|
WORKDIR /work/rust
|