Skip to content

Conversation

@ioqnq
Copy link

@ioqnq ioqnq commented Sep 2, 2025

Pull Request Overview

This pull request fixes and simplifies the WIP of the serial install implementation.

TODO or Help Wanted

Needs proper error-handling:

// TODO: handle error properly
// let (ver, header_len, whole_len) = parse_tbf_header_lengths(
// &message[0..8]
// .try_into()
// .expect("Buffer length must be at least 8 bytes long."),
// //TODO: select an appropriate error
// )
// .unwrap();
// if header_len == 0 {
// break; // No more apps
// }
let (_ver, _header_len, whole_len) = match parse_tbf_header_lengths(
&message[0..8]
.try_into()
.expect("Buffer length must be at least 8 bytes long."),
) {
Ok((ver, header_len, whole_len)) if header_len != 0 => (ver, header_len, whole_len),
_ => break, // No more apps
};
address += whole_len as u64;

Checks

Using Rust tooling

  • Ran cargo fmt
  • Ran cargo clippy
  • Ran cargo test
  • Ran cargo build

Features tested:

  • info with probe-rs on microbit-v2
rsinfo
  • info with serial on microbit-v2
serialinfo
  • info with tockloader on microbit-v2
pyinfo
  • list with probe-rs on microbit-v2
rslist
  • list with serial on microbit-v2
seriallist
  • list with tockloader on microbit-v2
pylist

GitHub Issue

This pull request closes #48

@ioqnq ioqnq force-pushed the 84-install branch 2 times, most recently from 86d4502 to b106702 Compare September 2, 2025 18:51
@eva-cosma
Copy link
Collaborator

Is this ready for review?

@ioqnq
Copy link
Author

ioqnq commented Sep 12, 2025

Is this ready for review?

At the time I was told to create this draft PR in order for you to test for errors. The code in its current state should be functional but I'm still working on simplifying it.

@eva-cosma eva-cosma marked this pull request as ready for review September 15, 2025 07:52
@eva-cosma
Copy link
Collaborator

All good to start review @ioqnq ?

@ioqnq ioqnq force-pushed the 84-install branch 2 times, most recently from 115debe to 7491f8a Compare September 26, 2025 12:54
Signed-off-by: Nedelcu Ioana <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integrate install command for SerialConnection

3 participants