Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk8 min

How to Validate FFI Between QM and ASIL-D in Zero-Heap AUTOSAR + HSM

A practical method for building a target-specific freedom-from-interference argument between QM and ASIL-D software in a zero-heap AUTOSAR system with an HSM, organized by interference class.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You validate freedom from interference (FFI) between QM and ASIL-D software by showing, for each interference path that could affect an ASIL-D requirement, that the configured mechanism blocks it on the target ECU, and by recording that evidence in the safety case. Zero heap and an HSM are design facts. Neither one is an FFI result on its own. In AUTOSAR, memory separation is bounded by OS-Application mapping, so that mapping is the first thing to check.

Pick the safety strategy first

AUTOSAR’s Overview of Functional Safety Measures in AUTOSAR (CP R23-11) restates the ISO 26262 mixed-ASIL rule: “either the entire software must be developed according to the highest ASIL, or freedom from interference shall be ensured for software components with a higher ASIL rating from elements with a lower ASIL rating.” Your project has to take one of these two branches, and the validation work depends entirely on which one.

As an Amazon Associate I earn from qualifying purchases.

Strategy What the project must show Main trade-off
Develop all embedded software to ASIL-D No FFI argument between the elements is needed for the software-level ASIL claim, because all of it is developed to the highest ASIL QM functions take on ASIL-D development, verification and documentation effort
Keep QM and ASIL-D software separate and ensure FFI for the higher-ASIL elements Evidence, per interference class and per boundary, that lower-ASIL elements cannot undermine ASIL-D requirements The FFI argument has to be defended and then maintained as the configuration changes

Everything below assumes the second branch, where FFI has to be argued explicitly. Name the chosen strategy in the safety plan so that every later argument refers to it.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Platform and version scope

AUTOSAR describes its Classic Platform as a layered software platform for deeply embedded systems with high requirements for predictability, safety, security, and responsiveness. Its architecture separates the application software, the Runtime Environment (RTE), and Basic Software (BSW). The argument in this article is written against that architecture.

#1 Best Overall

The AUTOSAR standards listing used for this article shows Classic Platform R25-11 as the current release. Release numbers change, so confirm the live listing before you cite a release. A project on an older release, or on a supplier-specific OS, MCU support package, or HSM stack, must use the specification and safety documentation that match its own configuration. A claim copied from another release can be wrong for your ECU.

Fix the target facts before collecting evidence

FFI can only be tested against a specific configuration. Record these items first, with a document owner and a revision identifier:

  • The ECU and MCU, including whether the MCU has a hardware memory protection unit that the OS uses to enforce OS-Application boundaries.
  • The AUTOSAR release, and the vendor OS and BSW versions that implement it.
  • The OS-Application mapping: which software components and tasks belong to which OS-Application, and which of them are QM and which are ASIL-D.
  • The memory-protection and, where used, timing-protection settings in the OS configuration, and the reaction each one triggers on a violation.
  • The HSM: whether it is a separate controller or integrated into the ECU, its vendor and interface, and which application components call it.
  • The safety requirements allocated to the ASIL-D software, and the assumptions the safety case makes about QM behavior.

Organize the evidence by interference class

AUTOSAR’s functional-safety overview lists four interference classes: memory, timing, execution, and exchange of information. Build one argument per class for each ASIL-D element that the safety requirements depend on. A result in one class does not carry over to another, so a statically allocated, partitioned design still needs separate evidence for each class.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
FTVOGUE STM32F103C8T6 Development Board Compact Dual RS485 CAN485
  • Dual RS485 & CAN485 interfaces for reliable communication in industrial and automotive setups, even in noisy environments.
  • Compact STM32F103C8T6 ARM core board that works great for beginners learning embedded systems or experienced developers prototyping.
  • All pins fully exposed, so you can easily connect sensors, displays, or other peripherals for custom projects.
  • Built with quality PCB materials for long-lasting use, whether you're testing in the lab or deploying in the field.
  • Simple to program and debug — just plug in and start coding. Perfect for learning ARM architecture or building professional applications.

Memory

Memory interference means a QM element reads, writes, or corrupts data, code, or stacks that ASIL-D software depends on. Two facts bound the argument.

First, OS-Application partitioning provides boundaries between OS-Applications. The AUTOSAR overview states the limit directly: “Memory Partitioning does not provide freedom from interference between Software Components which are assigned to the same OS-Application” (Overview of Functional Safety Measures in AUTOSAR, CP R21-11). Any QM component that shares an OS-Application with an ASIL-D component therefore cannot be covered by that partition for FFI purposes.

