tdd for microcontroller
summary
Demonstrates a practical TDD workflow for MCUs by combining the dual-target approach with a new open loop testing layer: Robot Framework tests call single functions on an RP2040 execution platform, FPGA-backed endpoints observe pins (I2C, GPIO, CAN) with a logic-analyzer view, and tests run in ~5–10 seconds. Shows a real I2C write test that observes SDA/SCL, measures 180–220 kHz, and finds a clock-order bug; argues register-based tests are brittle and unsuitable for modern controllers.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 1:27What is TDD
- 2:55Challenges in embedded TDD
- 4:01Off-target testing explained
- 7:36Risks of off-target testing
- 10:51On-target testing approach
- 13:26Limitations and the elephant
- 16:38Problems with register-based testing
- 20:55Introducing open loop testing
- 25:00Live demo setup
- 28:14Demo running I2C test
- 33:16Testing clock changes
- 37:39Core idea of open loop testing
- 39:29Try the demo yourself
- 41:15Supporting open source projects
- 42:02Q&A session
