espmonitor icon indicating copy to clipboard operation
espmonitor copied to clipboard

Support `defmt`

Open TheButlah opened this issue 3 years ago • 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.

TheButlah avatar Nov 20 '22 04:11 TheButlah

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.

kelnos avatar Nov 20 '22 06:11 kelnos

For some additional context: https://github.com/knurling-rs/defmt and https://defmt.ferrous-systems.com/introduction.html

TheButlah avatar Nov 20 '22 06:11 TheButlah

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

TheButlah avatar Nov 20 '22 06:11 TheButlah

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

kelnos avatar Nov 20 '22 07:11 kelnos

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.

kelnos avatar Nov 20 '22 07:11 kelnos