esp-rs/espmonitor

Support `defmt`

Opened this issue · 5 comments

I will be transitioning from defmt-rtt to using the USB Jtag peripheral as my defmt printer since I cannot use direct-boot.

Would it be possible to add defmt decoding support to espmonitor? To be clear, I'm suggesting that there is a commandline flag or something that treats the serial output from the device as being in defmt encoding.

I've never heard of defmt before, so not sure I'm too interested in doing this, but I'd be happy to accept a patch if you're feeling up to implementing it.

Would this issue be better in the espflash repo by any chance? That tool also does monitoring.

I believe espflash uses espmonitor as a library to do its monitoring.

I believe espflash uses espmonitor as a library to do its monitoring.

Hmm, actually that seems not to be the case; the developer over there asked me to make some changes so they could do that, but I guess they never got around to it.

Personally I'd rather have all the good stuff in espmonitor; my opinion is that monitoring is a "distraction" for espflash and it should defer to espmonitor for that. But up to you where you'd rather put your time, if you end up deciding to implement it yourself.