Day31 - UART Debugging¶
🎯 Objective¶
- Practice systematic UART debugging
- Verify each layer independently
- Build repeatable test method
🧪 Step 1 - Check Device Node¶
🧪 Step 2 - Check Console Occupation¶
🧪 Step 3 - Check Pinmux¶
Expected:
- TXD2
- RXD2
🧪 Step 4 - Configure Raw Mode¶
🧪 Step 5 - Loopback Wiring¶
Connect:
- GPIO4 (TXD2)
- GPIO5 (RXD2)
🧪 Step 6 - Deterministic TX Test¶
🧪 Step 7 - Deterministic RX Test¶
🧪 Step 8 - Continuous RX Monitor¶
(optional, less reliable)
🧪 Step 9 - Python Validation (Recommended)¶
🧪 Step 10 - Error Simulation¶
Try:
- wrong baudrate
- remove loopback
- enable canonical mode
Observe behavior differences
🎯 Lab Result¶
- verified TX path
- verified RX path
- confirmed termios impact
- validated loopback behavior