TDEB Top Bar

Trending
Semiconductor Industry News — The Digital Electronics Blog
Follow Us

TDEB Masthead

The Semiconductor Hub

Semiconductors.  Chips and Systems.  Innovation.

Indexed by leading Search Engines, AI and referenced by Engineers worldwide 500+ Articles 10M+ Pageviews 30+ Reports 50+ Citations

What a Vehicle HAL Must Promise: Eight Duties Drawn From Standards and Bench Data

Murugavel Ganesan
by
0
Share Facebook X LinkedIn WhatsApp Email
A bare automotive compute board with shielded connectors on a dark workbench.

In a software-defined vehicle, the hardware abstraction layer carries far more weight than a driver wrapper ever did. It has to let software outlive a chip and survive years of over-the-air updates, while a braking function shares a processor with unrelated workloads and still meets its deadline. A 2025 IEEE conference paper from the University of Stuttgart scored the main candidates against 14 criteria and concluded that no existing approach meets all of them yet.

That scoring shows what has been published. Bench measurements add a harder point: hiding hardware does not stop it from interfering. On one Arm test platform, three open-source partitioning hypervisors cost under 1% when a guest ran alone, yet a deliberately memory-heavy neighbour slowed benchmarks by up to about 105%. This post turns the standards and papers into eight duties for a good HAL, and ends with an acceptance test to use on a supplier's stack.

Key takeaways

  • "HAL" names several layers, from microcontroller drivers to vehicle signal catalogues. Ask which layer a supplier means before comparing anything.
  • The Stuttgart evaluation favours a hybrid: hypervisor isolation below, standard middleware above. It is a recommendation, and the authors have not yet built and validated it.
  • A portable interface says little about timing. Measured interrupt latency and memory interference belong in the contract.
  • Capabilities should be negotiated. VIRTIO's CAN device shows how much meaning can sit in one optional feature bit.
  • Evidence is part of the product. In the Stuttgart scoring, a missing mark means missing public proof.

One word, several layers

Much confusion comes from comparing things at different heights. Here is how the public documents divide the work. The last column is our reading.

LayerPublic exampleWhat it hidesWhat remains your problem
MicrocontrollerAUTOSAR Classic Microcontroller Abstraction LayerRegisters and internal peripherals, behind a standardised upper interfaceThe layer itself must be redone for each chip
BoardAUTOSAR Classic ECU Abstraction LayerWhether a device is inside or outside the chip, and how it is connectedThe implementation depends on the ECU hardware
Virtual deviceOASIS VIRTIOThe specific hypervisor and physical device behind a standard device modelThe latency of whatever sits behind the queue
Operating platformAUTOSAR AdaptivePhysical or virtual execution, through its "Machine" conceptDevice drivers, whose APIs AUTOSAR has no current plan to standardise
Core stackEclipse S-COREOS differences and middleware, below the application and above the board support packageThe board support package
Vehicle functionAndroid Vehicle HALA vehicle function, shown as a property to read, write or subscribe toThe vehicle-side implementation behind each property
Signal meaningCOVESA Vehicle Signal SpecificationVendor-specific signal names and semanticsTransport, since VSS defines no concrete interface
Cloud-native frameworkSOAFEEDifferences in how workloads are built, deployed and orchestratedPartitioning choices, which its document lists as future work

A vehicle programme will use several of these at once. Our earlier post on ten challenges of designing software-defined vehicles gives the wider view.

What the scorecard says

Narla and colleagues at Stuttgart sorted 14 criteria using the MoSCoW method: seven Must-Haves worth 5 points each, three Should-Haves worth 2 and four Could-Haves worth 1, for a maximum of 45. Safety, over-the-air update, security, low latency, standards compliance, multi-platform support and reduced hardware demand are the Must-Haves. A candidate that misses any one of them is flagged as unsuitable in its current state.

The published text gives AUTOSAR Adaptive 37 points, with one Must-Have unmet, and Android Automotive 29. Apex.OS reaches 43. QNX, EB corbos and RTA-LWHVR are said to meet every Must-Have, while Xen and KVM lose 15 points on safety, latency and compliance. SOAFEE is expected to reach 45 on completion, which is a projection for something still under development. COVESA scores low because its purpose is different: it standardises signals and complements the others.

