How RTT I/O works in rtt-target
masterThe rtt-target crate implements the RTT (Real-Time Transfer) I/O protocol. It uses in-memory ring buffers and polling to facilitate input and output via a debug probe. This approach allows for debug logging from a microcontroller with minimal delays and no blocking, making it suitable for real-time applications where semihosting delays are unacceptable.
Note on Locking:
- Using a platform-specific
critical-sectionis required for standard printing. - Writing directly to a channel object using the
write!macro or the binarywritemethod does not require locking and therefore does not require a platform-specific critical section.