knurling-rs / defmt

Efficient, deferred formatting for logging on embedded systems
https://defmt.ferrous-systems.com/
Apache License 2.0
812 stars 74 forks source link

feature: defmt-print detect executable changing #794

Open d3zd3z opened 11 months ago

d3zd3z commented 11 months ago

When debugging using the JLink debugger, it remains attached, and is able to (eventually) detect that the target has reset. However, if using defmt-print tcp to this target, it doesn't notice that the executable has changed, and will continue trying to decode messages from the old symbols. I'm not sure the best way to handle this, but just wanted to think about how it could be handled.

jonathanpallant commented 10 months ago

We might be able to watch the file and reload it if it changes? You could also do something similar using a package like inotify-tools in the interim.