News

Percepio Detect: Catching Embedded Software Issues Before They Become Failures
Embedded applications can pass unit tests, perform reliably in the lab, and still encounter unexpected failures after hours of operation. Occasional timing problems, stalled RTOS tasks, and intermittent crashes can be difficult to reproduce, making debugging both time-consuming and challenging. What if developers could capture these issues as they happen, rather than spending hours trying to recreate them? Continuous Observability with Percepio Detect Percepio Detect brings Continuous Observability to embedded software testing, automatically monitoring runtime behavior, detecting anomalies, and capturing diagnostic information when issues occur. Supporting FreeRTOS, Zephyr, and bare-metal applications on Arm Cortex-M devices, Detect helps identify stability problems during extended testing. It also provides a centralized dashboard where development teams can monitor multiple devices and access reported issues, including firmware versions, fault information, and diagnostic attachments. Detect can be deployed locally using Docker, allowing organizations to maintain their diagnostic data within their own network without relying on external cloud services. From Detection to Detailed Diagnostics When an issue occurs, Detect captures relevant diagnostic information, including execution traces and core dumps. Developers can investigate crashes through call stacks, function parameters, variables, processor registers, and disassembly, helping identify where the failure occurred and what the system was doing. Identifying Problems Before They Become Failures Consider an RTOS task that normally completes within 10 milliseconds but occasionally takes 18 milliseconds under heavier processing loads. Although the task still meets its 20-millisecond deadline, the reduced timing margin could indicate a potential problem. Detect's Stopwatch feature measures execution time between defined points and generates alerts when configured thresholds are exceeded. Similarly, TaskMonitor monitors individual RTOS task CPU utilization, helping identify unexpected activity, stalled tasks, and excessive CPU consumption. These capabilities can reveal hidden risks before they develop into more serious failures. Continuous Testing and Integration Detect supports integration into continuous integration and continuous testing (CI/CT) workflows, enabling automated stability monitoring during extended testing. Diagnostic data can be collected through serial communication or other supported interfaces and made available through the centralized dashboard. Developers can then use Percepio Tracealyzer to examine recorded execution traces, analyze task scheduling, and investigate timing or synchronization issues. With Detect 2026.1 introducing native Zephyr RTOS support and enhanced non-fatal diagnostic capture, Percepio continues to expand its observability capabilities for embedded development teams. By identifying runtime anomalies and preserving diagnostic evidence, Percepio Detect helps reduce debugging effort and improve embedded software reliability. To learn more about Percepio Detect and how it can support your embedded software testing, contact Hrutik Champaneri at hrutik.champaneri@joraltechnologies.com.
Learn more
CompCert: A C Compiler That Comes With a Proof
Safety-critical teams put considerable effort into their C source code. They run static analysis, check MISRA rules, review code, and test the compiled software extensively. However, testing cannot cover every execution path or guarantee that the compiler itself hasn't introduced errors. In avionics, rail, or nuclear software, this raises an important question: how can we trust the compilation process? What Is CompCert? CompCert is a formally verified optimizing C compiler developed at INRIA by Xavier Leroy and his team, and commercially supported by AbsInt. Designed for safety-critical and mission-critical applications, it supports architectures including PowerPC, Arm, AArch64, x86, and RISC-V. CompCert is a C compiler, not a C++ compiler. It supports ISO C99, selected C11 features, and the MISRA-C 2004 language subset, with certain documented restrictions. What Does Formal Verification Mean? A compiler performs several transformations to optimize and translate C code into assembly, but each transformation introduces a possibility of errors, known as miscompilation. CompCert addresses this through 15 verified compilation passes across eight intermediate languages. Each pass comes with mathematical proofs demonstrating that its transformations preserve the permitted behaviour of the original program. These proofs are checked using Rocq (formerly Coq), a mathematical proof assistant that verifies the logical correctness of the reasoning. Unlike conventional testing, which examines selected inputs and execution paths, these proofs establish correctness for all cases covered by the formal model. This property, known as semantic preservation, helps ensure that generated assembly preserves the behaviour of the original C program. CompCert therefore complements source-level static analysis and software testing by providing additional assurance about the compilation process itself. Working with Existing Toolchains CompCert's core optimizations and code-generation algorithms are formally verified, while external stages such as preprocessing, assembling, and linking rely on toolchains such as GCC or Wind River Diab. For additional assurance, AbsInt offers Valex, a separate tool that validates aspects of the final executable against the assembly produced by CompCert. The Csmith Result In a 2011 study, researchers used Csmith to generate random C programs and uncover more than 325 previously unknown compiler bugs. CompCert stood out as the only compiler tested for which Csmith could not find wrong-code errors in the development version examined, despite approximately six CPU-years of testing. While not proof that CompCert is entirely bug-free, the result demonstrated the benefits of formally verified compiler optimizations. How Does CompCert Compare With GCC? CompCert combines formally verified compilation with optimizations such as register allocation, constant propagation, dead code elimination, and function inlining. Published benchmarks report CompCert-generated code running approximately twice as fast as GCC at -O0, around 10% slower at -O1, and 20% slower at -O3, depending on the workload and processor. Unlike GCC, CompCert treats -O1, -O2, and -O3 as equivalent speed-optimization options, while -Os focuses on code size. Its key advantage is combining practical optimization with mathematically verified compilation. A Major Avionics Milestone: CompCert's 2026 ATR Qualification In 2026, CompCert was successfully qualified for the Multi-Function Computer New Generation (MFC_NG) of ATR 42/72 aircraft, supporting certification credits under DO-178C, DO-333, and DO-330. Under appropriate qualification conditions, these credits can help reduce or replace certain object-code verification activities with source-level formal verification, potentially reducing certification effort. CompCert also has an established industrial history, including deployment by Airbus France at its Toulouse facility and qualification for a nuclear-sector project by MTU Friedrichshafen in 2017.
Learn more
New target aiT for TriCore now supports 3rd GEN AURIX TC46x. Qualification Support Kits Qualification reports can now be exported as XML. New compiler-specific QSKs: aiT for e200 with Diab 5.9.4.8 StackAnalyzer for ARM with GHS 2024.1.4 (ARM and Thumb) TimeWeaver for ARM with GHS 2024.1.4 (AArch64) StackAnalyzer for PowerPC with Diab 5.6.1.0-fcs-20080603-075755 New board-specific QSKs: aiT for TC466 aiT for MPC5777 In board-specific packages, the measurement setup description has been improved. Improved identification of overlong Windows file paths. Transport Layer Security Encryption of network communication now uses system libraries, i.e. OpenSSL on Linux and Schannel on Windows. Improved support for Windows Smart App Control Improved compatibility of Windows installers. The shipped DLLs are now signed. If you have any questions or would like to set up a meeting to review the release please email: alice.campbell@joraltechnologies.com.
Learn more
Beyond Code Generation: AI-Assisted Embedded Development with Arm CMSIS
AI coding assistants can generate a UART driver in seconds. But when the output is garbled or an application unexpectedly enters a HardFault handler, the problem may not be obvious from the source code. Developers need to inspect registers, examine memory, analyze fault information, and compare their findings with device documentation. Arm's CMSIS Developer Assistant extends AI assistance to these tasks. This free, pre-release Visual Studio Code extension connects AI agents such as GitHub Copilot, Claude Code, and Codex to CMSIS development tools through the Model Context Protocol (MCP). Agents can work with actual build results and connected Cortex-M targets, rather than relying on code alone. CONNECTING AI AGENTS TO EMBEDDED DEVELOPMENT TOOLS The extension works with CMSIS Solution and CMSIS Debugger in the Arm Keil Studio environment. Three capabilities make this possible: MCP Tools let agents invoke supported operations to build and program firmware, control execution, inspect memory and registers, and use serial interfaces. AI Skills provide guided workflows for project setup, board support, and debugging. Target Context provides device-specific information from CMSIS projects, software packs, SVD files, and technical documentation. Together, these capabilities give an AI agent both the tools to investigate an issue and the information needed to interpret what it observes. SCENARIO 1: INVESTIGATING A CORTEX-M HARDFAULT When firmware enters a HardFault handler, developers typically inspect fault status registers, reconstruct the exception context, and map the failing instruction back to source code. The CMSIS Developer Assistant can help automate parts of that investigation. Try asking: "Build and program the application, start debugging, and investigate why execution enters the HardFault handler. Identify a likely cause and suggest a correction." Using CMSIS Debugger, the agent can examine fault registers, stack information, and available debugging symbols to form a diagnosis. The engineer can then review the evidence: for example, the CFSR and HFSR values, relevant fault address registers when valid, and the stacked program counter when recoverable. This helps distinguish a supported diagnosis from an AI-generated guess. SCENARIO 2: TROUBLESHOOTING UART CONFIGURATION Suppose UART output is garbled even though the initialization code appears correct. The underlying issue could involve the peripheral clock, baud-rate settings, or configuration sequence. Try asking: "The UART output is garbled. Inspect the peripheral registers and compare the baud-rate configuration with the actual clock settings. Identify any discrepancies." The agent can read available live register values, interpret their fields using CMSIS-SVD descriptions, and consult device documentation to investigate mismatches. The developer can verify the findings against the reference manual and measured hardware behavior. The assistant can also analyze ELF symbols, linker sections, memory usage, and build errors—useful tasks even without a live debugging session.GETTING STARTED Install Arm Keil Studio and CMSIS Developer Assistant in Visual Studio Code. Configure your supported AI agent using the Command Palette: CMSIS Developer Assistant: Configure Agent. Open a CMSIS solution and configure the target and debugger, or start by asking the agent to create a project. Experiment by asking the agent to build the application, halt at main(), and inspect processor registers. The extension is still pre-release, and capabilities depend on the project, toolchain, debugger, and target. Developers should review proposed changes, control hardware operations, and validate conclusions. BEYOND CODE GENERATION By connecting AI agents to established CMSIS build and debugging tools, the CMSIS Developer Assistant brings AI into practical embedded workflows—from resolving build errors to examining live hardware faults. It offers a useful way to reduce repetitive investigation while keeping engineering judgment and verification firmly in the developer's hands. Resources: CMSIS Developer Assistant - VS Code MarketplaceCMSIS Developer Assistant - GitHub RepositoryA demonstration of the CMSIS Developer Assistant is coming soon! Sign up for Joral Technologies updates to stay informed!
Learn more
Configuring QA-MISRA for Real-World Embedded C/C++ Projects
Getting QA-MISRA running is only the first part of the setup. For an actual embedded project, you will usually need to decide which coding rules should be checked, how compiler-specific code should be handled, and how you want to review or export the results. QA-MISRA gives you quite a bit of control over this from the project configuration. ADDING QA-MISRA TO KEIL µVision QA-MISRA can be integrated with Keil µVision using the QA-MISRA µVision Toolbox included with the installation. After installing the toolbox, open µVision and add QA-MISRA through: Tools → Customize Tools Menu Use the Command, Initial Folder, and Arguments provided by the toolbox installation. Once the project builds successfully, QA-MISRA will appear under the Tools menu. Selecting it opens the project directly in the QA-MISRA GUI for analysis. Build Project → Tools → QA-MISRA → Configure Rules → Run Analysis CONFIGURE RULES FOR YOUR PROJECT A project does not necessarily need every available rule enabled. From the Rules section in the QA-MISRA GUI, you can select the coding standards you want to use and enable or disable individual checks. For example, a project may use MISRA C:2012 but exclude a rule that does not apply to the project. Another project may use a combination of MISRA rules and internal coding requirements. QA-MISRA supports rule sets such as MISRA, AUTOSAR, CERT, CWE and others, depending on the language and configuration being used. A typical setup looks like: Select a Coding Standard → Enable the Required Rules → Save the Configuration → Run the Analysis The configuration can also be exported and reused, which is useful if several projects need to follow the same internal coding policy. Individual findings can also be suppressed when a violation has been reviewed and accepted. If a company needs a completely new rule that is not already available in QA-MISRA, that is handled differently from simply enabling or disabling an existing rule. QA Systems can work with customers to implement custom checks where required. Handling Embedded C/C++ Code Embedded projects often contain code that goes beyond standard C or C++. Compiler-specific keywords, attributes, pragmas, macros and architecture-specific definitions are common, especially when working with MCU toolchains and vendor libraries. QA-MISRA performs preprocessing before the analysis, so macros and the code produced by macro expansion can also be checked. Compiler-specific extensions can be handled through the project configuration as well. Depending on the compiler and the extension being used, some additional definitions or configuration may be required. Reviewing the Analysis Results After an analysis is run, the findings can be reviewed directly in the QA-MISRA GUI. The Results view shows the detected violations together with information about the rule that triggered each finding. If QA-MISRA is being used through an IDE integration such as Visual Studio Code, findings can also appear directly alongside the source code. This makes it easier to move between the reported rule and the code that caused it. The analysis results are not limited to the QA-MISRA interface. Reports can also be generated in formats such as HTML and CSV. That makes the results easier to share with other developers or use during code reviews, project documentation and compliance activities. For example, the workflow may simply be: Run Analysis → Review Findings → Fix or Assess Violations → Generate Report BRING CODING STANDARDS INTO YOUR WORKFLOW The useful part of QA-MISRA is not simply running a large list of coding rules against the source code. The project configuration lets you choose which rules QA-MISRA checks, how project-specific code is handled, and how the resulting findings are managed. Once that configuration is in place, the same setup can be reused as the project grows or across other projects that follow the same coding guidelines. For an introduction to QA-MISRA, see: Using QA-MISRA to Bring Coding Standards into C/C++ Development For evaluation license and VS Code setup instructions: Setting Up a QA-MISRA Evaluation License and VS Code Extension For an evaluation license, demonstration, or assistance with integrating QA-MISRA into your development workflow, contact: hrutik.champaneri@joraltechnologies.com
Learn more
Setting Up a QA-MISRA Evaluation License and VS Code Extension
The following steps explain how to activate a QA-MISRA evaluation license, configure the local server, install the QA-MISRA extension in Visual Studio Code, and run an example analysis. 1. Request the QA-MISRA Evaluation License Request an evaluation license for QA-MISRA. After submitting the request, you will receive an email asking you to accept the End User License Agreement (EULA). Once the EULA is accepted, you will receive another email containing: The evaluation license file A portal link to download the QA-MISRA installation package 2. Install QA-MISRA Download the QA-MISRA installation package using the link provided in the email and install it on your system. 3. Start the QA-MISRA Local Server Open the QA-MISRA Server Controller. Click Manage Local Server, then select Start Server from the drop-down menu. 4. Log In to the Local Server When prompted for login credentials, use the default credentials: Username: adminPassword: admin After logging in, the Server Controller will display the local server and license information. 5. Add the Evaluation License In the License section, click the icon on the right-hand side. In the window that opens: Select Evaluation/Node-Locked License from the license menu. Under Data, enter or browse to the location of the license file received by email. Click OK. The evaluation license should now appear as active in the Server Controller. 6. Install the QA-MISRA Extension in VS Code Open Visual Studio Code and go to the Extensions tab. Click the three-dot menu (...) in the Extensions panel and select Install from VSIX... Navigate to the QA-MISRA installation directory and open: share → vscode Select the available .vsix file and click Install. Once the installation is complete, the QA-MISRA extension page will appear in VS Code. 7. Open a QA-MISRA Example Project To verify that QA-MISRA is working correctly, open one of the example projects included with the QA-MISRA installation. The example folder is available inside the share directory. Choose the example project you want to analyze and open the folder in VS Code. 8. Check the .dax File Make sure the required .dax file is available for the example project. For the provided examples, the .dax file should be located one folder above the source files that you want to analyze. 9. Run and View the QA-MISRA Analysis Open the desired .c or .cpp source file. Then open the Output panel in VS Code. The QA-MISRA output will appear here as the source code is analyzed. 10. View MISRA Violations in the Source Code Once the analysis is running, QA-MISRA highlights detected issues directly in the source code using yellow squiggly lines. Hover over a highlighted section to view the corresponding ALARM, including information about the coding-standard violation detected by QA-MISRA. 11. Change the Analysis Mode By default, the QA-MISRA extension is configured to use Single Translation Unit mode. If you want to analyze the complete project, you can change the analysis mode in the VS Code settings. Go to: File → Preferences → Settings → Extensions Under Extensions, select a³ for C/C++ LSP Client. Find the A3c › Client: Mode setting. Open the drop-down menu and change the mode from single-translation-unit to the full-project analysis mode. Single Translation Unit vs. Full Project: Single Translation Unit mode analyzes individual source files separately, while full-project mode analyzes the project with a broader view of the code and relationships between multiple source files.
Learn more
Using QA-MISRA to Bring Coding Standards into C/C++ Development
In embedded and safety-critical software, coding standards help reduce risky language behaviour, improve consistency, and make software easier to review and verify. This is especially important in industries such as automotive, aerospace, medical, rail, and industrial systems, where software reliability and traceability are critical. The challenge is applying those standards consistently across a real C or C++ codebase. WHAT QA-MISRA DOES QA-MISRA is a static code analysis tool focused on C/C++ coding-standard compliance and code quality. It automatically checks source code against coding standards and security rule sets including MISRA C/C++, AUTOSAR C++, CERT C/C++, CWE, JSF AV C++ and ISO TS 17961. Unlike deeper runtime-error analysis tools such as Astrée, QA-MISRA is primarily focused on the question: “Does this code follow the coding and quality rules defined for the project?” WHY USE QA-MISRA? Manually checking hundreds of coding rules during code reviews quickly becomes difficult, especially on larger projects. QA-MISRA automates these checks and applies the same rules consistently across the codebase. Write C/C++ Code → QA-MISRA Analysis → Review Violations → Fix or Assess Issues → Continue Development This helps teams detect issues earlier, reduce manual review effort, and make coding-standard compliance part of everyday development rather than something checked only near the end of a project. USING QA-MISRA WITH Visual Studio Code QA-MISRA can also be integrated directly into Visual Studio Code using the A3C C/C++ LSP Client. After installing QA-MISRA and configuring the license: Install the A3C C/C++ LSP Client in VS Code. Configure the path to your QA-MISRA installation. Open your C or C++ project. Run the analysis and review detected violations directly in the editor, Problems, and Output panels. For detailed setup instructions, see our step-by-step QA-MISRA evaluation license and VS Code setup guide: QA-MISRA Evaluation License and VS Code Setup Guide Bring Coding Standards into Your Workflow QA-MISRA helps turn coding standards from documentation into something that can be checked continuously during development. You can also explore the available QA-MISRA licensing options and configurations on the Joral Technologies website. View QA-MISRA Licensing Options For an evaluation license, installation support, or help integrating QA-MISRA into your development workflow, reach out to hrutik.champaneri@joraltechnologies.com and start bringing coding-standard compliance directly into your C/C++ development process.
Learn more
When Breakpoints Aren’t Enough: Debugging Faster with ULINKpro Trace
Most embedded developers are familiar with the usual debugging cycle: set a breakpoint, stop the processor, inspect the problem, make a change, and try again. That works well until the problem depends on timing, interrupts, RTOS task interaction, DMA, communication traffic, or a failure that only occurs occasionally. At that point, stopping the processor can sometimes hide the very problem you are trying to find. This is where trace can make a significant difference. See More Than the Current Breakpoint A debugger such as Keil ULINK2 provides SWD/JTAG debugging together with Serial Wire Viewer (SWV), giving developers runtime information such as events, exceptions, data activity, and program-counter sampling. But SWV is still only showing selected information about what happened. With ULINKpro and ETM instruction trace, the debugger can capture the processor's actual execution history and reconstruct the instructions and code paths that were executed. Instead of reaching a fault and asking: “Why did my software end up here?” you can trace backwards through the execution sequence that led to it. For complex embedded systems, that difference can dramatically reduce the amount of trial-and-error debugging required. Why ULINKpro? ULINKpro combines traditional debugging with high-speed SWV and ETM instruction trace of up to 800 Mbit/s on supported Cortex-M devices. It can also stream trace directly to the host computer, allowing much longer trace sessions. That gives engineering teams several practical advantages: Find intermittent faults faster by examining what happened before a crash or HardFault. Debug without constantly stopping the processor, helping preserve real-time behaviour. Follow complex execution paths across functions, interrupts and application logic. Identify performance bottlenecks using execution profiling. Generate code-coverage information during testing. Capture longer scenarios instead of repeatedly trying to reproduce the issue. For example, a normal debugging session might tell you that the processor reached HardFault_Handler(). ETM trace can help reveal the sequence behind it: Task → ProcessPacket() → Interrupt → Buffer Access → Invalid Pointer → HardFault That extra context can turn repeated breakpoint placement into a much more focused root-cause investigation. ULINK2 or ULINKpro? For everyday firmware development, ULINK2 remains a capable debugger and provides SWV trace for runtime visibility. ULINKpro becomes valuable when simply knowing the current state is no longer enough. ULINK2 helps you see what the system is doing. ULINKpro can help you understand how the system got there. For RTOS applications, communication stacks, interrupt-heavy firmware, and timing-dependent failures, that execution history can significantly shorten the path from “we reproduced the problem” to “we found the root cause.” ETM trace does require support from the target processor and the appropriate trace connections on the hardware, but when available, ULINKpro provides a level of visibility that traditional stop-and-go debugging cannot.
Learn more
How Static Analysis Supports DO-178C Verification
Developing software for airborne systems requires strong verification evidence, especially for higher-criticality applications. DO-178C defines objectives for airborne software development and verification, while DO-333 provides guidance for using formal methods as part of that process. Static analysis tools such as Astrée, aiT, StackAnalyzer, and RuleChecker can support several of these verification activities and help reduce the amount of manual effort required during certification. Where Static Analysis Helps Testing is essential, but some properties are difficult to demonstrate through testing alone. For example, proving that all relevant program paths and hardware conditions have been exercised can require significant effort. Sound static analysis based on Abstract Interpretation takes a different approach. Instead of relying on individual test executions, it analyzes an approximation of all possible program behaviors while keeping the result on the safe side. DO-333 recognizes Abstract Interpretation as a formal method, and AbsInt maps its analysis tools to several DO-178C/DO-333 verification objectives. The tools address different areas of verification: Astrée detects potential runtime errors such as overflows, invalid pointers, uninitialized variables, array access errors, and data-flow issues. aiT determines safe upper bounds for Worst-Case Execution Time (WCET). StackAnalyzer determines safe upper bounds for maximum stack usage. RuleChecker checks compliance with coding guidelines such as MISRA and other supported standards. Together, these tools can provide verification evidence for runtime behavior, timing, memory usage, control/data flow, and coding-standard compliance. Where the ROI Comes From The ROI is mainly found in two areas. First, static analysis can reduce verification effort. Determining WCET or stack usage through measurement may require extensive target testing and confidence that the worst-case program and hardware conditions were actually observed. Sound static analysis provides safe upper bounds by design, reducing dependence on exhaustive testing. Second, there is tool qualification effort. When verification tools are used to reduce or replace manual verification activities, qualification requirements may apply under DO-178C/DO-330. AbsInt provides Qualification Support Kits for aiT, Astrée, and StackAnalyzer to support this process and reduce the amount of qualification material a development team must create themselves. Bringing Verification Earlier into Development Static analysis is most valuable when it is used throughout development rather than only at the end of the certification process. Running these analyses early can help identify runtime errors, timing violations, stack problems, and coding-standard issues before they become expensive integration or certification problems. For teams working toward DO-178C compliance, static analysis therefore provides more than defect detection. It can become part of the verification strategy itself helping improve confidence in the software while reducing verification and qualification effort. Want to learn how these tools fit into a practical DO-178C workflow? Join us at our upcoming in-person event to explore how static analysis can support safety-critical software development and verification.
Learn more