Second, the partition has to be enforced on the target. For each OS-Application, confirm the private data and stack regions, confirm that every QM and ASIL-D component is mapped where the design intends, and document the OS reaction to an access violation. Then test it: in a test build, have a QM component write to an ASIL-D data region and record what happens. The expected result is the reaction documented in the OS configuration. Any other outcome is a finding to be dispositioned.

Rank #3
waveshare ESP32-S3 4.3inch LCD Display Development Board with 2.4GHz WiFi and BLE 5 Support,32-bit LX7 Dual-core Processor,Onboard CAN, RS485, I2C Interface
  • ESP32-S3 4.3″ LCD Development Board,Integrates RGB Interface LCD
  • IPS Display Panel,Excellent Display Performance, 160°Viewing Angle
  • Supports Multiple Peripherals,Supports The Expansion Of Multiple Peripherals Via Sensor, CAN, RS485, And I2C Interfaces
  • A microcontroller development board with 2.4GHz WiFi and BLE 5 support,
  • Equipped with Xtensa 32-bit LX7 dual-core processor, up to 240MHz main frequency.

Timing

Timing interference occurs when QM activity consumes CPU time, holds a shared resource, or disables interrupts long enough for an ASIL-D deadline to be missed. Build the argument from the worst case, not from average load:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Worst-case execution time for each ASIL-D task, measured or analysed on the target, with the margin stated.
  • The worst-case QM load that can share the core, derived from the task and interrupt configuration, including any QM work that runs at a higher priority than ASIL-D tasks.
  • The maximum duration of interrupt-locked sections and resource locks held by QM code on which ASIL-D code can wait.
  • Where the OS configuration uses execution-time budgets or timing protection, the budget values and the reaction to an overrun.

Execution

Execution interference is the case where a QM element causes an ASIL-D element to run incorrectly: a stack overflow that corrupts ASIL-D frames, an out-of-sequence call into shared code, or a fault that stops a task both domains use. Partitioning does not cover all of these, so the argument needs its own evidence:

  • Worst-case stack usage per task and per OS-Application, with stack-overflow detection enabled in the configuration. Static allocation fixes where stacks live, but it does not show that they are large enough.
  • The fault-reaction chain: which error is detected, which hook or handler runs, what is terminated or restarted, and whether that reaction completes within the time budget of the ASIL-D safety requirement it protects.
  • Any shared code, such as vendor libraries, the crypto stack, or drivers, that both ASIL-D and QM code call, with the reentrancy and state assumptions it relies on.

Exchange of information

This class covers data and signals that cross the QM/ASIL-D boundary through RTE ports, shared variables, non-volatile memory, or service calls. The question is whether a QM-produced value can wrongly change an ASIL-D decision. For each interface, list:

  • direction, data type, valid range, and update frequency;
  • which component writes and which reads, and whether a read can observe a partially updated value;
  • the check the receiver applies (range, plausibility, freshness, or an end-to-end protection mechanism where the project uses one);
  • the behavior when the value is missing or invalid.

Zero heap: define it, then state what it covers

In this article, zero heap means that the production image performs no dynamic allocation from a heap at runtime, and that every object the application uses has a size and location fixed at build time. Define the term in your own documentation, because projects use it for different scopes.

Evidence that supports the claim:

  • The linker script and map file show no heap region of non-zero size and no heap symbols in use.
  • A static analysis or scripted search over every compiled source file, including vendor BSW and crypto libraries, finds no calls to dynamic allocation functions such as malloc, calloc, realloc, free, or operator new in C++ code. Check libraries separately, because application source can be clean while a library is not.
  • The compiler and runtime configuration is recorded so the check can be repeated after a toolchain update.

Zero heap says nothing about stack use, shared data, timing, or HSM behavior. Those belong to the classes above, and the project must justify its own pass criteria for the heap check.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

The HSM boundary: a security interface that needs FFI analysis

AUTOSAR’s Explanation of Security Overview (Foundation R25-11) describes an automotive HSM as potentially including secure storage, cryptographic acceleration, a secure CPU core, and a hardware interface. It states that an HSM can be a separate controller or integrated within the ECU, and that the choice depends on security, performance, cost, and space needs. That is security architecture. For FFI, the HSM matters as an interface, and the analysis should treat it that way.