Two cautions follow. First, the authors state that a failed mark reflects missing public proof, so these scores measure published evidence and not bench behaviour. Second, the gate matters more than the total. An illustrative pair shows why: a stack that misses one Must-Have and earns everything else scores 40, while a stack that meets all seven Must-Haves and nothing else scores 35. The lower score is the only one still eligible.

Eight duties of a good HAL

This list is our synthesis. No standard sets it out in this form, but each item rests on the sources named.

1. Offer a narrow contract, and name the exceptions

AUTOSAR Classic states the task plainly: make higher layers independent of the microcontroller, then of the ECU hardware layout. It also limits shortcuts, since bypassing two or more layers is not allowed and neither is bypassing the microcontroller abstraction layer. What makes the design honest is the Complex Drivers layer, which spans from hardware to the runtime environment for devices AUTOSAR does not specify, very tight timing and migration. Its interfaces may depend on the hardware. Our guide to automotive microcontrollers covers the chips these layers usually run on.

Every exception of this kind is portability debt, so count them. AUTOSAR Adaptive takes a different route at the top end, favouring services that expose system functions over standard driver APIs.

2. Negotiate capabilities and do not assume them

VIRTIO has the cleanest model. A device offers the features it understands, the driver accepts a subset, and the only way to renegotiate is to reset the device. Android separates the same ideas: a manifest describes what is provided and a compatibility matrix describes what is required. SOAFEE's security guidance goes further, suggesting that an application might deploy only if the hardware provides a crypto service from an HSM.

The VIRTIO 1.4 draft shows why precision matters. Its CAN device has a feature bit for late transmit acknowledgement. If that bit is not negotiated, the device may report a request as complete once the message is scheduled, possibly before it reaches the bus. Software that takes "complete" to mean "on the wire" would then be wrong on some platforms and right on others, with no compile error to warn anyone.

3. Let the layers above and below update separately

Over-the-air update is a Must-Have in the Stuttgart criteria, and the paper points to Android's Project Treble as a reference, because it separated the OS framework from vendor hardware code. Android reconciles its manifests and matrices at update time, so a device gets only framework updates compatible with its capabilities.

The contract itself will also change. Android defined its Vehicle HAL in HIDL up to version 12 and in AIDL from version 13, and new property definitions now go only to the AIDL interface. So a HAL plan needs a versioning and migration story from the first release.

4. Isolate in space, in time and in communication

SOAFEE's strategy is realistic about cost. Developing a whole platform to a safety standard is not practical, so only safety-critical elements are developed or qualified to ISO 26262, then isolated to give spatial, temporal and communication freedom from interference. The Stuttgart hybrid follows the same logic, keeping a failure in infotainment away from core functions.

Static partitioning hypervisors are one concrete form, with exclusive CPUs, memory allocated at build or initialisation time and devices assigned directly to a virtual machine. With a guest running alone, the cost is small: Martins and Pinto measured under 1% for Jailhouse, Xen and Bao, and up to 7% for the seL4 CAmkES VMM. Support for large pages proved important, as a second stage of address translation raises the penalty of each TLB miss.

5. State timing under contention, and not just on a quiet system

This is where abstraction and physics part company. The same study, run on a Xilinx ZCU104 board with Cortex-A53 cores, measured a base interrupt latency of about 200 ns. Under the hypervisors this rose to about 840 ns for Bao, 1,090 ns for Jailhouse, 2,800 ns for Xen and 9,400 ns for the CAmkES VMM. A heavy neighbour raised latency about tenfold. Direct interrupt injection brought it close to native, and only Xen and Bao respected interrupt priority order. Software versions and patches date from 2023, and the authors left virtual device performance out of scope, so treat these as a snapshot on one board.

Cache partitioning helps but does not finish the job. Colouring alone cost up to about 20% in performance, and even with it, interference still added up to 38 percentage points of overhead, because contention continues deeper in the memory system. Bechtel and Yun went further with a synthetic attacker on consumer boards: up to 346 times the execution time on a Raspberry Pi 3, with the cache partitioned or not. Their write bandwidth regulation cut the same case from 345 times to about 1.2 times. That board is not a vehicle chip and the attack is engineered to be severe, but it shows what a timing contract has to rule out.

An illustrative budget. Suppose a task takes 4 ms alone with a 6 ms deadline. These two numbers are our assumptions. The percentages come from the study's susanc-small benchmark and will not carry over directly to your chip.

