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.Nov 28–29, 2007
Andreas Both, 张恩勤
汽车电子软件的趋势-AUTOSAR 如何改变您使用飞思卡尔控制器的方式
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.1摘要
汽车电子软件标准AUTOSAR 规范了崭新的汽车应用领域软件的体系
结构.
沿着2006年FTF 讲座的关于AUTOSAR 基本知识介绍,本次将着重介
绍分层架构,以及MCU-相关和MCU-无关的软件的划分.
我们将展示在遵守AUTOSAR 设计方法下,使用飞思卡尔产品将有怎样
的变化
.
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.2讲座安排
?AUTOSAR 定义的基础软件?
分层结构?
MCU-相关的基础软件模块?MCU-无关的基础软件模块?AUTOSAR 操作系统探讨?AUTOSAR 配置方法探讨?针对飞思卡尔控制器的AUTOSAR 软件
AUTOSAR 基础软件
TM
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.
4
Actuator Software Component Application Software Component Sensor Software Component Application Software Component Interface
Microcontroller Abstraction
AUTOSAR Software Component
ECU Firmware
Standard Software
Services ECU Abstraction Complex Device Drivers
Communication Operating System
Standardized Inteface
AUTOSAR 体系结构
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.5Microcontroller
AUTOSAR BSW 结构—基础层
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.
6
Microcontroller
AUTOSAR BSW 体系结构—细化分层
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.
7
微控制器驱动
?内部外设的驱动(e.g., watchdog, 通用时钟)?直接μC 可存取的功能(e.g., Core 测试)
Microcontroller Hardware
A D C
D I O
T i m e r
P W M
L I N / S C I
C A N
S P I
E E P R O M
F l a s h
W D T
G P T
Microcontroller (MCU)
Drivers
W a t c h d o g D r i v e r
M C U D r i v e r
G P T D r i v e r
M C U P o w e r & C l o c k U n i t
微控制器抽象层
P O R T S
F l e x R a y ?
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.
8
Microcontroller Hardware
A D C
D I O
T i m e r
P W M
L I N / S C I
C A N
S P I
E E P R O M
F l a s h
W D T
G P T
Microcontroller Drivers Memory Drivers
R A M T e s t
E m b e d d e d E E P R O M D r i v e r
E m b e d d e d
F l a s h D r i v e r
W a t c h d o g D r i v e r
M C U D r i v e r
G P T D r i v e r
M C U P o w e r & C l o c k U n i t
微控制器抽象层
P O R T S
F l e x R a y ?
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.
9
通信驱动
?ECU 板级上的通信驱动: SPI, I2C
?车载通信驱动: LIN, CAN, FlexRay?网络
Microcontroller Hardware
A D C
D I O
T i m e r
P W M
L I N / S C I
C A N
S P I
E E P R O M
F l a s h
W D T
G P T
Microcontroller Drivers Communication Drivers
Memory Drivers R A M T e s t
C A N
D r i v e r
E m b e d d e d E E P R O M D r i v e r
E m b e d d e d
F l a s h D r i v e r
W a t c h d o g D r i v e r
L I N D r i v e r
M C U D r i v e r
F l e x R a y ?D r i v e r
G P T D r i v e r
S P I D r i v e r
M C U P o w e r & C l o c k U n i t
微控制器抽象层
P O R T S
F l e x R a y
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.
10
I/O 驱动
?模拟和数字I/O 驱动: e.g., 模数转换器(ADC), 脉宽调制(PWM), 数字输入输出(DIO)
Microcontroller Hardware
A D C
D I O
T i m e r
I/O Drivers
P O R T D r i v e r
A D C D r i v e r
D I O D r i v e r
P W M D r i v e r
I C U D r i v e r
P W M
L I N / S C I
C A N
S P I
E E P R O M
F L A S H
W D T
G P T
Microcontroller Drivers Communication Drivers Memory Drivers R A M T e s t
C A N
D r i v e r
E m b e d d e d E E P R O M D r i v e r
E m b e d d e d
F l a s h D r i v e r
W a t c h d o g D r i v e r
L I N D r i v e r
M C U D r i v e r
F l e x R a y D r i v e r
G P T D r i v e r
S P I D r i v e r
M C U P o w e r & C l o c k U n i t
微控制器抽象层
P O R T S
F l e x R a y ?
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.
11
微控制器抽象层的驱动
?直接与微控制器硬件接口(核和外设)?包括以下软件模块:
?微控制器驱动?内存驱动?通信驱动?I/O 驱动
Microcontroller Hardware
A D C
D I O
T i m e r
I/O Drivers
P O R T D r i v e r
A D C D r i v e r
D I O D r i v e r
P W M D r i v e r
I C U D r i v e r
P W M
L I N / S C I
C A N
S P I
E E P R O M
F l a s h
W D T
G P T
Microcontroller Drivers Communication Drivers Memory Drivers R A M T e s t
C A N
D r i v e r
I n t e r n a l E E P R O M D r i v e r
I n t e r n a l F l a s h D r i v e r
W a t c h d o g D r i v e r
L I N D r i v e r
M C U D r i v e r
F l e x R a y ?D r i v e r
G P T D r i v e r
S P I D r i v e r
M C U P o w e r & C l o c k U n i t
微控制器抽象层
P O R T S
F l e x R a y
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.
12
复杂驱动
Microcontroller
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 )
Component
复杂驱动
?通过采用特定中断或者复杂的外设(如eTPU )的微控制器直接访问,实施复杂的传感器检测和执行单元控制?例子:
?喷油控制
?电子阀门控制?递增式位置检测
E l e c t r i c V a l v e C o n t r o l
I n j e c t i o n C o n t r o l
I n c r e m e n t a l P o s i t i o n D e t e c t i o n
C o m p l e x
D e v i c e D r i v e r X Y
e T P U
    
	

