Lab 7 Check
sh
machinelab test uart
machinelab run --headless -- build/examples/uart_loopback
machinelab run-pair --headless build/examples/uart_peer_sender --right build/examples/uart_peer_receiverDiscussion Prompts
- What fields would you add to a packet protocol built on UART bytes?
- How should a receiver recover if it starts mid-packet?
- Why is loopback useful before two-machine communication?
External Reading
- OSDev Serial Ports: https://wiki.osdev.org/Serial_Ports
- OSDev UART: https://wiki.osdev.org/UART
- 16550 UART programming: https://en.wikibooks.org/wiki/Serial_Programming/8250_UART_Programming