Skip to main content
Arm DSTREAM-ST streaming trace debug probe, official Arm product image, illustrating non-intrusive debug of safety-critical ECUs on production silicon by GSAS Micro Systems India

Non-Intrusive Debug of Safety ECUs on Production Silicon

GSAS Engineering · · 10 min read

Arm defines invasive debug as halting, breakpoints, watchpoints and stepping, and non-invasive debug as tracing instruction execution and data transfers. On a safety ECU, prefer non-invasive trace, then background memory access, then lightweight instrumentation, and halt the core only when nothing else answers the question. Production silicon usually restricts debug through authentication, so plan with the silicon vendor how trace and debug can be enabled on development and returned units.

Safety ECUs are built to react when software stops behaving normally. That is exactly what makes them hard to debug: the act of stopping the core to look at it triggers watchdogs, safety monitors and timeouts. On top of that, the production version of the silicon usually has debug access restricted and the production board usually has no trace connector.

This article ranks the techniques available on production silicon by how much they disturb the target, explains the authentication mechanisms that decide what is even possible, and covers the role of emulation devices. It is written for automotive and industrial teams in India who need to see inside a safety ECU without changing what it does.

Invasive and non-invasive, as Arm defines them

The Arm Cortex-R52 Technical Reference Manual draws the line clearly. Invasive debug features include breakpoints, watchpoints and single-stepping: they stop or alter execution. Non-invasive debug features include tracing instruction execution and tracing data transfers: they observe without stopping the core.

That distinction matters twice. It tells you which techniques preserve real-time behaviour, and on Arm processors it maps onto separate hardware enables. The Cortex-R52 takes separate authentication signals for invasive and non-invasive debug, so a silicon vendor can permit trace on a device while blocking halting debug, or block both.

The ladder: least intrusive first

TechniqueWhat it disturbsWhat it needsGood for
Instruction trace (ETM or vendor equivalent)Nothing in the program; the trace hardware observesTrace enabled by authentication, and a route off the chip or an on-chip bufferProgram flow, timing, coverage, the path into a fault
Data trace, PC sampling, exception traceNothing in the programTrace hardware support on the coreVariable changes, statistical profiling, interrupt behaviour
Background memory accessBus bandwidth only; the core keeps runningA target that allows memory access while runningReading live variables, RTT channels
Lightweight instrumentation (for example RTT or SystemView)Small amounts of added code and execution timeA buffer in target RAM and background memory accessLogging, RTOS event timelines
Monitor mode debuggingThe debugged code path stops; selected interrupts keep runningCore and probe support for monitor modeMotor control and power stages that must not freeze
Halting debugEverything on that coreInvasive debug enabledLogic bugs, register and memory state

Two of these deserve a note.

Background memory access. SEGGER states that RTT can be used with any J-Link supported target that allows background memory access while the target is running. That is what lets a probe read a variable, or an RTT buffer, without stopping the core. It is a property of the target’s debug architecture, so confirm it for your part. See the SEGGER RTT technical guide.

Monitor mode. SEGGER describes monitor-mode debugging as the CPU taking a debug interrupt instead of halting, so the core keeps running and can still handle some interrupts while the application itself is halted and inspected. It sits between trace and halting on the ladder. The monitor mode article explains when it is the right choice.

Debug authentication on production silicon

Production microcontrollers rarely ship with debug fully open. How access is restricted, and how it can be re-enabled for development or failure analysis, is defined by the silicon vendor and is often part of the device’s security architecture.

  • On Arm processors, the authentication signals that gate invasive and non-invasive debug are driven by the SoC, so the silicon vendor decides how they are controlled. On the Cortex-R52 the TRM names separate signals for invasive and non-invasive debug.
  • On Infineon AURIX, Infineon’s TC4xx debug and trace training states that on AURIX TC3xx tracing was only possible when debugging was enabled, and that on AURIX TC4xx the two are decoupled. That is a meaningful change for teams who want trace on a part where halting stays locked.

Cybersecurity teams treat open debug access on production ECUs as an attack surface, which is why parts are locked in the first place. Our UNECE R155/R156 page covers the regulatory side. The engineering rule is simple: agree the unlock procedure for development boards and returned units with the silicon vendor before production, and design it so it cannot be used to open a vehicle in the field.

Production devices and emulation devices

Several automotive microcontroller families have two kinds of silicon:

  • Production devices, the parts that ship.
  • Emulation devices, variants with additional debug and trace hardware for development boards.

Infineon’s AURIX TC3xx training states that full trace capability comes with the MCDS module on emulation devices, while production devices use the smaller MCDSLight and MINIMCDS modules. Its TC4xx training states that TC4xx offers full MCDS tracing on production devices. On RH850, Renesas offers an emulation adapter carrying an emulation chip for G4MH core devices for use with its E2 emulator.

The practical point: decide which evidence must come from the shipping silicon and which can come from an emulation device, and write that decision into the verification plan. Coverage and timing evidence collected on an emulation device needs an argument for why it represents the production part.

When the board has no trace connector

Production ECUs rarely carry a trace connector, and there are still options:

  1. On-chip trace buffers. Many Arm-based devices implement ETB or ETR trace sinks, which keep a window of recent execution inside the chip for the debugger to read later over the normal debug connection. Arm documents these in its CoreSight Trace Memory Controller.
  2. Trace read over the debug port. On AURIX, Infineon’s TC3xx training states that DAP or Aurora can be used as trace interfaces depending on trace complexity, so lower-bandwidth trace can be read over the debug interface. On TC3xx that requires debug to be enabled, as noted above.
  3. A development variant of the board with the trace connector populated, built from the same schematic and layout as production where possible.

