-
-
Notifications
You must be signed in to change notification settings - Fork 111
Add '--set-addr' to defmt-print #988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Deploying knurling-defmt-book with
|
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 |
print/src/main.rs
Outdated
@@ -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 { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point - fixed.
Is that OK @Urhengulas ? |
A second attempt at #985
Tested with SEGGER Ozone.