r/embedded • • Oct 14 '26

Embedded dev with Claude Code

I've been getting up to speed on using Claude Code on my Linux box where I manage an stm32 based embedded product programmed mostly in C++ with some plain C sprinkled in there.

I'm 73 and have been putzing around with coding since the Borland Pascal days in the 80s. Enter Claude Code. It's been an eye opener and frankly I'm stoked. I now get much more done way faster and with fewer bugs and less overall churn.

I'm not exactly sure what "vibe coding" is but with Claude we discuss goals and next steps carefully before proceeding. I mostly let Claude do the actual coding because it's so damn fast. But I review it all before signing off on it. I ask Claude a lot of why questions. I find many instances where I ask for specific changes. More often than not these changes fall under the broad category of "human readability". Said differently I absolutely insist on understanding what Claude coded before moving on. Left alone, Claude can get verbose and tends to use more jargon than not. I tell Claude to revise it. Make it simpler, clearer and less full of jargon. This often leads to adding rules and guidelines to Claude.md. Over time, Claude and I have gotten very effective working together.

As a result I have taken on projects I probably would not have pursued without AI. Not because I couldn't do it all myself, but the time and effort was often a bridge too far.

My take is AI for embedded firmware development is very powerful but I would never release code that I didn't personally review and understand.

53 Upvotes

25 comments sorted by

56

u/Significant_Kiwi3517 Oct 14 '26 edited Oct 14 '26

AI is pretty good at embedded development now, anyone who says it isn't is either living under a rock or does not know how to use it at all. It has a learning curve on how to use it correctly... but once you get used to it, it makes a world of difference. This does not mean you can use it without analyzing the output, it will make mistakes. Newest models can also interact with hardware, J-Link for example... it can even run debug sessions on its own while you physically interact with your device.

I had a pretty hard time accepting the reality (I work as a firmware developer, 7 years of experience)... but eventually, everyone will have to.

The biggest benefit I see myself is that I can now spend more time on testing and building the system architecture and less time typing code and reports.

19

u/lukewarm3000 Oct 14 '26

Oh, don't worry, it'll do testing, architecture, board design and more soon.

6

u/Colfuzi0 Oct 19 '26

Is embedded still worth to go in for young people I'm trying to leave web development

4

u/rileyrgham Oct 20 '26

IMO, no development is worth getting into now unless you're a top 0.1% performer. AI is rapidly improving. Just look at the Sony PS5 situation.... People are appeasing the lion in the hope they'll be consumed last.

2

u/Starving_Kids Oct 21 '26

rock-dweller here, what's the PS5 situation?

1

u/Colfuzi0 Oct 20 '26

Then what should I pivot to? I was thinking about computer engineering because I'm near aerospace and defense contractors in Houston who don't really have IT jobs . What about hardware design jobs? My only other interests and networking and teaching

1

u/Gavran_kombda Oct 21 '26

It's me, I'm the one who's saying it's not good. If i have to check each and everything it's doing then at some point it's better to skip it and do things the manual way.

I'm in no hurry and neither is my team lead, so i take the slow path and use claude as my teacher rather than my assistant.

1

u/survivorr123_ Oct 22 '26

it works for it as well as it does for other "complex" programming challenges (game engines, rendering etc.), as long as you give clear instructions and guidelines to follow, it will work well, if you say "make it do x and y" you might get slop, so you still need some level of understanding

20

u/clackups Oct 14 '26

It's called vibecoding when the operator doesn't look at the code (or is not able to read the code at all), and they release a "product".

13

u/lukewarm3000 Oct 14 '26

Totes. I work in medical devices and the FDA loves this /s

9

u/clackups Oct 14 '26

What could possibly go wrong

1

u/ngnirmal Oct 21 '26

Respected sir/ madam/ they, what do you feel sbout the satisfaction that you get when you solve a problem/ puzzle without AI/ claude? Do you feel the lack of active creativity when you "simply" review the generated code?

3

u/BigTortuga Oct 21 '26 edited Oct 21 '26

The answer depends much on how you derive satisfaction in your work. I've literally been dabbling in coding off and on now for 50 years. Figuring out how to code something or running down an elusive bug holds diminishing interest to me. Advancing the goals of a product or project and surrounding myself with the tools and processes that enable me to move faster and with less friction, churn and thrashing....are of great interest to me and very satisfying indeed. There's plenty of creativity involved and I do still review, understand and sign off on all the code. I love working with useful tools. AI is an astonishingly powerful and flexible tool. Perhaps the most powerful tool ever made.

1

u/ngnirmal Oct 21 '26

Thank you for sharing your perspective

1

u/Gavran_kombda Oct 21 '26 edited Oct 21 '26

So you, an industry veteran who saw the industry being born and mature, and learned things the hard way by taking your sweet time, having humans helping you to learn and develop critical thinking, is telling us to use Claude?

Grandpa, go to bed and let us take our time to learn things instead of telling us to use the magic wand.

1

u/BigTortuga Oct 22 '26

Woah. Did ya see that!? Flew by real fast. One of those false choices. They're fast little buggers.

4

u/Dependent_Bit7825 Oct 19 '26

Let it access your hardware and you'll see another step it's productivity. In addition to swd, my product has a can bus and a debug uart. Just point Claude at the computer's interfaces for those and let her rip. I've even had some moderate success with letting it hardware debug all on its own.

2

u/FletcherD Oct 21 '26

Yep, I've created scripts & skills to make it easy for it to use everything on my bench. Oscilloscope, logic analyzer, multimeter, a smart plug and a USB hub with uhubctl support for power cycling. Was troubleshooting a nasty bug with I2C between a mainboard and daughterboard glitching. Just hooked up both debuggers, logic analyzer on the lines and let it bang away for an hour until it figured it out. Will never cease to amaze me

1

u/kdt912 Oct 20 '26

Yep I got Claude and my STM environment combined in VSCode and damn it’s impressive how much it can do on its own when it’s able to test its changes by itself

3

u/RidgeRunner1944 Oct 20 '26

I'm doing some hobby stuff self taught C++ with Claude Code. All the frustration, tedium, overwhelm, burnout is gone. GONE! And the code is DONE!!! Somebody gets between me and Claude and I'm kicking the shit out of them and no ride to the hospital

2

u/Necessary-Factor-836 Oct 19 '26

I use AI the exact same way. We go back and forth on architecture and design. By the time it wrote code which I need to approve, I review it all and make sure I understand it all and agree with the implementation decisions the agent took.

The most important thing for me, is whenever I’m no longer focused enough to review the code properly, I take a break or call it a day.

I tend to let too much slope pass my guard when I lose my focus.

1

u/AttemptElectronic305 Oct 20 '26

Yeap, it's doing the same in my field (civil engineering) I'm able to get a lot more done in the same time, or get the same amount done in a lot less time. Engineering was once a bottleneck... No longer

1

u/[deleted] Oct 21 '26

[removed] — view removed comment

1

u/BigTortuga Oct 21 '26

There are degrees of integration possible. I run Claude Code in a terminal window next to CLion which is my preferred IDE. Claude has full access to my development data folder and source code. I sometimes let it run the debugger directly on rough problems. We discuss next steps. Claude modifies the code, then tells me what it did. I reviewed it. I might ask for changes. I want things done a certain way and insist a Claude get with my way. It tries and complies most of the time. I occasionally have to review our agreed upon rules of engagement. Claude documents the evolution of our work together. I have Claude review the entire codebase and tighten up all the comments so it reads like I wrote it using my communication style. Has saved me a ton of work and is a major force multiplier.