ConfigurationOverhead usedRun timeAgainst 6 ms
AloneNone4.00 msMeets, 2.00 ms spare
Heavy neighbour, no colouring105%8.20 msMisses by 2.20 ms
Heavy neighbour, with colouring58%6.32 msMisses by 0.32 ms

A portable API would look the same in all three rows. Only a stated worst case tells you which one you are in.

6. Keep meaning separate from transport

VSS defines a syntax and a catalogue of signals, so that companies can exchange vehicle data without depending on one another's internals. It deliberately leaves out a concrete interface. Eclipse KUKSA shows how the two halves meet: its Databroker is a gRPC service built around the VSS tree, and its providers link the broker to ECUs over CAN or Ethernet protocols such as SOME/IP. If the wiring moves from one bus to another, the provider changes and the application should not. That is also why signal standards complement a HAL and do not replace one.

7. Run the same software on a virtual target, and prove the match

SOAFEE calls this environmental parity: more validation can move to the cloud if the virtual execution environment is similar or equivalent to the embedded one. VIRTIO helps here, as its CAN device may front a physical bus, a virtual bus between machines or both. SOAFEE's own document is candid, however. It says parity needs to be proven by observation and analysis, and that current cloud tooling lacks the ability to test real-time workloads. Functional tests can move early. Timing claims need silicon, or a model correlated against it.

8. Ship evidence along with the code

A HAL enters a safety case, so its artefacts count. Martins and Pinto found the smallest code bases in hypervisors built for static partitioning, which helps certification, but none of those studied supplied artefacts such as a requirements specification at that time. They saw Xen taking first steps, and seL4's formal proofs giving the strongest guarantees. S-CORE plans for this, with libraries developed at ISO 26262 integrity levels from QM up to ASIL-B depending on their use. That is a development target, and a certificate is a separate matter.

An acceptance test for a HAL

Use this when a supplier says its stack abstracts the hardware. It is our suggestion, not a formal checklist.

DutyAsk forWarning sign
ContractThe interface list, plus every hardware-dependent exception"Portable" with no count of complex or custom drivers
CapabilitiesThe negotiation model and the meaning of each optional featureBehaviour that differs across platforms and is not recorded
UpdateVersion rules and a compatibility check at update timeOS updates that need a new vendor layer each time
IsolationMechanisms for space, time and communication, separatelyIsolation claimed from containers or memory protection alone
TimingWorst-case latency with a stated interference workload on your SoCAverage overhead measured with one guest
MeaningA signal catalogue with vendor extensions kept apartSignal names tied to one bus or supplier
ParityCorrelation data between virtual and physical runs"Same image" offered as proof of same behaviour
EvidenceSafety and security work products, and certificate scopeA claim of compliance with no named assessor or version

The Hub's automotive lifecycle shows where these reviews fall in a programme. Ideally the timing row is settled while the SoC can still change, since the shared resources that cause contention are fixed in silicon.

What to watch next

The Stuttgart authors list prototype validation of the hybrid as future work. Their funding includes HAL4SDV, a Chips Joint Undertaking project due to run until 31 March 2027, with objectives covering a hardware abstraction framework and virtualisation. The VIRTIO 1.4 document that adds the CAN device was still a public review draft in December 2025. S-CORE's site reports release gate v0.8, with v1.0 still ahead. Check current versions before relying on any of these.

Sources

Scores and measurements come from the papers named, on the platforms and versions they used, and supplier products may have changed since. The two-stack score pair and the 4 ms and 6 ms budget are illustrative. This post is not a safety assessment.

Murugavel Ganesan
About the Author
Murugavel Ganesan
Product Director | SerDes · IVN · Edge AI · Compute | Ex Intel · Infineon

A semiconductor product leader working across product architecture, definition, strategy, and silicon and software execution, from concept through volume production. He has worked with teams across Asia, Europe and the USA, including at Intel, Infineon and ArrayComm.

His work covers ASICs, SoCs, FPGAs and chiplets for wireless, wireline, automotive, IoT and AI, including PCIe, CXL and DDR interfaces alongside RF and mixed-signal design.

Share Facebook X LinkedIn WhatsApp Email

Post a Comment

0 Comments

Your comments will be moderated before it appears here.

Post a Comment (0)

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Learn more
Ok, Go it!