AUTOSAR (AUTomotive Open System ARchitecture) is the standardized software architecture widely adopted in the automotive industry. This guide covers the integration of AutoChips MCUs into AUTOSAR-based systems, providing practical guidance for software developers and system architects.

AUTOSAR Architecture Overview

AUTOSAR defines a layered software architecture consisting of the Application Layer (ASW), Runtime Environment (RTE), and Basic Software (BSW). The BSW is further divided into ECU Abstraction Layer, Service Layer, and Microcontroller Driver Layer (MCAL). AutoChips provides MCAL drivers that interface between the microcontroller hardware and the upper AUTOSAR layers.

MCAL Configuration

The Microcontroller Driver Layer (MCAL) provides low-level drivers for microcontroller peripherals including GPIO, ADC, PWM, CAN, LIN, and SPI. AutoChips MCAL drivers are compliant with AUTOSAR 4.x standards and support various compiler toolchains including Tasking, HighTec, and Green Hills.

MCAL configuration is performed using EB tresos Studio or similar configuration tools. The configuration process involves: selecting enabled peripherals, configuring clock settings and prescalers, setting up pin multiplexing and alternate functions, and configuring interrupt priorities and routing.

Integration Best Practices

Successful AUTOSAR integration requires attention to timing, memory, and communication aspects. Ensure MCAL initialization completes before BSW initialization. Configure memory sections according to linker scripts provided by AutoChips. Implement proper error handling and diagnostic event management.

As an authorized AutoChips distributor, LiTong provides AUTOSAR MCAL packages, configuration support, and integration consulting services.