| Feature | TC387 / TC389 Specification | MCAL Impact |
|---|---|---|
| CPU cores | 6x TriCore (TC1.8P) at 300 MHz each | Multi-core: MCAL must be thread-safe; shared peripheral access needs spinlocks |
| Memory | 8 MB code flash, 2 MB data flash (DFLASH), 6.4 MB SRAM | FLS for DFLASH; Fee for NvM; EEP uses DFLASH or SPI |
| CAN | MultiCAN+ with 12 CAN FD nodes | Can MCAL: mailbox-based; message objects up to 512 KB DLC |
| ADC | VADC (versatile ADC): 10 converter groups, 96 channels, 12-bit | Adc MCAL: group-based; DMA-assisted per group |
| SPI | QSPI: 4 modules, each with FIFO and DMA support | Spi MCAL: job/sequence-based; DMA for large transfers |
| Timers | GTM (Generic Timer Module): 200+ timer cells; STM, CCU6 | Gpt/Pwm/Icu MCAL: all use GTM submodules (TOM, ATOM, TIM) |
| Safety | SMU (Safety Management Unit), lockstep CPU0/1 pairs, ECC on RAM/flash | WDG MCAL: ENDINIT-protected registers; SMU alarm in Dem |
Infineon Aurix TC3xx Architecture Overview
iLLD vs AUTOSAR MCAL on Aurix
/* Infineon provides two driver options for TC3xx: */
/* Option 1: iLLD (Infineon Low-Level Drivers) */
/* Direct register access wrapped in C functions; no AUTOSAR abstractions */
#include "IfxCpu.h"
#include "IfxCan.h"
#include "IfxQspi.h"
/* iLLD CAN example: direct, simple, no configuration tool needed */
void iLLD_Can_Init(void)
{
IfxCan_Can_Config canConfig;
IfxCan_Can_initModuleConfig(&canConfig, &MODULE_CAN0);
canConfig.nodePointer[0].baudrate = 500000u;
IfxCan_Can_initModule(&g_CanHandle, &canConfig);
}
/* Option 2: AUTOSAR MCAL (EB tresos / Vector DaVinci generated) */
/* Configuration tool generates arxml -> C config -> compiled MCAL */
#include "Can.h"
void AUTOSAR_Can_Init(void)
{
Can_Init(&CanConfig); /* all config encoded in CanConfig struct */
Can_SetControllerMode(0, CAN_CS_STARTED);
}
/* When to use iLLD: prototype, non-AUTOSAR projects, early bringup */
/* When to use AUTOSAR MCAL: production ECU with full BSW stack, */
/* ASPICE compliance, multi-project portability */Aurix Safety Features in MCAL
| Safety Feature | TC3xx Hardware | MCAL Support |
|---|---|---|
| Lockstep CPU | CPU0 and CPU1 run identical code; outputs compared cycle-by-cycle | WDG MCAL uses CPU0 for safety tasks; SMU reports mismatch via Dem |
| ECC on memories | Single-bit correct, double-bit detect on SRAM and flash | FLS MCAL: read-back verify after write; ECC error -> Dem event |
| ENDINIT protection | Safety-critical registers (WDG, PLL) locked behind ENDINIT handshake | Mcu_Init() and Wdg_Init() unlock/re-lock ENDINIT around config writes |
| SMU (Safety Management Unit) | Centrally collects hardware faults; triggers alerts/resets | SMU alarms mapped to Dem events; MCAL registers alarm handlers |
| Bus integrity check | HSM (Hardware Security Module) checks bus master access | Eth MCAL configures bus protection regions for ETH DMA master |
Summary
The Aurix TC3xx is the dominant ASIL-D MCU platform in European automotive (Bosch, Continental, ZF all use it extensively). Its multi-core architecture requires MCAL to be explicitly designed for concurrent access: peripheral registers that are shared between CPU cores (e.g., GTM timer configuration registers) must be protected by hardware spinlocks (CSwap instruction) in the MCAL implementation. The ENDINIT protection mechanism - a hardware handshake sequence required before writing safety-critical registers - is unique to Aurix and not visible in the AUTOSAR API, but is implemented inside Mcu_Init() and Wdg_Init(). A bootloader that incorrectly handles ENDINIT will corrupt the watchdog configuration and cause immediate reset.
🔬 Deep Dive — Core Concepts Expanded
This section builds on the foundational concepts covered above with additional technical depth, edge cases, and configuration nuances that separate competent engineers from experts. When working on production ECU projects, the details covered here are the ones most commonly responsible for integration delays and late-phase defects.
Key principles to reinforce:
- Configuration over coding: In AUTOSAR and automotive middleware environments, correctness is largely determined by ARXML configuration, not application code. A correctly implemented algorithm can produce wrong results due to a single misconfigured parameter.
- Traceability as a first-class concern: Every configuration decision should be traceable to a requirement, safety goal, or architecture decision. Undocumented configuration choices are a common source of regression defects when ECUs are updated.
- Cross-module dependencies: In tightly integrated automotive software stacks, changing one module's configuration often requires corresponding updates in dependent modules. Always perform a dependency impact analysis before submitting configuration changes.
🏭 How This Topic Appears in Production Projects
- Project integration phase: The concepts covered in this lesson are most commonly encountered during ECU integration testing — when multiple software components from different teams are combined for the first time. Issues that were invisible in unit tests frequently surface at this stage.
- Supplier/OEM interface: This is a topic that frequently appears in technical discussions between Tier-1 ECU suppliers and OEM system integrators. Engineers who can speak fluently about these details earn credibility and are often brought into critical design review meetings.
- Automotive tool ecosystem: Vector CANoe/CANalyzer, dSPACE tools, and ETAS INCA are the standard tools used to validate and measure the correct behaviour of the systems described in this lesson. Familiarity with these tools alongside the conceptual knowledge dramatically accelerates debugging in real projects.
⚠️ Common Mistakes and How to Avoid Them
- Assuming default configuration is correct: Automotive software tools ship with default configurations that are designed to compile and link, not to meet project-specific requirements. Every configuration parameter needs to be consciously set. 'It compiled' is not the same as 'it is correctly configured'.
- Skipping documentation of configuration rationale: In a 3-year ECU project with team turnover, undocumented configuration choices become tribal knowledge that disappears when engineers leave. Document why a parameter is set to a specific value, not just what it is set to.
- Testing only the happy path: Automotive ECUs must behave correctly under fault conditions, voltage variations, and communication errors. Always test the error handling paths as rigorously as the nominal operation. Many production escapes originate in untested error branches.
- Version mismatches between teams: In a multi-team project, the BSW team, SWC team, and system integration team may use different versions of the same ARXML file. Version management of all ARXML files in a shared repository is mandatory, not optional.
📊 Industry Note
Engineers who master both the theoretical concepts and the practical toolchain skills covered in this course are among the most sought-after professionals in the automotive software industry. The combination of AUTOSAR standards knowledge, safety engineering understanding, and hands-on configuration experience commands premium salaries at OEMs and Tier-1 suppliers globally.