The Embedded Frontier

The Embedded Frontier

By Jacob BeningoBusinessTechnologyEducation
Download on the App Store

All The Embedded Frontier episodes

  • #029 - How to Write Fast RTOS Code
    Jacob Beningo talks with RTOS pioneer Bill Lamie, creator of Nucleus, ThreadX, and PX5 RTOS, about how to write efficient, high-performance real-time code. They cover POSIX pthreads, keeping software simple, RTOS benchmarking, test-driven development, using AI as a development teammate, and practical tips for structuring RTOS applications.

    Key Takeaways:

    • Keep it simple: complexity is the biggest enemy of embedded software, and a complex solution is probably not the right one.
    • Minimize nested function calls in critical paths, since pushing and popping registers and return addresses is expensive.
    • Design for performance from the start. Every comparison and data reference matters in the real-time path, and performance can't be bolted on at the end.
    • Use an error-checking veneer selectively. Enable it for new or untrusted code and call the direct API for proven code to save cycles.
    • Standardizing on the POSIX pthreads API makes it easier to share code between Linux and RTOS-based products and to move between RTOSes.
    • Write documentation before code to keep your design flexible and expose interfaces that are hard to explain.
    • Adopt test-driven development by writing test cases before the code. This keeps you from writing unreachable paths and makes coverage targets such as 100% statement and branch coverage achievable.
    • Treat AI as a teammate, not a replacement. It excels at tedious tasks like proofreading, QA, concurrency review, and quick hardware lookups, but it isn't reliable for pure code generation.
    • Put as many threads as possible at the same priority and use higher priorities only when preemption is absolutely necessary.
    • Use a minimalist number of threads and system objects to reduce accidental RTOS overhead.

    Links:

    • PX5 RTOS
    • Bill Lamie on LinkedIn
    • 2026 RTOS Performance Report
    • Eclipse ThreadX
    • Why RTOS Functional Safety Certification Matters
    • RTOS Best Practices Course
    35 min
  • #028 - From Coding Assistants to Autonomous Engineering
    Jacob Beningo explores the shift from using AI as a coding assistant to agentic firmware development, where AI agents autonomously build, debug, test, and verify embedded systems. He shares a real experiment using an NXP MCX N947 board and an AI-written I2C driver. He also covers hardware safety guardrails, simulation, and how embedded engineers can evolve into systems engineers.

    Key Takeaways:

    • Most teams use AI only as a coding assistant. The bigger gains come from agentic workflows where AI builds, debugs, tests, and verifies firmware.
    • AI doesn't get firmware right on the first try, and neither do human engineers. It needs the ability to iterate, as with test-driven development.
    • Connecting an AI agent to real hardware or a simulator lets it observe results, find root causes, and fix problems instead of guessing.
    • In the I2C experiment, the agent correctly diagnosed a hardware problem (a backwards click board) that the engineer had wrongly blamed on the software.
    • Once the board was fixed, the agent produced a tested, production-grade temperature and humidity sensor driver within about an hour.
    • A robust agentic workbench combines skills, agents, RAG, and MCP servers, with an orchestration agent following your own development processes.
    • Give agents access to debuggers, oscilloscopes, logic analyzers, and adjustable power supplies. This brings real risk, including fire hazards, hardware damage, and liability.
    • Build safety into MCP servers. For example, require users to set voltage and current limits up front, and prompt for approval whenever the agent tries to exceed them.
    • Simulation offers a safe, continuous way to validate AI-generated code, especially when hardware is dangerous to leave unattended.
    • Start small. Pick a repetitive daily task with a clear outcome, automate it, then expand the workflow gradually while keeping human verification and static analysis in place.
    26 min
  • #027 - Agentic Firmware Development is Here
    Jacob Beningo explains why agentic firmware development is already here and how embedded teams can move beyond ad hoc AI prompting. He covers skills, agents, RAG databases, and MCP servers, shows how NXP's new agentic AI tools put them into practice, and offers practical steps for building an agentic firmware workbench.

    Key Takeaways:

    • In a poll of 50 embedded developers at a conference, everyone used AI, but only two were building skills, agents, or RAG databases, and only one was using MCPs.
    • Ad hoc prompting is not agentic development. Agentic workflows combine skills, agents, RAG, and MCPs to get repeatable results.
    • Encode your company's coding style guide in a RAG database and give an agent access to it so code reviews and driver generation follow your standards.
    • If you use AI for the same task more than two or three times, build a skill for it.
    • Build an agent when you keep orchestrating the same skills and sub-agents, and use RAG for knowledge you keep pasting into prompts.
    • MCP servers give AI "hands" in the physical world, such as debug sessions, power supplies, and oscilloscope or logic analyzer data, so it can work iteratively in a loop.
    • Silicon vendors like NXP are releasing LLM-independent agentic toolkits with around 100 prebuilt skills, MCP connectors, AI-powered documentation, and prompt libraries.
    • As AI produces thousands of lines of code, validation and test harnesses around AI tooling become critical.
    • AI makes mistakes like human engineers do, and iterating on them is similar to agile. Used well, it can handle the boring infrastructure work so developers can focus on innovation.
    • Jacob expects embedded development to change dramatically in the next 6–12 months, so start learning these techniques now rather than falling behind.
    24 min
  • #026 - Metrics Dashboards to the Rescue
    Jacob Beningo concludes his embedded software modernization framework series by discussing the establishment of metrics scoreboards for embedded systems development. He explores various metrics categories including code quality, performance, and security, with a deep dive into cyclomatic complexity as a powerful but underutilized metric among embedded developers.

    Key Takeaways:

    • Metrics scoreboards provide visibility into quality, predictability, and improvement opportunities in embedded development
    • Things that get measured get managed - tracking metrics helps identify root causes of development problems
    • Avoid vanity metrics like commit frequency; focus on metrics aligned with project goals
    • Cyclomatic complexity measures independent paths through functions and should stay below 10 for maintainable code
    • Seven key metrics categories: code quality, reliability/safety, testing, performance, resource utilization, process/productivity, and security
    • AI tools can significantly simplify dashboard creation and metrics analysis automation
    • Code coverage is valuable but can be gamed - ensure tests actually validate functionality, not just execute code
    • Compiler warnings should be eliminated or documented; aim for zero warnings in production code
    • Metrics trends are more important than point-in-time values for identifying code quality decay
    • Modern tools like Segger SystemView and Percepio Tracealyzer enable real-time performance metrics collection
    33 min
  • #025 - Modernize Your Embedded System with AI / ML
    Jacob Beningo explores how artificial intelligence and machine learning can modernize embedded systems development, sharing practical examples and dispelling myths about AI's applicability to embedded development. He demonstrates how AI can accelerate development workflows, from requirements gathering to code generation, while emphasizing an iterative, agile approach rather than fully autonomous AI development.

    Key Takeaways:

    • AI can provide 2x performance improvements for embedded development teams through automation and assistance
    • Use AI iteratively in small problem spaces rather than attempting fully autonomous agentic workflows
    • Create specialized AI tools for specific embedded systems domain areas like requirements gathering and code reviews
    • AI can help reduce debugging time, which typically consumes 20-40% of development effort
    • Machine learning inference can run effectively on resource-constrained 16-bit microcontrollers
    • Teams ignoring AI adoption risk being left behind as the technology becomes mainstream in embedded development
    • Focus on identifying repetitive daily tasks that can benefit from AI automation
    • Modern microcontrollers with neural processing units enable sophisticated on-chip machine learning applications
    • AI works best as a productivity multiplier rather than a replacement for embedded developers
    • Start with low-hanging fruit like debugging assistance and code review automation
    33 min
  • #024 - Simulating Embedded Systems
    In this episode, Jacob explores simulation for embedded systems as the seventh step in modernizing embedded development. He discusses functional simulation, on-chip simulation, and software architecture simulation, demonstrating how proper abstraction enables developers to validate code before hardware is available. Jacob provides a practical demonstration of simulating a push button module with debouncing algorithms, showing how modern software architecture can dramatically improve embedded system development workflows.

    Key Takeaways:

    • Functional simulation allows embedded developers to validate code without physical hardware by abstracting low-level hardware dependencies
    • Modern embedded architecture should decouple application code from hardware using zero-cost or low-cost abstractions
    • Push button debouncing serves as an excellent example for learning simulation techniques that every embedded engineer can relate to
    • On-chip simulation tools like QEMU and Renode can simulate processor-level instructions but may be incomplete for microcontroller peripherals
    • State machine simulation enables visual validation of system behavior before code deployment
    • AI tools can now rapidly generate simulation code, making functional simulation more accessible than ever
    • Socket communication provides deterministic and fast data exchange for functional simulation environments
    • Start simple with side projects like weather stations or button modules to learn simulation techniques
    • Legacy systems can be gradually refactored to support simulation by decoupling high-risk areas from hardware dependencies
    • Simulation enables faster development cycles and reduces dependency on hardware availability during early development phases
    24 min
  • #023 - Modernization Embedded Systems with Test-Driven Development
    In this episode, embedded systems expert Jacob Beningo explores test-driven development (TDD) as the fourth step to modernize embedded software development. He addresses common misconceptions that TDD doesn't work for embedded developers, demonstrates how proper software architecture enables effective testing, and explains the mental shift required to write tests before production code for higher quality, more reliable embedded systems.

    Key Takeaways:

    • Test-driven development requires writing tests first, then production code to make tests pass, which feels counterintuitive initially but improves over time
    • Properly architected embedded software with decoupled hardware layers makes TDD highly effective for application code
    • The mental adjustment to TDD takes several weeks but results in faster overall development and higher code quality
    • TDD provides immediate feedback when changes break existing functionality through regression testing
    • Multiple testing types are available: unit, integration, system, regression, performance, and user acceptance testing
    • System-level TDD can drive development from user requirements down to individual components
    • AI tools can accelerate TDD processes while maintaining rigorous testing standards
    • A simple push button module can require 98 tests and 4,000 checks for complete validation
    • 100% test coverage is a worthy goal but doesn't guarantee bug-free code
    • TDD initially feels slower but dramatically reduces debugging time and improves long-term development velocity
    28 min
  • #022 - 2026 Embedded Systems Trends
    Embedded systems expert Jacob Beningo explores five major industry trends for 2026, focusing on how AI-assisted development, security requirements, and platform-based engineering are reshaping embedded software development. This comprehensive analysis covers emerging technologies and methodologies that microcontroller-based system developers need to understand to stay competitive in the evolving embedded systems landscape.

    Key Takeaways:

    • Use AI to create custom development tools rather than just copying code, potentially saving months of development time annually
    • Security is no longer optional due to regulations like CRA - threat modeling and secure boot processes are now requirements
    • Platform-based engineering is driving adoption of modern tools like CMake, VS Code, and Zephyr RTOS across silicon vendors
    • C++ continues gradual adoption in embedded systems, growing from 3% to 30% market share over 20 years while C remains dominant
    • Functional simulation techniques can reduce debugging time by 50%, saving significant development resources when combined with AI tools
    • Edge AI and tiny ML are poised for resurgence as microcontrollers gain more compute power and specialized processing units
    • DevOps adoption varies widely, with basic Git and compilation pipelines being minimum requirements for modern development
    • West manifest tools are becoming important for managing complex multi-repository platform projects
    • AI should enhance expertise rather than replace fundamental embedded systems knowledge and skills
    • Copy-paste culture threatens to erode deep embedded systems expertise needed for solving complex hardware-software integration issues
    35 min
  • #021 - From Pray and Patch to Proactive: Modernizing Embedded Security

    Visit our sponsor's website to learn more about their embedded security solutions at https://www.RunSafeSecurity.com/jacob 

    This episode explores the critical shift from reactive "patch and pray" security approaches to proactive embedded security strategies. Host Jacob discusses common vulnerabilities in embedded systems, real-world security threats from nation-state actors, and practical tools and processes developers can implement to secure their devices throughout the entire development lifecycle.

    Key Takeaways:

    • Memory exploits (buffer overflows, out-of-bounds reads/writes, use-after-free) are the most common embedded system vulnerabilities
    • Nation-state actors like Voltaifun are actively targeting critical infrastructure through embedded devices
    • Even simple connected devices like $20 coffee makers pose significant security risks through botnets and grid manipulation
    • Supply chain attacks have risen 700% in recent years, requiring secure programming and signed keys throughout manufacturing
    • Threat Model Security Analysis (TMSA) should be performed upfront to identify critical data and potential attack vectors
    • Hardware isolation using ARM TrustZone, multi-core processors, or memory protection units provides essential security layers
    • Software Bill of Materials (SBOM) helps track open source components and monitor for newly discovered vulnerabilities
    • Static and dynamic analysis tools should be integrated into CI/CD pipelines for continuous security monitoring
    • Security must be considered throughout the entire device lifecycle, from design to end-of-life decommissioning
    • Proactive security approaches using runtime protection tools are more effective than reactive patching strategies

    38 min
  • #020 - Embedded DevOps with GitLabs Darwin Sanoy

    In this episode of the Embedded Frontier podcast, host Jacob interviews Darwin from GitLab's field CTO office about the adoption and implementation of DevOps practices in embedded systems development. They explore the unique challenges embedded developers face when modernizing their workflows, including managing complex codebases with hundreds of millions of lines of code, compliance requirements, and the critical differences between software-only products and embedded systems where software is just one component of the final product.

    Key Takeaways:

    • Embedded systems require different DevOps approaches than pure software products since shipping software doesn't mean shipping the final product
    • Modern vehicles contain 650 million lines of code in 2025, up from 200 million just five years ago, creating new complexity management challenges
    • Three categories of embedded systems each need different DevOps strategies: digital disruptors, stable machines, and functional safety systems
    • Containerized builds and shared development environments eliminate "works on my machine" problems and create reproducible, auditable builds
    • Software supply chain security through Solza attestation provides traceability from source code to final artifacts
    • Compliance as code can automate many regulatory requirements like ISO 26262 and MISRA C++, reducing manual bottlenecks
    • AI integration at the platform level helps embedded developers onboard to DevOps without becoming DevOps experts
    • Continuous delivery (creating release-ready firmware) is more appropriate for embedded than continuous deployment to production
    • Automated testing and QA are crucial to prevent manual processes from becoming the limiting factor in development speed
    • Over-the-air updates in embedded systems require managed deployments with higher reliability than cloud container replacements

    26 min