Is there any way to send a value to the read-only part of sbuf in simulation? I tried changing it on the serial channel but it only affects the write-only(or it seems)
The debugger scripts can generally read data sent from your program, and feed data for your UART to receive.