Best Value
Chemical Guys, Total Interior New Car Smell Cleaner & Protect Wipes, 30 Ct
  • ALL-IN-ONE FORMULA (PMWCSPI23430): Cleans, protects, and refreshes every interior surface including dashboards, vinyl, plastic, leather, fabric, and glass for a complete detail in one easy step.
  • NEW CAR SCENT EXPERIENCE: Infused with the signature New Car Smell fragrance to restore that just-detailed freshness every time you clean your vehicle’s interior.
  • SAFE FOR ALL INTERIORS: Designed for modern automotive materials; use on steering wheels, door panels, consoles, and more without streaks, fading, or residue.
  • QUICK AND CONVENIENT: Pre-moistened wipes make touch-ups effortless at home or on the go; perfect for daily maintenance or quick cleanup between full details.
  • CLEANS AND PROTECTS: Removes dust, light grime, and smudges while leaving behind a smooth, dry finish that helps maintain a clean look and feel across all surfaces.

Document the HSM interface as an FFI interface

  • Which components call the HSM, and whether any QM component can call it at all. If one can, that path is an information-exchange interface and must be analysed as one.
  • Whether calls block, the worst-case duration of a call, and whether an ASIL-D task can wait on a call that a QM component initiated.
  • Shared resources between the HSM and the application core, such as the bus, DMA channels, interrupts, and buffers, and whether QM traffic can occupy them.
  • Access control for keys and HSM services: which OS-Application or component holds each permission.
  • Failure behavior: what an ASIL-D caller receives when the HSM returns an error, is busy, or does not respond, and how long the caller waits before it gives up.

Validation procedure

  1. Record the safety strategy and the target facts listed above, with revision identifiers.
  2. List every ASIL-D element the safety requirements depend on, and every QM element that runs on the same ECU.
  3. Map each QM/ASIL-D pair to the boundaries it shares: OS-Application, core, bus, interrupt sources, shared memory, and the HSM interface.
  4. For each pair and each interference class, write the claim, the mechanism that supports it, and the test or analysis that shows the mechanism works on the target.
  5. Run the tests on the target configuration you will ship, with QM load at its worst case rather than a nominal scenario.
  6. Record every observed violation or unexpected result, and its disposition, in the safety case.
  7. Repeat the affected analyses after any change to the OS-Application mapping, task configuration, toolchain, vendor BSW, or HSM firmware.

When the argument breaks: failure branches

  • A QM component shares an OS-Application with an ASIL-D component. The partition cannot serve as the FFI argument for that pair. Move one component to a different OS-Application, develop the shared component to ASIL-D, or build a separate, project-specific software-level argument and back it with evidence.
  • The heap check passes for application code but fails for a library. The allocation is still in the image. Replace the library function, configure it to use statically sized buffers, or treat its allocation as a memory-interference path with its own analysis.
  • ASIL-D deadlines hold in isolation but fail under worst-case QM load. The timing argument is incomplete. Find the blocking section or priority inversion, then reduce the QM load or its priority, or shorten the locked section.
  • An HSM call can delay an ASIL-D task beyond its budget. Move the call to a context where waiting is acceptable, add a timeout with a defined fallback, or restrict which components may make the call.

Where the public sources stop

The AUTOSAR material cited here explains the mechanisms, their stated limits, and the factors that drive HSM architecture. It does not establish FFI for any particular project. It does not prescribe a zero-heap demonstration method, define a universal HSM-to-FFI validation pattern, or give numeric thresholds for timing or stack margins. It also does not establish certification or assessor acceptance for any ECU. Those conclusions come only from your configuration, your safety requirements, and your safety case, which should cite the specific document revisions and test results that support each claim.

Sources cited: AUTOSAR, Overview of Functional Safety Measures in AUTOSAR, CP R23-11 and CP R21-11; AUTOSAR, official Classic Platform overview and standards listing; AUTOSAR, Explanation of Security Overview, Foundation R25-11.

Quick Recap

SaleBestseller No. 1
Bestseller No. 3
waveshare ESP32-S3 4.3inch LCD Display Development Board with 2.4GHz WiFi and BLE 5 Support,32-bit LX7 Dual-core Processor,Onboard CAN, RS485, I2C Interface
waveshare ESP32-S3 4.3inch LCD Display Development Board with 2.4GHz WiFi and BLE 5 Support,32-bit LX7 Dual-core Processor,Onboard CAN, RS485, I2C Interface
ESP32-S3 4.3″ LCD Development Board,Integrates RGB Interface LCD; IPS Display Panel,Excellent Display Performance, 160°Viewing Angle
$36.47

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.