soc-hub-fi / headsail-vp

Headsail - Virtual Platform
0 stars 2 forks source link

Renode UART analyzer hangs after 1024 bytes #38

Closed vilukissa68 closed 1 month ago

vilukissa68 commented 1 month ago

When printing over 1024 bytes to UART with sprintln! or sprint! macroes the Renode UART analyzer hangs, which causes Renode to freeze. It would be nice to be able to print indefinite amounts of data to UART.

vilukissa68 commented 1 month ago

This is a documented issue in Renode: https://github.com/renode/renode/issues/389. The workaround is to disable the Renode analyzer and connect directly to the Pty Terminal instance. For headsail VP this can be done by first commenting out lines

showAnalyzer sysbus.apb_uart_0
showAnalyzer sysbus.apb_uart_1

In the scripts/resc/0_mach_create.resc file

Connecting to Renode serial can be done with screen:

screen /tmp/uart0
screen /tmp/uart1
hegza commented 1 month ago

Nice work finding that out. I've been running into this every now and then.