TM
Freescale?and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. ?Freescale Semiconductor, Inc. 2007.
13
通信硬件抽象层
Microcontroller
AUTOSAR Runtime Environment (RTE)
C o m p l e x
D r i v e r
B a s i c S o f t w a r e (B S W )
Communication
Communication Hardware
Communication Drivers I/O Drivers
I/O Hardware Abstraction
通信硬件抽象层
?对于内部和ECU 硬件架构上外部通信控制器的抽象
?对于所有的通信系统(LIN, CAN, FlexRay),都需要特定的通信硬件抽象:
?LIN 接口?CAN 接口?FlexRay 接口
?Freescale MCUs 具有on-chip CAN 控制器,因此外部的CAN ASIC 一般不需要
Communication
Drivers
I/O Drivers Driver for External
CAN ASIC
μC
C A N
S P I
C A N
D r i v e r S P I D r i v e r
D I O D r i v e r
D I O
CAN Trans-ceiver Driver
CAN Interface
TM
Freescale?and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. ?Freescale Semiconductor, Inc. 2007.
14
内存硬件抽象层
Microcontroller
AUTOSAR Runtime Environment (RTE)
C o m p l e x
D r i v e r
B a s i c S o f t w a r e (B S W )
Application Layer
Communication
Services
Memory Hardware
Communication Hardware
Abstraction
Memory Drivers Communication Drivers I/O Drivers
I/O Hardware Abstraction
Application Software Component
Application Software Component 内存硬件抽象
?对于内存外设和板级的内存设备的抽象
?Freescale MCUs 具有on-chip (embedded) flash ,可以仿真EEPROM. 因此,这一层只需要两个模块:
?Flash EEPROM 仿真?内存抽象接口
Memory Drivers
Com Drivers
Memory Abstraction Interface
μC
F l a s h
E E P R O M
I n t e r n a l F l a s h D r i v e r E E P R O M D r i v e r
S P I D r i v e r
S P I
External EEPROM Driver
EEPROM Abstraction Flash EEPROM Emulation
External Flash Driver
TM
Freescale?and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. ?Freescale Semiconductor, Inc. 2007.
15
通信软件包
Microcontroller
AUTOSAR Runtime Environment (RTE)
C o m p l e x
D r i v e r
B a s i c S o f t w a r e (B S W )
Communication Hardware
Communication Drivers I/O Drivers
I/O Hardware Abstraction
Application Software Component
Application Software Component 通信协议栈
?对于三种主要的车载通信协议LIN, CAN 和FlexRay ,提供一致的软件结构。
?Autosar COM, DCM 和Generic NM 模块都是协议无关的,适用于所有的通信,与物理层协议无关。
?Signal GW 和PDU router
提供了基于信号和帧的网关功能
Communication Drivers
C A N
C A N
D r i v e r
S C I
FlexRay Interface
L I N D r i v e r
F l e x R a y D r i v e r
F l e x R a y
CAN Interface
LIN Interface
DCM
COM Sign al GW
Gen eric NM
PDU Router
FlexRay NM
LIN NM
CAN NM CAN TP FlexRay?
TP
TM Freescale?and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. ?Freescale Semiconductor, Inc. 2007.16内存服务Microcontroller AUTOSAR Runtime Environment (RTE)C o m p l e x D r i v e r B a s i c S o f t w a r e (B S W )Communication Services Communication Hardware Abstraction
Communication Drivers I/O Drivers
I/O Hardware Abstraction 内存服务
?提供非易失数据的管理功能,例如数据存取,冗余校验保护,和可靠存储?采用不同的内存驱动
?采取RAM 映射作为应用程序快速读取数据的接口
?NVRAM Manager 模块是MCU 无关的
NVRAM Manager
TM
Freescale?and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. ?Freescale Semiconductor, Inc. 2007.
17
系统服务
Microcontroller
AUTOSAR Runtime Environment (RTE)
C o m p l e x
D r i v e r
B a s i c S o f t w a r e (B S W )
Communication
Services
Memory Services Memory Hardware
Abstraction Communication Hardware
Abstraction
Memory Drivers Communication Drivers I/O Drivers
I/O Hardware Abstraction
系统服务
?提供一些功能以供别的模块调用,如诊断事件管理(DEM), 诊断错误跟踪(DET), 操作系统(OS)
?OS 是与MCU 相关的系统服务,需要针对于每个MCU 优化?其余模块可以是应用或硬件相关的(e.g., ECU state manager)
C o m m u n i c a t i o n M a n a g
e r
E C U S t a t e M a n a g e r
F u n c t i o n I n h i b i t i o n M a n a g e r
W a t c h d o g M a n a g e r
D i a g n o s t i c
E v e n t M a n a g e r
D i a g n o s t i c
E r r o r T r a c e r
O p e r a t i n g S y s t e m
CRC Library
TM Freescale?and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. ?Freescale Semiconductor, Inc. 2007.18AUTOSAR Release 2.1
?基础软件模块:
46 modules ?基础软件文档:
3609 pages ?其他文档:
1957 pages
?辅助文档以上虽然不是一个很好的度量方法,但足以看出AUTOSAR 基础软件的复杂性。
Q:
全部的AUTOSAR 基础软件模块是否是每个MCU 必需的?A:不是的。请看下面的例子。
TM Freescale?and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. ?Freescale Semiconductor, Inc. 2007.19例子: S12XEP100 AUTOSAR 内存软件栈
Memory Drivers Com
Drivers
Memory Abstraction Interface μC
F L A S H V i r t u a l N V R A M I n t e r n a l
F l a s h D r i v e r
E E P R O M D r i v e r S P I D r i v e r S P I External
EEPROM
Driver EEPROM
Abstraction
Flash EEPROM Emulation External Flash Driver ?智能的MCU 外设将大大简化BSW 内存软
件栈。
AUTOSAR 操作系统
TM

