probe-rs / rtt-target

Target side implementation of the RTT (Real-Time Transfer) I/O protocol
MIT License
123 stars 30 forks source link

Blocking mode write blocks forever on a large buffer #9

Closed jacobrosenthal closed 4 years ago

jacobrosenthal commented 4 years ago

Blocking mode blocks forever in probe-run and cargo embed rprintln a large buffer

Japaric was able to confirm defmt services rtt correctly so its not hardware or user code https://github.com/knurling-rs/probe-run/issues/16

Any gotta be something in here. Ideas on where to attack? Thanks!

mvirkkunen commented 4 years ago

Do you have firmware code that reproduces the problem available somewhere? Or at least information as to what you're writing and how big the buffer is?

jacobrosenthal commented 4 years ago

https://github.com/jacobrosenthal/dsp-discoveryf4-rust/blob/348584273db40b179405462f21e0d88f4702a710/lab2/examples/2_14_direct_fir_filtering.rs#L43

mvirkkunen commented 4 years ago

Welp, that's a bug. Seems I broke writing long messages while implementing the other blocking modes. Found a fix already, will take a look at releasing it soon.

jacobrosenthal commented 4 years ago

Confirmed. Release? Thanks!

mvirkkunen commented 4 years ago

I'm adding a couple of other things in the process, stand by!