Skip to content

Conversation

jonathanpallant
Copy link
Contributor

A second attempt at #985

Tested with SEGGER Ozone.

Copy link

cloudflare-workers-and-pages bot commented Sep 10, 2025

Deploying knurling-defmt-book with  Cloudflare Pages  Cloudflare Pages

Latest commit: d79da45
Status: ✅  Deploy successful!
Preview URL: https://f3b24fc7.knurling-defmt-book.pages.dev
Branch Preview URL: https://set-addr-main.knurling-defmt-book.pages.dev

View logs

@@ -106,6 +121,27 @@ impl Source {
Ok(Source::Serial(ser))
}

async fn set_rtt_addr(&mut self, elf_bytes: &[u8]) -> anyhow::Result<()> {
let Source::Tcp(tcpstream) = self else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since passing --set-addr only makes sense with tcp we could warn if it is used with serial. Or we could move it into Command::Tcp so it is only available with tcp.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point - fixed.

@jonathanpallant
Copy link
Contributor Author

Is that OK @Urhengulas ?

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.

3 participants