Skip to main content

Section 3.2 In-Class Session

Today we’ll get print statements working on your own board. We’ll start by building a Counter project that prints to a terminal window on your laptop over UART, and we’ll change the terminal’s settings while it runs to see what happens when the two ends of the wire disagree about them. We’ll then go through uart.c, the driver that makes printf() arrive there. Today’s goal is to understand what uart2_init() does and how a single byte is sent and received. In the last part we’ll start the keyboard-controlled counter, which reads the characters you type in the terminal and changes the count; you will finish it at home.