jacobrosenthal / hf2-rs

Microsoft HF2 HID Flashing Format for UF2 Bootloaders
49 stars 14 forks source link

cargo hf2 fails with value Transmission, but also succeeds #11

Closed jacobrosenthal closed 4 years ago

jacobrosenthal commented 4 years ago
$ cargo hf2 --release --example usb_joystick_rtfm --features="usb"
    Finished release [optimized + debuginfo] target(s) in 0.29s
    Searching for a connected device with known vid/pid pair.
    Trying  Ok(Some("Adafruit Industries")) Ok(Some("PyGamer"))
    Flashing "/Users/jacobrosenthal/Downloads/atsamd/boards/pygamer/target/thumbv7em-none-eabihf/release/examples/usb_joystick_rtfm"
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Transmission', src/libcore/result.rs:1188:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

Goblin is returning multiple bin sections now when it didnt appear to before. So it was trying to flash multiple addresses.. Im not entirely sure if and when ever wed have multiple bins in an elf, or if we can rely on strict ordering to them..