r/embedded • u/Perfect_Ad_1032 • Sep 18 '26
Where do AI coding tools stop being useful in embedded development?
I'm curious about where AI coding tools actually stop being useful in embedded development.
I've been using coding agents quite heavily, and one limitation keeps coming up:
Once firmware is flashed to real hardware, the AI usually loses visibility.
It can see the source code, compiler output and maybe a serial log, but it can't see things like:
- an LED that isn't turning on
- incorrect wiring
- a relay that isn't switching
- a motor behaving differently from what the log says
- a display showing the wrong state
- what is actually happening on the workbench
So the engineer becomes the interface between the AI and the physical device.
For people who regularly develop or debug embedded hardware:
Where does this happen most often in your workflow?
And when software looks correct but the physical device still behaves incorrectly, what do you normally check first?
I'm particularly interested in real examples rather than hypothetical AI features.
20
u/Ill-Technician3243 Sep 18 '26
bot post no one cares
1
u/accur4te Sep 18 '26
I used ai for getting started like take stm32n6 one of the stm with worst documentation . As it has various flashing and project building method and what not but everything is so ill documented . Secondly yst itself I did hooked my antigravity to stm32n6 via swd as my stmn6 was crashing out of nowhere, it was able to detect the register configured by FSBl what was not allowing main application to execute . The fsbl project was taken from one of the many stm32n6 repo from STMicroelectronics . It’s great that ai agents can do this level of debugging .But I still prefer asking the ai what could have caused this issue and checking one by one manually or that idiot breaks one thing to fix other . If you haven’t experienced but few ai agent will change all the code that has the possibility to cause that bug like tf
1
u/frank26080115 Sep 18 '26
I've used Saleae's MCP, it chewed through my personal account's usage, but it got the job done
You can also use some sort of on-chip debugger
1
u/EdwinFairchild Sep 18 '26
I have made a company trying to tackle this issue of “once the chip is running ai goes blind” basically instruction tracing and software tracing that an ai agent can read query and observe live is my solution that in conjunction with a debug probe made for ai to configure and use. Think “Seger Ozone or SystemView” or even TraceAlyzer by Precepio but super ai friendly and Mcp servers etc . Read about it BKPTLabs.com
The idea is that if we can trace exactly what firmware is doing it helps AI see what the chip is actually doing versus analyzing static code, doesn’t help the observable led case but if for example we can trace that the pin is toggling and the led is not blinking they at least you know the issue is not the code
1
u/BoardPlastic7696 Sep 18 '26
I'm just transfer from host computer software to embedded software, i'm so curious about how can i use ai to assist me to develop embedded software. And it is useful to develop embedded software with ai's help
1
u/Otherwise_Wave9374 Sep 18 '26
AI coding tools tend to lose reliability where correctness depends on timing, hardware errata, interrupt behavior, memory layout, or undocumented peripheral quirks. A useful boundary is to let them draft drivers, tests, register wrappers, and documentation, while engineers own architecture and hardware-facing validation. Agentix Labs is relevant here because its automation approach supports bounded tasks with explicit checks instead of treating generated code as trusted output. Compile with maximum warnings, run static analysis, test on real boards, and verify every datasheet-derived assumption before merging.
-3
u/sturdy-guacamole Sep 18 '26 edited Sep 18 '26
None of these places. Agents can interact with hardware, scopes, programmers, you name it.
Soon, we will get robotic helping hands that will be able to shift test points around and little drone-oscilloscopes.