~/talk

TDD for Microcontrollers

Talkat Meeting C++ 2023 · 2023-11-12..11-14· [testing]
links:none on file
slides:none on file

Explains how dual-target (host/off‑target + cross‑compiled on‑target) testing plus open loop tests let TDD hit microcontroller pin behavior, using Robot Framework to script a testbench that flashes STM32 firmware, sends UART frames, captures logic‑analyzer traces and gives feedback in seconds (flashes can be 2–3s). Shows a parity‑bit regression found by tests, demos an execution platform commercial test system that automates peripherals, and recommends running off‑target tests also on target to catch toolchain and hardware differences.

AI-written summary · about

  1. 0:00TDD for microcontrollers
  2. 0:42Embedded testing challenges
  3. 3:12Embedded vs traditional TDD
  4. 5:24Dual Target testing by James Grenning
  5. 7:30Off Target testing with desktop compilers
  6. 11:50Risks of off Target testing
  7. 14:43On Target testing for hardware code
  8. 17:17Limitations of register-based testing
  9. 25:20Open loop testing for pin behavior
  10. 28:15Live demo: open loop testing with UART
  11. 35:23Debugging parity issues with tests
  12. 39:21Open loop testing benefits
  13. 41:29Testing approaches in embedded systems
  14. 42:12Q&A: On Target vs off Target ratios
  15. 45:28Real-time requirements in tests
  16. 47:01Hardware emulation unreliability
  17. 48:54TDD in functional safety
  18. 50:20Integration vs TDD feedback loops
  19. 51:44Bug detection in pin tests
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.