The off-chip trace explainer compares these routes in detail.

A plan that works

  1. At architecture, list the questions you expect to ask of the ECU in development and after a field return, and which ones need trace.
  2. At silicon selection, confirm what trace the production part supports, whether trace can be enabled independently of halting debug, and what the emulation device adds.
  3. At schematic, route the debug connector on every board and a trace connector on development boards.
  4. Before production, agree and document the debug unlock procedure for returned units.
  5. In verification, prefer non-invasive evidence and record which silicon variant each piece of evidence came from.

Tools GSAS supplies today

For production AURIX/TriCore and RH850 parts, where trace and unlock options differ device by device, talk to our FAE team about the right probe and debug strategy.

Where GSAS fits

GSAS Micro Systems supplies debug and trace probes in India with INR quotations and local application engineering. Our engineers in Bengaluru, Pune, Chennai and Hyderabad help safety ECU teams plan observability from silicon selection onwards, and support teams in Mumbai and Delhi NCR on site and remotely.

References

Building for Automotive & Mobility?

Talk to our application engineers for personalized tool recommendations.

Frequently asked questions

What is the difference between invasive and non-invasive debug?
Arm's Cortex-R52 Technical Reference Manual describes invasive debug features as including breakpoints, watchpoints and single-stepping, which stop or alter execution, and non-invasive debug features as including tracing instruction execution and data transfers, which observe without stopping the core. The two can be enabled separately through the processor's debug authentication signals.
Can I use trace on a production device where debug is locked?
It depends on the device. Arm processors take separate authentication signals for invasive and non-invasive debug, so a silicon vendor can allow one without the other. Infineon states that on AURIX TC3xx tracing was only possible when debugging was enabled, while on AURIX TC4xx the two are decoupled. Check the device's security and debug documentation and agree the unlock procedure with the silicon vendor.
Is SEGGER RTT non-intrusive?
It is minimally intrusive rather than non-intrusive. SEGGER RTT works on targets that allow background memory access while the core is running: the probe reads and writes a buffer in target memory without halting the core. The target code still writes into that buffer, so a small amount of code and execution time is added. Instruction trace adds none.
What is an emulation device?
A variant of a production microcontroller with extra debug and trace hardware, used on development boards. Infineon's AURIX TC3xx training describes full MCDS trace on emulation devices, and Renesas offers an emulation adapter carrying an emulation chip for RH850 devices with the G4MH core. Emulation devices give more visibility than production parts, but they are not the part that ships.
How should a team debug a field-returned ECU?
Start with what the hardware can tell you without powering up firmware changes: stored fault records, on-chip trace buffers if the device has them and they were armed, and memory read through an authenticated debug connection. Agree the authentication and unlock procedure for returned units with the silicon vendor before production, because it cannot be added afterwards.

Stay in the Loop

Get monthly compliance updates, product insights, and engineering best practices delivered to your inbox.

Related Articles

Arm Keil ULINKpro and ULINKpro D debug and trace adapters, official Arm product image, illustrating trace-based code coverage evidence for ISO 26262 and DO-178C by GSAS Micro Systems India
Compliance & Safety Automotive & Mobility Aerospace & Defense

Trace-Based Code Coverage as ISO 26262 and DO-178C Evidence

Hardware trace can measure structural coverage on the target without adding instrumentation to the build. This guide explains what trace-based coverage measures, how object code coverage relates to the source-level metrics ISO 26262 and DO-178C discuss, where it fits next to instrumented unit test coverage, and what a reviewer will ask about it. Written for Indian automotive and aerospace verification teams.

13 Nov 2026 · 11 min read
Wake forwarding across a vehicle zone: a wake event travelling hop by hop from the wake source through a zone controller to three sleeping ECUs, with one port not configured to forward, leaving the tail of the chain still asleep, from GSAS Micro Systems India
Automotive Ethernet Automotive & Mobility

TC10 Sleep and Wake-Up: How It Works and Why It Fails

Search for TC10 and you get the specification PDFs plus forum threads where one engineer cannot get a PHY into sleep at all and another is asking whether a wake can even cross from standard Ethernet onto a single pair. This is the plain-language version: the sleep handshake state by state, every timer with the clause it comes from, how a wake travels across a zone, and the seven reasons it fails on a real vehicle. Every state name and number here was read out of the public OPEN Alliance sleep and wake-up specifications, written by the GSAS Micro Systems engineering team in India.

29 Aug 2026 · 13 min read
Classification tree and combination table used to design embedded unit test cases in Razorcat's Classification Tree Editor for TESSY, available in India from GSAS Micro Systems
Compliance & Safety Razorcat Automotive & Mobility

Test Case Design with the Classification Tree Method: Deriving Unit Tests You Can Defend in an Audit

Ad-hoc test cases can be perfectly good tests and still fail an audit, because nothing on file records why that particular set was sufficient. The Classification Tree Method derives test cases from the input space instead: identify the test-relevant aspects as classifications, partition each into equivalence classes, then combine leaf classes in a combination table. Razorcat implements CTM in the Classification Tree Editor, available integrated into TESSY or standalone. GSAS Micro Systems is the authorized Razorcat engineering partner for India, the UAE and Sri Lanka.

1 Aug 2026 · 10 min read