Embedded AI Podcast

E11 debugging embedded systems using AI

Ryan and Luca explore practical techniques for using AI to debug embedded systems -- from analyzing breadboard photos to parsing UART output and managing complex debugging workflows. LLMs work best as force multipliers rather than replacements for engineering expertise: they handle tedious tasks like adding printf statements, analyzing logs, and decoding resistor color codes, while the engineer guides the process and catches mistakes.

A key theme is context management: balancing deterministic scripts for repeatable tasks with non-deterministic AI analysis, and using separate sessions to keep debugging focused. We share cautionary tales of LLMs getting stuck in loops or reverting to common patterns despite specific instructions -- human oversight remains essential. Experienced engineers benefit most because they can effectively steer the LLM and recognize when it goes off track.

Key Topics:

  • [02:30] Debugging hardware via photos -- having LLMs identify wiring errors on breadboards
  • [06:45] The rubber duck effect -- LLMs as interactive debugging partners
  • [11:20] Printf debugging with AI -- adding debug statements and analyzing UART output
  • [15:40] Context management -- separate sessions, distilled datasheet summaries
  • [22:15] LLM failure modes -- loops, pattern reversion, ignoring specific instructions
  • [28:30] Force multiplier vs. replacement -- why experience matters more with AI tools
  • [33:50] Deterministic scripts + non-deterministic AI analysis
  • [38:20] Future: webcams and oscilloscope screenshots for real-time hardware debugging

Notable Quotes:

"It's like the over-eager intern -- it's a little naive, but it can type like the devil." -- Luca Ingianni

"You cannot use an LLM as a replacement for your brain or for your experience, but you can use it as a force multiplier." -- Luca Ingianni

"The LLM does not have that emotional connection to the code. I don't think people understand how emotional that connection is." -- Ryan Torvik

Resources Mentioned:

  • Claude Code (Anthropic) -- AI coding assistant used for debugging, image analysis, and code generation
  • Arduino/Elegoo Development Boards -- hardware platforms discussed in context of voltage compatibility debugging
  • Agile Embedded Podcast -- Luca's podcast on agile practices in embedded development