
Recall first from Service-oriented communication and the shift to a POSIX OS
- Signal-based CAN is static; service-oriented SOME/IP adds discovery, methods, events and dynamic binding.
- Central compute needs a POSIX OS (Linux or QNX) and a hypervisor to separate QM from ASIL-D.
- The gateway performs signal-to-service mapping, translating CAN signals into SOME/IP events and service calls back into CAN frames.
Mixed criticality, budgets, and the mistakes to avoid
6 min readThe POSIX OS and hypervisor from the previous lesson put QM and ASIL-D software on one chip, which raises the question of how they can share it safely. It answers: how does one central computer safely run mixed-criticality workloads, and how does that turn the car into a software-defined vehicle with a new supply chain?
Mixed-criticality consolidation means one SoC runs ASIL-D control next to QM infotainment. The danger is interference: two software components sharing a chip can affect each other through every resource they hold in common. The interference channels are the CPU cores, the shared caches, the memory controller and its bandwidth, the on-chip interconnect, the I/O and DMA paths, and even the thermal budget, since one hot component raises the temperature of the whole die. Freedom from interference, a core ISO 26262 requirement, means demonstrating that no failure or misbehaviour in one partition can cause another partition to fail.
The standard defence is static partitioning. Assign each guest its own dedicated cores, carve out its own memory region, partition or colour the last-level cache so no guest can evict another's lines, give it its own I/O devices behind an IOMMU (I/O memory management unit, which confines DMA to the owning guest), and reserve memory-controller bandwidth. Then monitor the boundaries: a watchdog per partition, a health channel that the hypervisor supervises, and budget counters that trip before a guest can exceed its share.
Partitioning has a real price, and engineers routinely underestimate it. Dedicated cores sit idle when their guest is not busy; cache partitioning shrinks the effective cache for every guest and raises miss rates; fixed memory carve-outs waste RAM that another guest could use; reserved bandwidth caps peak performance. The cost of freedom from interference is silicon and power that no single function could justify on its own, and it is only worth paying because the alternative, certifying one giant mixed-criticality software stack, is worse.
Alongside isolation there is a budget problem. Compute must be budgeted per function, in DMIPS (a measure of integer CPU throughput) for control code and TOPS (trillions of operations per second) for neural-network inference, with headroom for the worst case. Power must be budgeted against the vehicle's supply and against heat: a sealed central unit in a hot car has a fixed thermal envelope, and it must throttle gracefully rather than shut down. Redundancy must be budgeted too. A fail-safe design stops safely on failure: the function degrades or disengages and warns the driver, which is acceptable while the human is the fallback. A fail-operational design must keep working after a failure, which is required when there is no human fallback, as in higher levels of automated driving; it needs duplicated compute, power and communication, and often diverse, independently developed channels, which roughly doubles the cost of the safety path.
The three architecture generations trade these costs differently:
| Criterion | Distributed | Domain | Zonal + HPC |
|---|---|---|---|
| Wiring | heaviest | lighter | lightest, short local runs plus backbone |
| Bandwidth | per-bus, low | higher in-domain | high backbone, switched |
| End-to-end latency | bus arbitration, variable | gateway hops | predictable, QoS-capable |
| Cost per node | many cheap ECUs | fewer, larger ECUs | few expensive compute nodes |
| Security perimeter | many small endpoints | fewer endpoints | few, well-defended gateways |
Common architecture mistakes
- Symptom: the ASIL-D guest misses deadlines only under infotainment load. Cause: shared cache or memory bandwidth, an interference channel that was never partitioned. Diagnose with per-guest performance counters and cache-miss traces; fix by partitioning cache and reserving bandwidth.
- Symptom: a zonal car still has a heavy harness. Cause: the team kept long point-to-point wiring and only renamed the boxes; zoning pays only when devices actually connect to the nearby zone. Diagnose from the wiring diagram; fix by re-homing each device to its zone.
- Symptom: an Ethernet backbone that works in the lab jitters in the car. Cause: treating switched Ethernet as if it were deterministic without time-sensitive networking (TSN) for the streams that need it. Diagnose with per-stream latency measurements; fix with TSN schedules and stream priorities.
- Symptom: a central unit throttles and drops features on a hot day. Cause: the thermal budget was sized for average rather than worst-case ambient and load. Diagnose by correlating frequency, power and temperature logs; fix by re-partitioning the workload or enlarging the thermal solution.
Going deeperThe price of partitioning, concretely
Partitioning is not a configuration flag; it is silicon you give away. Dedicated cores cannot be shared, so a guest that spikes cannot borrow a neighbour's idle core. Cache partitioning, by way-partitioning or page colouring, caps the lines a guest may fill, which lowers its effective cache and raises its miss rate and its memory traffic. Memory carve-outs fix addresses so a guest cannot grow into another, at the cost of stranding RAM. And a safety guest must be scheduled so nothing else can preempt or delay its critical tasks, which on shared hardware means reserving not just cores but interrupt routing, DMA channels and bus arbitration. The result is that a mixed-criticality SoC runs every guest worse than a dedicated chip of the same size would, which is exactly the trade the consolidation is making, and why the cost model is safety first and utilisation second.
The software-defined vehicle and the new supply chain
5 min readA software-defined vehicle, a car whose functions are implemented and updated as software packages decoupled from the hardware (software-defined vehicle) is a car whose functions are defined by software that can be changed independently of the hardware it runs on. Today, most of a car's behaviour is fixed when the ECU is manufactured and can only be changed in a workshop by re-flashing. In an SDV the hardware is a stable compute platform, and features are software packages that can be deployed, updated and removed over the air (OTA).
The decoupling is the point. On the architecture of the previous sections, zonal controllers and HPCs on an Ethernet backbone, a feature is no longer a box with wires but an application with a service interface. Hardware and software get separate life cycles: the same platform can ship for years while the software changes monthly. OTA updates are the delivery mechanism, and they are now regulated: UNECE regulations R156 (software update management) and R155 (cybersecurity) require a managed, traceable update process with integrity checks, rollback and security, which is why OTA is an engineering discipline and not a convenience.
The end state the industry describes is an app-store model: third-party developers build apps against a published vehicle API, an OEM reviews and signs them, and they run in a sandbox on the car, the way a phone app runs on a phone. For that to work there must be a stable abstraction between the application and the car: a vehicle abstraction layer and hardware abstraction layer that present the car's services, such as speed, climate, doors and cameras, through one interface that is identical across vehicle lines and hardware generations. That abstraction is precisely what Adaptive AUTOSAR's runtime (the ARA interfaces) and the OEM platforms built on it, such as Volkswagen's Cariad stack or Mercedes' MB.OS, are meant to provide: write the app once, run it on any vehicle with the platform. Without that layer, every app would be a per-model integration, and the app-store economics would not close.
This shift reorders the supply chain. Classically the tiers were clean: the OEM (the carmaker) integrates; the Tier-1, a supplier such as Bosch, Continental or Denso, delivers a complete system, an ECU with its software; the Tier-2 supplies chips and components. Software sat inside the Tier-1's box, and the OEM often did not even own it. In an SDV world the software becomes the product and the differentiator, so OEMs build software in house, Volkswagen founded Cariad, Mercedes builds MB.OS, and Tesla has always been a software company, while Tier-1s reposition as software suppliers and integration partners, and Tier-2 chipmakers such as NVIDIA and Qualcomm gain influence because the silicon defines the compute platform. A "Tier-0.5" has even appeared: suppliers that work so closely with an OEM that they are effectively co-developers. The practical consequence for an engineer is that the skills in this module, POSIX, C++, service-oriented middleware and hypervisors, are now OEM- and platform-level skills, not hidden inside a supplier's black box.
Package: the app is built against the vehicle API and signed with the OEM's key
Stage: the OEM uploads the package to the update backend and targets a fleet or a set of vehicles
Download: the vehicle's update client downloads and verifies the package signature and integrity
Deploy: the app is installed into a sandbox and its services register with the runtime
Discover: other services and the HMI find the new service through service discovery
Monitor: the platform watches health, resources and telemetry of the new app
Rollback: if health checks fail, the update is reverted to the previous known-good version
An automotive app store is not the phone app store. Apps can touch safety-relevant vehicle services, so the OEM reviews, signs, sandboxes and monitors them, and the vehicle API exposes a deliberately limited, safe subset of the car. Safety, cybersecurity and liability shape the ecosystem far more than convenience does.
Try it
1 min readOpen the lab for this lesson and take the given function set, door locks, cameras and brake-by-wire, and map it onto domain, zonal and HPC architectures, justifying the gateway count, the bus types and the ASIL placement for each. Then sketch an SDV application end to end on paper: its service interface, how it registers and is discovered, the OTA path from a signed package to a running service, and the rollback trigger. Revisit the harness, bandwidth and security trade-off table for each of your three mappings and defend the cheapest design that still meets the safety goal. The practice pack has the templates and the step-by-step checklists for both exercises.
Key takeaways
- Mixed criticality is bought with partitioning: dedicated cores, cache and memory come at a performance cost.
- The software-defined vehicle decouples software from hardware, ships OTA updates and reorders the supply chain.
- Fail-safe degrades and hands back to the driver; fail-operational must keep working after a failure, which needs duplicated compute, power and communication.
- In the SDV supply chain, OEMs build software in house, Tier-1s reposition as software and integration partners, and chipmakers gain influence because the SoC defines the platform.
Reflect
- Explain to a colleague, in two sentences: analyse a vehicle function set and map it onto domain, zonal and HPC architectures with bus and ASIL placement
- Which objective are you least sure about? Re-read that section, then do its exercise in the practice pack.
- What surprised you when you ran the commands yourself?
On a real board
Repeat the key commands on your Raspberry Pi or lab board over SSH or the serial console. Note anything that behaves differently from your PC, such as missing tools, a BusyBox shell or a read-only filesystem.
References and further reading
Official documentation first. Links checked when the lesson was published.