Future Advances in Body Electronics - Freescale Semiconductor
Future Advances in Body Electronics - Freescale Semiconductor
Future Advances in Body Electronics - Freescale Semiconductor
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Automotive<br />
<strong>Future</strong> <strong>Advances</strong> <strong>in</strong><br />
<strong>Body</strong> <strong>Electronics</strong><br />
AMPG <strong>Body</strong> <strong>Electronics</strong> Systems<br />
Eng<strong>in</strong>eer<strong>in</strong>g Team<br />
freescale.com
Table of Contents<br />
1. Introduction<br />
2<br />
Automotive <strong>Future</strong> <strong>Advances</strong> <strong>in</strong> <strong>Body</strong> <strong>Electronics</strong><br />
1 Introduction ................................................................................................................. 2<br />
2 Network<strong>in</strong>g .................................................................................................................. 3<br />
3 Hyper-Integration ........................................................................................................ 8<br />
4 Power .......................................................................................................................... 10<br />
5 Functional Safety ........................................................................................................ 14<br />
6 Security ........................................................................................................................ 15<br />
Conclusions .................................................................................................................... 17<br />
Drivers today are look<strong>in</strong>g for new levels of comfort, safety, efficiency and consumer<br />
features <strong>in</strong> their vehicles. These requirements <strong>in</strong> the automotive world mirror those<br />
of society <strong>in</strong> general, with the “connected world” and mach<strong>in</strong>e-to-mach<strong>in</strong>e (M2M)<br />
communications be<strong>in</strong>g the current buzz.<br />
In newer vehicles, there are multiple cameras<br />
(lane departure warn<strong>in</strong>g, automatic cruise<br />
control, etc.) and multiple th<strong>in</strong>-film transistor<br />
(TFT) screens for satellite navigation,<br />
reverse camera, cluster and more. Along<br />
with <strong>in</strong>creased comput<strong>in</strong>g performance<br />
and embedded memory capacity, these<br />
new features are driv<strong>in</strong>g the need for high<br />
bandwidth <strong>in</strong> the vehicle network, and hence<br />
the use of Ethernet connectivity. In addition<br />
to these high bandwidth connections, the<br />
vehicle is see<strong>in</strong>g a proliferation of sensors,<br />
actuators and motors <strong>in</strong> control applications.<br />
The sensors measure gases (COx, NOx,<br />
etc.), various temperatures, vibration, wheel<br />
speed, torque, yaw and other parameters to<br />
help improve efficiency and safety. Actuators,<br />
<strong>in</strong>clud<strong>in</strong>g relays and solenoids, as well as<br />
motors controlled by MCUs, drive pumps,<br />
fans, heat<strong>in</strong>g ventilation and air control (HVAC),<br />
w<strong>in</strong>dow lifts, the sunroof and more. This extra<br />
functionality <strong>in</strong>creases power consumption<br />
through two routes: one, based on the direct<br />
relationship of weight of added hardware to<br />
lower fuel economy, and two, the need for<br />
more comput<strong>in</strong>g performance, embedded<br />
memory capacity and higher bandwidth<br />
connectivity, each consum<strong>in</strong>g additional power.<br />
Despite a push to <strong>in</strong>tegrate major comput<strong>in</strong>g<br />
resources <strong>in</strong>to a small number of central<br />
doma<strong>in</strong> controllers, the explosion of low data<br />
rate small sensors and actuators is result<strong>in</strong>g<br />
<strong>in</strong> many new Electronic Control Units (ECUs).<br />
In figure 1, Strategy Analytics’ data show the<br />
projection of the grow<strong>in</strong>g number of ECUs <strong>in</strong><br />
vehicles for each segment. While the average<br />
vehicle today has approximately 25 ECUs,<br />
some high-end models are already over 100.<br />
The comb<strong>in</strong>ed results of these trends is a larger<br />
<strong>in</strong>-vehicle network with the wir<strong>in</strong>g loom commonly<br />
be<strong>in</strong>g the second heaviest component <strong>in</strong> the<br />
vehicle (beh<strong>in</strong>d the eng<strong>in</strong>e), hav<strong>in</strong>g over 6 km of<br />
copper wire and weigh<strong>in</strong>g over 70 kg.<br />
Coupled to the demand for greater comput<strong>in</strong>g<br />
and network<strong>in</strong>g performance, there is a major<br />
push for <strong>in</strong>creased safety with<strong>in</strong> the body<br />
network to cope with the grow<strong>in</strong>g complexity<br />
of electronics and the critical nature of the<br />
functions they enable. In addition, as wireless<br />
communication to/from the vehicle becomes<br />
more prevalent, there is an ever-greater need<br />
for security measures with<strong>in</strong> automotive MCUs<br />
to prevent unauthorized access to the vehicle<br />
network for the occupants’ welfare and to<br />
safeguard the <strong>in</strong>tellectual property it conta<strong>in</strong>s.
2. Network<strong>in</strong>g<br />
Modern vehicles have a large number of ECUs<br />
that deliver many functions. Those functions<br />
may be distributed among several ECUs with<br />
the majority be<strong>in</strong>g networked nodes that are<br />
connected to one or more system busses.<br />
These ECUs control a range of functions,<br />
such as light<strong>in</strong>g, air condition<strong>in</strong>g, seats and<br />
the eng<strong>in</strong>e or transmission. The various bus<br />
systems that connect them such as controller<br />
area network (CAN), local <strong>in</strong>terconnect<br />
Average ECUs per Car<br />
freescale.com<br />
<strong>Future</strong> <strong>Advances</strong> <strong>in</strong> <strong>Body</strong> <strong>Electronics</strong><br />
network (LIN) and FlexRay form a distributed<br />
network with<strong>in</strong> the vehicle.<br />
In the future, vehicle network architectures will<br />
consist of highly <strong>in</strong>tegrated doma<strong>in</strong> controllers,<br />
which will be <strong>in</strong>terconnected via higher-speed<br />
bus systems. The <strong>in</strong>dustry trend <strong>in</strong>dicates that<br />
Ethernet will be the protocol of choice form<strong>in</strong>g<br />
the ”backbone” of the doma<strong>in</strong> network and<br />
replac<strong>in</strong>g CAN, however, there are some<br />
<strong>in</strong>stances of FlexRay. sub-busses with CAN,<br />
FlexRay and LIN will provide connectivity<br />
Figure 1: The Number of ECUs is Increas<strong>in</strong>g <strong>in</strong> All Car Segments<br />
60.0<br />
50.0<br />
40.0<br />
30.0<br />
20.0<br />
10.0<br />
0.0<br />
Source: Strategy Analytics<br />
2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018<br />
M<strong>in</strong>i Small Medium Large Executive Luxury Coupe<br />
Figure 2: Vehicle Networks Arranged by Application Doma<strong>in</strong>s<br />
Powertra<strong>in</strong><br />
Gateway<br />
CAN/<br />
FlexRay<br />
Transmission<br />
Management<br />
Eng<strong>in</strong>e<br />
Management<br />
Battery<br />
Monitor<strong>in</strong>g<br />
Alternator<br />
Regulator<br />
Ethernet Backbone<br />
<strong>Body</strong> and Comfort<br />
Gateway<br />
CAN/<br />
LIN<br />
W<strong>in</strong>dow<br />
Lift<br />
HVAC<br />
and Comfort<br />
Interior and<br />
Exterior Light<strong>in</strong>g<br />
Door and<br />
Seat Modules<br />
Diagnostics<br />
Port<br />
Chassis<br />
Gateway<br />
CAN/LIN/<br />
FlexRay<br />
Steer by<br />
Wire<br />
Brake by<br />
Wire<br />
Power<br />
Steer<strong>in</strong>g<br />
Tire Pressure<br />
Monitor<strong>in</strong>g<br />
Infota<strong>in</strong>ment<br />
Gateway<br />
Ethernet/<br />
MOST/CAN<br />
Head<br />
Unit<br />
Head Up<br />
Display<br />
Navigation<br />
Instrument<br />
Cluster<br />
Automotive<br />
to <strong>in</strong>telligent nodes with<strong>in</strong> a vehicle subdoma<strong>in</strong>.<br />
Powerful doma<strong>in</strong> controllers will be<br />
required to support this highly <strong>in</strong>terconnected<br />
architecture.<br />
Figure 2 illustrates an example vehicle network<br />
partitioned <strong>in</strong>to separate application doma<strong>in</strong>s<br />
with associated doma<strong>in</strong> controllers. These<br />
doma<strong>in</strong> controllers will require significant<br />
amounts of process<strong>in</strong>g power coupled with<br />
real-time performance and a plethora of<br />
communications peripherals.<br />
The <strong>Freescale</strong> Qorivva MPC5748G family<br />
<strong>in</strong>troduces a highly flexible MCU suitable for<br />
operation as an advanced centralized gateway<br />
controller, a high-end body doma<strong>in</strong> controller<br />
or elements of both. The vast array of<br />
communications <strong>in</strong>terfaces, coupled with highperformance<br />
levels and low power capabilities<br />
make it ideally suited for these operations.<br />
The MPC5748G MCU uses e200 cores<br />
based on Power Architecture ® technology<br />
developed for automotive gateway and highend,<br />
centralized body controller module<br />
applications. The device conta<strong>in</strong>s two 160<br />
MHz e200z4 cores and an 80 MHz e200z2<br />
core to offer a flexible power-performance<br />
solution. The MCU’s salient features <strong>in</strong>clude 6<br />
MB of embedded non-volatile flash memory<br />
and 768 KB of embedded SRAM, <strong>in</strong> addition<br />
to support for revolutionary new low power<br />
modes. The feature set <strong>in</strong>cludes an e200z0based<br />
hardware security module (HSM)<br />
exceed<strong>in</strong>g the requirements of the secure<br />
hardware extension (SHE) of the Hersteller<br />
Initiative Software (HIS) standard, and a<br />
selection of communications, analog and<br />
timer modules. The device is a SafeAssure<br />
solution (refer to Section 5), has been<br />
developed <strong>in</strong> accordance with the Automotive<br />
Functional Safety Standard (ISO 26262) and is<br />
targeted at specific safety functions of at least<br />
an Automotive Safety Integrity Level<br />
(ASIL)-B rat<strong>in</strong>g.<br />
3
Table 1 illustrates the level of communications<br />
<strong>in</strong>terfaces supported by the MPC5748G MCU,<br />
further illustrat<strong>in</strong>g its suitability as a doma<strong>in</strong><br />
controller <strong>in</strong> addition to its applicability <strong>in</strong> highend<br />
vehicle body controller applications.<br />
Due to its multicore design and associated<br />
feature set, the MPC5748G MCU is particularly<br />
well suited to support multiple applications<br />
with<strong>in</strong> a s<strong>in</strong>gle architecture. A high degree<br />
of separation and isolation between different<br />
cores and their associated resources permits<br />
isolation at the application level. This means<br />
that it is possible to dedicate some resources<br />
of the MCU, for example a core, subset of<br />
the periphery and memory, to one application<br />
while reta<strong>in</strong><strong>in</strong>g another core with its own<br />
subset of the periphery and memory for a<br />
completely separate application. These MCU<br />
features are essential at the vehicle level to<br />
break the 1:1 correspondence of a vehicle<br />
feature to an ECU. To make vehicle options<br />
cost effective and manageable <strong>in</strong> a complex<br />
manufactur<strong>in</strong>g environment, vehicle features<br />
need to be enabled by software on a common<br />
hardware platform. Another side benefit of this<br />
application isolation is the protection it offers<br />
the software <strong>in</strong>tegrator to collate software from<br />
many third-party developers, know<strong>in</strong>g that they<br />
will run <strong>in</strong>dependently and autonomously.<br />
The diagram of the MPC5748G architecture <strong>in</strong><br />
figure 3 shows some of the features that enable<br />
such a high degree of application isolation.<br />
To demonstrate these features and the<br />
capabilities of the MPC5748G MCU <strong>in</strong> a<br />
practical real-world application, Figure 4 (next<br />
page) shows a proposed use case. In this<br />
example, the device controls two <strong>in</strong>dependent<br />
doma<strong>in</strong>s:<br />
• A gateway doma<strong>in</strong><br />
4<br />
Handles classic automotive open<br />
system architecture (AUTOSAR)<br />
automotive gateway functionality.<br />
Has a dedicated CPU and associated<br />
memory and peripheral resources.<br />
Runs almost <strong>in</strong>dependently of IP<br />
doma<strong>in</strong>, but is capable of safely and<br />
securely exchang<strong>in</strong>g data through<br />
shared memory and <strong>in</strong>terrupt<br />
messag<strong>in</strong>g schemes<br />
Automotive <strong>Future</strong> <strong>Advances</strong> <strong>in</strong> <strong>Body</strong> <strong>Electronics</strong><br />
Table 1: Communications Interfaces Supported by the MPC5748G MCU<br />
Communications Bit Rate Description<br />
FlexCAN CAN2.0 • CAN2.0B compliance<br />
1 MB/s • Mailbox support<br />
CAN FD • FIFO support<br />
8 MB/s • Active and passive CAN_FD compliance<br />
• Low-power pretended network<strong>in</strong>g filter<strong>in</strong>g on one node<br />
LINFlex 20kbps • LIN protocol version 1.3, 2.0, and 2.1<br />
• 1x master/slave, 17x master support<strong>in</strong>g LIN<br />
Ethernet 100 MB/s • Support<strong>in</strong>g (RMII*, MII** + 1588)<br />
FlexRay 10 MB/s • Support<strong>in</strong>g FlexRay 2.1<br />
• 128 MB/s<br />
SDIO (full speed)<br />
25 MHz • Secure digital <strong>in</strong>put output<br />
SDIO (high speed)<br />
40 MHz<br />
USB 480 MB/s • 1 x on-the-go<br />
• 1 x host controller<br />
• ULPI <strong>in</strong>terface<br />
MediaLB 2048 fs ~98 MB/s • 3-p<strong>in</strong> and 6-p<strong>in</strong> <strong>in</strong>terface<br />
• Speed grade up to 2048 fs<br />
SPI 40 MHz • Serial peripheral <strong>in</strong>terface<br />
• Up to four with features for SPI controlled LED drivers<br />
*RMII = reduced media <strong>in</strong>dependent <strong>in</strong>terface<br />
**MII = media <strong>in</strong>dependent <strong>in</strong>terface<br />
Figure 3: Application Isolation and Protection Mechanisms Implemented on<br />
the MPC5748G MCU<br />
Independent<br />
Watchddog per Core<br />
Independent OS<br />
Timer per Core<br />
Process ID/<br />
Core<br />
Privileges Levels/<br />
Core<br />
Individual Isolated<br />
RAM Arrays<br />
Dedicated Flash<br />
L<strong>in</strong>e Buffers<br />
Individual Flash<br />
Block Lock<strong>in</strong>g<br />
• An IP doma<strong>in</strong><br />
Cores<br />
SWT<br />
e200z4<br />
STM<br />
e200z4<br />
e200z2<br />
SRAM0<br />
NVM Port<br />
and<br />
Buffers 0<br />
SWT<br />
STM<br />
SWT<br />
STM<br />
Connects to the Internet and is<br />
<strong>in</strong>tended for support<strong>in</strong>g applications<br />
such as distribut<strong>in</strong>g <strong>in</strong>-field flash<br />
downloads with<strong>in</strong> the vehicle network.<br />
Uses a dedicated e200z4 core,<br />
dedicated system RAM, and a<br />
portion of the flash array and runs its<br />
own operat<strong>in</strong>g system (OS) with its<br />
own OS timers, watchdog and<br />
system resources.<br />
Memories Peripherals<br />
SRAM1 SRAM2<br />
NVM Port<br />
and<br />
Buffers 1<br />
NVM Array<br />
System Comms<br />
HSM<br />
DMA<br />
Crossbars<br />
System Memory Protection Unit<br />
NVM Port<br />
and<br />
Buffers 2<br />
USB OTG USB SPH<br />
ENET MLB<br />
SDHC FlexRay<br />
Bus<br />
Bridge 0<br />
Bus<br />
Bridge 1<br />
Register Protect<br />
1 x INTC<br />
10 x SPI<br />
18 x LIN<br />
3 x I2C 3 x Comparator<br />
2 x ADC<br />
4 x I2C 3 x eMIOS<br />
8 x CAN<br />
Master ID<br />
Protection<br />
Lockable Memory<br />
Protection Regions<br />
Address Range<br />
Privileges<br />
Peripheral Master<br />
ID Protection<br />
Register<br />
Protection<br />
Vehicle Reflash<strong>in</strong>g<br />
Flash<strong>in</strong>g and reflash<strong>in</strong>g of the vehicle’s software<br />
content is an evolv<strong>in</strong>g area of advanced<br />
automotive electronics. While traditionally<br />
the vehicle is flashed under tightly controlled<br />
factory conditions and potentially updated<br />
dur<strong>in</strong>g rout<strong>in</strong>e vehicle servic<strong>in</strong>g, this concept<br />
is be<strong>in</strong>g expanded to <strong>in</strong>clude more userconvenient,<br />
over-the-air updates to vehicles<br />
<strong>in</strong> the field. As shown <strong>in</strong> figure 5 (next page),<br />
the average vehicle has approx 10 MB of flash<br />
memory, however, many high-end vehicles will<br />
have at least 10 times this number.
To put the scale of this challenge <strong>in</strong><br />
perspective: modern vehicles now have <strong>in</strong><br />
excess of 50 MB of embedded flash memory<br />
distributed across the ECUs (exclud<strong>in</strong>g the<br />
<strong>in</strong>fota<strong>in</strong>ment/multimedia segments). Orig<strong>in</strong>al<br />
equipment manufacturers (OEMs) require the<br />
ability to safely and securely update some or<br />
all of this content <strong>in</strong> a reliable and convenient<br />
manner with m<strong>in</strong>imal impact to the driver. A<br />
number of requirements and challenges need<br />
to be addressed for reflash<strong>in</strong>g <strong>in</strong> the field:<br />
• Safety<br />
• Security<br />
New software cannot cause any<br />
system malfunction<br />
The ability to roll back to previous<br />
software version is desirable<br />
Updates cannot be <strong>in</strong>tercepted and<br />
non-approved updaters do not have<br />
access<br />
Integrity of downloaded software must<br />
be verified<br />
• Transparency<br />
Updates <strong>in</strong> the field must have m<strong>in</strong>imal<br />
<strong>in</strong>terference with driver’s <strong>in</strong>tended use<br />
of the car<br />
Vehicle manufacturers also need the ability to<br />
download a new flash image while driv<strong>in</strong>g and<br />
store it securely for later programm<strong>in</strong>g when<br />
the car or specific ECU is <strong>in</strong> a safe operat<strong>in</strong>g/<br />
non-operat<strong>in</strong>g mode. The MPC5748G MCU is<br />
ideally suited to such applications. It conta<strong>in</strong>s<br />
many features that make it ideal for support<strong>in</strong>g<br />
the range of vehicle flash<strong>in</strong>g and reflash<strong>in</strong>g<br />
applications, be<strong>in</strong>g able to receive and store<br />
the image, then send the image to the relevant<br />
node(s). Table 2 (next page) lists some of these<br />
features and their associated benefits.<br />
Advanced Network<strong>in</strong>g<br />
New applications, such as camera-based<br />
park<strong>in</strong>g, <strong>in</strong>-car TV and driver assistance, result<br />
<strong>in</strong> larger program and data memories. For<br />
example, one of the latest high-end car series<br />
has more than 1 GB of embedded memory<br />
distributed among the 100+ ECUs, while<br />
the previous model had less than 100 MB of<br />
memory. Due to the <strong>in</strong>creas<strong>in</strong>g number of ECUs<br />
per car and embedded memory, there is an<br />
<strong>in</strong>creas<strong>in</strong>g need for higher network bandwidth.<br />
freescale.com<br />
<strong>Future</strong> <strong>Advances</strong> <strong>in</strong> <strong>Body</strong> <strong>Electronics</strong><br />
Ethernet<br />
With the projected <strong>in</strong>crease <strong>in</strong> data volume,<br />
<strong>in</strong>crease <strong>in</strong> embedded memory and move<br />
towards larger doma<strong>in</strong> controller architectures,<br />
there is a need for a new high-speed <strong>in</strong>terface<br />
for <strong>in</strong>terconnectivity. Ethernet is an obvious<br />
choice for this high-speed network s<strong>in</strong>ce it is<br />
used extensively <strong>in</strong> non-vehicle applications<br />
and already used <strong>in</strong> production vehicles.<br />
Initially, Ethernet was <strong>in</strong>troduced <strong>in</strong>to the<br />
car as a high-performance data <strong>in</strong>terface for<br />
diagnostics and software download<strong>in</strong>g by<br />
some OEMs to reduce programm<strong>in</strong>g times<br />
<strong>in</strong> production and at service centers. This<br />
<strong>in</strong>itiative has propagated to other OEMs and is<br />
expected to lead to an ISO/SAE standard that<br />
stipulates that Ethernet be used as part of the<br />
on-board diagnostic (OBD) <strong>in</strong>terface, replac<strong>in</strong>g<br />
Automotive<br />
Figure 4: Multi-Doma<strong>in</strong> Operation with the MPC5748G MCU<br />
Automotive<br />
Gateway<br />
HSM<br />
Timer<br />
LIN<br />
CAN<br />
Ethernet<br />
FlexRay<br />
e200z4 Core<br />
@ 160 MHz<br />
AUTOSAR Doma<strong>in</strong><br />
Automotive <strong>Body</strong><br />
Control<br />
PWM<br />
ADC<br />
CTU<br />
SPI<br />
e200z2 Core<br />
@ 80 MHz<br />
IP Router<br />
Doma<strong>in</strong><br />
USB<br />
I 2 S<br />
SDHC<br />
e200z4 Core<br />
@ 160 MHz<br />
ULPI<br />
Digital AudioTelephony<br />
for Normal Telephony<br />
Figure 5: Evolution of Embedded Flash Content <strong>in</strong> the Vehicle<br />
MCU Flash per Car (MB)<br />
14<br />
12<br />
10<br />
8<br />
6<br />
4<br />
2<br />
0<br />
2005<br />
MCU Flash per Car (MB)<br />
(left axis)<br />
Avg Flash per MCU (KB)<br />
(right axis)<br />
Source: Strategy Analytics and <strong>Freescale</strong> analysis<br />
5X Increase<br />
Ext.<br />
USB<br />
PHY<br />
Analog Audio<br />
for “E-Call”<br />
Function<br />
3G<br />
Modem<br />
Wi-Fi<br />
Ext. Mem<br />
0<br />
2006 2007 2008 2009 2010 2011 2012 2013 2014 2015<br />
700<br />
600<br />
500<br />
400<br />
300<br />
200<br />
100<br />
Average Flash per MCU (KB)<br />
CAN, which was the previous standard. In<br />
addition, Ethernet is currently been prototyped<br />
as the network for surround camera systems.<br />
In this system, Ethernet will be used <strong>in</strong> normal<br />
runtime applications provid<strong>in</strong>g a significant<br />
upgrade to its use <strong>in</strong> diagnostics. The catalyst<br />
for this change was the reduction <strong>in</strong> the bill of<br />
materials (BOM) cost due to advances <strong>in</strong> the<br />
physical <strong>in</strong>terface that allow electromagnetic<br />
<strong>in</strong>terference (EMI) legislation to be met even<br />
with very low-cost unshielded twisted s<strong>in</strong>gle<br />
pair (UTSP) cabl<strong>in</strong>g. The BOM cost sav<strong>in</strong>gs<br />
is achieved by the use of <strong>in</strong>expensive UTSP<br />
cabl<strong>in</strong>g. The reduced cost and growth of<br />
Ethernet usage at one vehicle manufacturer is<br />
shown <strong>in</strong> figure 6 (next page).<br />
5
Ethernet has further advantages that make it<br />
the ideal choice for the backbone network.<br />
The key areas are:<br />
• Increased bandwidth options (scalability)<br />
• Possible to stay below electromagnetic<br />
compatibility (EMC) emissions limit with lowcost<br />
UTSP<br />
• Ethernet is a well-known and mature<br />
network structure<br />
• Many developers have Ethernet experience<br />
• Simple <strong>in</strong>tegration of consumer devices<br />
• Many suppliers offer hardware<br />
and software<br />
• Availability of low-cost and freeware tools<br />
Increased bandwidth options are one of the<br />
more significant advantages, s<strong>in</strong>ce OEMs<br />
need scalable vehicle architecture due to the<br />
projected future <strong>in</strong>creases <strong>in</strong> data volume.<br />
Ethernet is very strong <strong>in</strong> this area with<br />
1 GB/s and higher capabilities. In fact, as<br />
shown <strong>in</strong> figure 7 (next page), automotive<br />
network<strong>in</strong>g lags consumer electronics by<br />
several years s<strong>in</strong>ce 1 GB/s and 10 GB/s<br />
networks are common <strong>in</strong> non-vehicle networks.<br />
Another major strength of Ethernet is its<br />
maturity <strong>in</strong> the consumer electronics doma<strong>in</strong>,<br />
lead<strong>in</strong>g to a large pool of developers,<br />
knowledge, suppliers, tools and software<br />
available that automotive teams can access.<br />
The advantages highlighted above, and<br />
consider<strong>in</strong>g that Ethernet is already used <strong>in</strong><br />
volume vehicle production, suggest that further<br />
proliferation will occur and Ethernet will be the<br />
choice for the high-speed backbone between<br />
doma<strong>in</strong> controllers.<br />
The MPC5748G MCU and its derivatives<br />
are very well positioned to meet the future<br />
needs of Ethernet. These MCUs support the<br />
ENET Ethernet complex and provide the large<br />
amount of embedded memory required for<br />
Ethernet use <strong>in</strong> body/gateway applications.<br />
The ENET complex used on the MPC5748G<br />
MCU supports 100 Mbps, but has an exist<strong>in</strong>g<br />
upgrade path to support Gigabit Ethernet. The<br />
Gigabit version is fully software compatible and<br />
is <strong>in</strong>tegrated on other <strong>Freescale</strong> products.<br />
Additionally, the ENET complex has been<br />
updated to fully support audio video bridg<strong>in</strong>g<br />
6<br />
Automotive <strong>Future</strong> <strong>Advances</strong> <strong>in</strong> <strong>Body</strong> <strong>Electronics</strong><br />
Table 2: MPC5748G MCU Features Applicable to Vehicle Reflash<strong>in</strong>g Applications<br />
Feature Benefit<br />
Up to 6 MB flash • Enough storage to ma<strong>in</strong>ta<strong>in</strong> the local application (i.e. BCM or gateway functionality)<br />
and also an additional image for another node <strong>in</strong> the vehicle.<br />
Multiple flash partitions • Ability to program an area of flash while execut<strong>in</strong>g from another area. Permits<br />
m<strong>in</strong>imal <strong>in</strong>trusion of application while stor<strong>in</strong>g flash downloads.<br />
Multicore and<br />
<strong>in</strong>dependent resources<br />
Figure 6: Use of Ethernet at an Early Ethernet Adopt<strong>in</strong>g OEM<br />
Functionality<br />
Source: <strong>Freescale</strong><br />
Diagnostics<br />
and Flash<br />
Update<br />
Cost of Ethernet<br />
Data L<strong>in</strong>k for<br />
Surround<br />
Camera<br />
(AVB) standards with multiqueue support and<br />
traffic shap<strong>in</strong>g to meet AVB quality of service<br />
(QoS) requirements. The multiqueue support<br />
for AVB can separate different traffic types <strong>in</strong><br />
hardware, which makes the software driver<br />
more efficient offload<strong>in</strong>g the central process<strong>in</strong>g<br />
unit (CPU). The multiqueues and traffic shap<strong>in</strong>g<br />
also allow separation of application tasks and<br />
guarantee that higher priority data is always<br />
• Ability to manage separate applications responsible for flash download and storage<br />
with m<strong>in</strong>imal <strong>in</strong>terference of the ma<strong>in</strong> application.<br />
Interfaces • High-speed CAN_FD supported for rapid distribution of flash contents on vehicle<br />
network.<br />
• SDIO and USB for connection to network IP (Wi-Fi ® , 3G etc).<br />
• Ethernet for diagnostic connections.<br />
• JTAG, UART for serial connection.<br />
Hardware flash<br />
remapp<strong>in</strong>g scheme<br />
• Ability to swap <strong>in</strong>ternal flash address mapp<strong>in</strong>g on the fly. Includes a mechanism<br />
to apply remapp<strong>in</strong>g upon subsequent resets yet still permits simple rollback<br />
functionality.<br />
Low power • Capable of distribut<strong>in</strong>g an image over the vehicle network <strong>in</strong> low-power “vehicle<br />
parked” modes. CAN and LIN nodes active <strong>in</strong> new low-power unit (LPU) modes.<br />
Fast program flash • Highly-efficient <strong>in</strong>itial factory programm<strong>in</strong>g and <strong>in</strong>-vehicle re-flash<strong>in</strong>g. Effective<br />
EEPROM emulation scheme.<br />
Security • HSM for validat<strong>in</strong>g <strong>in</strong>tegrity of downloads and ensu<strong>in</strong>g secure communication on<br />
the vehicle bus network.<br />
Censorship • Robust mechanism for secur<strong>in</strong>g the contents of the device NVM, avoid<strong>in</strong>g exposure<br />
of updates to hackers.<br />
Robust boot loader • Non-erasable NVM-based boot loader support<strong>in</strong>g serial downloads under factory<br />
conditions.<br />
Can FD • Fast download to vehicle and with<strong>in</strong> vehicle network over exist<strong>in</strong>g CAN bus<br />
<strong>in</strong>frastructure.<br />
Infota<strong>in</strong>ment<br />
Bus<br />
Data L<strong>in</strong>k<br />
for Backbone<br />
2008 2013 2015 2018<br />
Date<br />
transmitted. An example use case would be<br />
<strong>in</strong> a doma<strong>in</strong> controller that comb<strong>in</strong>es body<br />
and gateway functions. In pr<strong>in</strong>ciple, both can<br />
share a s<strong>in</strong>gle MAC by partition<strong>in</strong>g the tasks<br />
to the multiple queues. This helps ensure that<br />
the more important tasks (such as those from<br />
the gateway) always get sufficient network<br />
bandwidth. Figure 8 (next page) shows a block<br />
diagram of the multiqueue ENET complex.
freescale.com<br />
<strong>Future</strong> <strong>Advances</strong> <strong>in</strong> <strong>Body</strong> <strong>Electronics</strong><br />
Figure 7: The Bit Rate Lag of Automotive Networks Compared to Ethernet<br />
Data Rate<br />
100 GB/s<br />
10 GB/s<br />
1 GB/s<br />
100 MB/s<br />
10 MB/s<br />
1 MB/s<br />
CAN 2.0<br />
+<br />
1990<br />
Source: <strong>Freescale</strong><br />
+<br />
FlexRay 2.1<br />
+<br />
Ethernet Bit Rate<br />
Evolution<br />
+<br />
Eight Year Lag<br />
MOST25 MOST50<br />
+<br />
+ LIN<br />
+<br />
Ethernet 100 B<br />
+<br />
+ +<br />
MOST 150<br />
1995 2000 2005 2010 2015 2020<br />
+<br />
CANFD<br />
+<br />
Figure 8: Block Diagram of the Multiqueue ENET Complex<br />
System RAM<br />
Class_A<br />
Class_B<br />
Non AV<br />
Class_A<br />
Class_B<br />
Non AV<br />
BD<br />
BD<br />
BD<br />
BD<br />
BD<br />
BD<br />
BD<br />
BD<br />
Rx BD R<strong>in</strong>g<br />
BD<br />
BD<br />
Rx BD R<strong>in</strong>g<br />
BD<br />
Rx BD R<strong>in</strong>g<br />
BD<br />
Tx BD R<strong>in</strong>g<br />
BD<br />
Tx BD R<strong>in</strong>g<br />
BD<br />
BD<br />
BD<br />
BD<br />
BD<br />
Tx BD R<strong>in</strong>g<br />
Source: <strong>Freescale</strong><br />
BD<br />
BD<br />
BD<br />
BD<br />
BD<br />
BD<br />
S<br />
XBAR<br />
m m<br />
Rx Filter Select<br />
CI_A<br />
CI_B<br />
N_AV<br />
CI_A<br />
CI_B<br />
N_AV<br />
Tx Select (CBS)<br />
Multi Queue ENET<br />
RAM TCP Offload<br />
Eng<strong>in</strong>e (TOE)<br />
Receive<br />
FIFO<br />
RAM<br />
Transmit<br />
FIFO<br />
TCP/IP<br />
Performance<br />
Optimization<br />
TCP/IP<br />
Performance<br />
Optimization<br />
UDMA Configuration<br />
statistics<br />
CRC<br />
Check<br />
Standard Automotive Buses<br />
(different use cases)<br />
Date<br />
MAC<br />
Rx Control<br />
Tx Control<br />
CRC<br />
Generate<br />
Register Interface (AIPS Connection)<br />
Pause<br />
Frame<br />
Term<strong>in</strong>ate<br />
Pause<br />
Frame<br />
Generate<br />
MDIO<br />
master<br />
MII/RMII<br />
Receive<br />
<strong>in</strong>terface<br />
MII/RMII<br />
Receive<br />
<strong>in</strong>terface<br />
PHY<br />
Management<br />
<strong>in</strong>terface<br />
Figure 9: Structure of the CAN FD Frame (CAN FD Base and Extended Formats)<br />
S<br />
O F<br />
11-bit<br />
Base Identifier<br />
S<br />
O F<br />
S<br />
R<br />
R<br />
I<br />
D E<br />
Arbitration Field<br />
11-bit Identifier<br />
r<br />
1<br />
18-bit<br />
Identifier Extension<br />
Arbitration<br />
Phase<br />
I<br />
D E<br />
r<br />
1<br />
E<br />
D L<br />
E<br />
D L<br />
Control Field<br />
r<br />
0<br />
r<br />
0<br />
B<br />
R S<br />
B<br />
R S<br />
E<br />
S I<br />
Control Field<br />
E<br />
S I<br />
4-bit<br />
DLC<br />
4-bit<br />
DLC<br />
Data Field<br />
0–16 B<br />
20–64 B<br />
Data Field<br />
0–16 B<br />
20–64 B<br />
Data<br />
Phase<br />
CRC Field<br />
17b CRC<br />
1 1 1 7 3<br />
21b CRC<br />
CRC Field<br />
Ack EOF Int. Idle<br />
Ack EOF Int. Idle<br />
17b CRC<br />
1 1 1 7 3<br />
21b CRC<br />
Arbitration<br />
Phase<br />
Automotive<br />
CAN FD<br />
The larger amounts of embedded memory<br />
required <strong>in</strong> future MCUs will <strong>in</strong>crease the overall<br />
programm<strong>in</strong>g time of the vehicle, result<strong>in</strong>g<br />
<strong>in</strong> higher production and servic<strong>in</strong>g costs.<br />
Also, the more complicated ECUs need to<br />
transport more <strong>in</strong>formation between each<br />
other, which requires higher bandwidth on<br />
the exist<strong>in</strong>g networks <strong>in</strong> the car. In addition,<br />
to transition<strong>in</strong>g to high-speed data <strong>in</strong>terfaces,<br />
such as Ethernet, for diagnostic ports and<br />
<strong>in</strong>terconnection of doma<strong>in</strong> controllers (large<br />
ECUs), the <strong>in</strong>dustry also wants to <strong>in</strong>crease the<br />
throughput of the exist<strong>in</strong>g CAN2.0 networks,<br />
s<strong>in</strong>ce this evolutionary growth helps preserve<br />
current <strong>in</strong>vestments. This has resulted <strong>in</strong> the<br />
creation of CAN flexible data rate (FD) (CAN FD<br />
- ISO 11898-7) that allows the baud rate of the<br />
data portion of the CAN message to <strong>in</strong>crease<br />
up to 8 MB/s and the payload to <strong>in</strong>crease up<br />
to 64 bytes <strong>in</strong> order to <strong>in</strong>crease the throughput.<br />
Figure 9 shows the structure of the CAN FD<br />
standard and extended frame used to improve<br />
throughput.<br />
An example of the throughput <strong>in</strong>crease for<br />
CAN 2.0 versus CAN FD is shown <strong>in</strong> figure 10<br />
(next page). Vary<strong>in</strong>g data phase transmission<br />
rate (4 vs. 8 MB/s) and payload size (8- vs.<br />
64-byte) is also shown.<br />
This example shows that significant<br />
improvements (up to 6x) can be made by the<br />
deployment of CAN FD, particularly when<br />
larger payloads are needed. This can be<br />
utilized to decrease programm<strong>in</strong>g times and<br />
also transport more data between ECUs.<br />
The FlexCAN3 module used <strong>in</strong> the<br />
MPC5748G MCU family supports both<br />
CAN 2.0 and CAN FD. FlexCAN3 is a<br />
full CAN implementation with a flexible<br />
buffer<strong>in</strong>g arrangement. All mailboxes are<br />
able to support CAN 2.0 and CAN FD<br />
formats for both transmit and reception. The<br />
implementation is optimised to allow CAN 2.0,<br />
CAN FD and <strong>in</strong>terleaved CAN 2.0 and CAN<br />
FD, so the user can effectively configure each<br />
mailbox <strong>in</strong>dividually.<br />
7
This allows the full support of programm<strong>in</strong>g and<br />
functional use cases. Figure 11 shows a block<br />
diagram of the FlexCAN3 buffer arrangement.<br />
The buffer sizes are a mixture of 8, 16, 32 and<br />
64 bytes to accommodate the different CAN<br />
FD use cases. For example, it is anticipated<br />
that the majority of 64-byte payload frames will<br />
be used for program download.<br />
3. Hyper Integration<br />
With the cont<strong>in</strong>uous growth <strong>in</strong> the number<br />
of functions and the <strong>in</strong>creas<strong>in</strong>g complexity of<br />
the functions themselves, today’s automotive<br />
systems use architectures where a handful of<br />
central ECUs communicate to each other. On<br />
the peripheral side, the actuators and sensors<br />
are also becom<strong>in</strong>g <strong>in</strong>creas<strong>in</strong>gly powerful<br />
embedded MCUs, with communication<br />
<strong>in</strong>terfaces, voltage regulators and other<br />
application-specific components.<br />
One of the key enabl<strong>in</strong>g technologies for this<br />
architecture of distributed <strong>in</strong>telligent actuators<br />
and sensors is the high <strong>in</strong>tegration level of<br />
<strong>in</strong>tegrated circuits (ICs). This high <strong>in</strong>tegration<br />
is the first and most important step towards<br />
achiev<strong>in</strong>g an efficient and optimized system<br />
solution. Instead of the typical two or three ICs,<br />
only one IC is able to address the application<br />
needs. This br<strong>in</strong>gs various advantages, which<br />
are discussed later <strong>in</strong> this section (see The<br />
8<br />
Automotive <strong>Future</strong> <strong>Advances</strong> <strong>in</strong> <strong>Body</strong> <strong>Electronics</strong><br />
Value of Integration), but first of all it can reduce<br />
the required pr<strong>in</strong>ted circuit board (PCB) space<br />
by half, as shown <strong>in</strong> figure 12 (next page), by<br />
remov<strong>in</strong>g discrete analog components like<br />
voltage regulator, PHY and high-current drivers.<br />
<strong>Freescale</strong> LL18UHV technology comb<strong>in</strong>es highvoltage<br />
(40 V) analog, digital logic and nonvolatile<br />
memory through package or wafer-level<br />
<strong>in</strong>tegration, allow<strong>in</strong>g customers to realize these<br />
advantages. Implemented <strong>in</strong> the S12 MagniV<br />
mixed-signal product family, the system-<strong>in</strong>package<br />
(SiP) design provides a highly capable<br />
and cost-effective solution for many body<br />
electronics applications. When designed <strong>in</strong>to<br />
a vehicle network with the MPC5748G MCU<br />
high-end body doma<strong>in</strong> controller, even higher<br />
system-level advantages can be obta<strong>in</strong>ed.<br />
Network<strong>in</strong>g<br />
Intelligent and highly <strong>in</strong>tegrated actuator<br />
and sensor nodes communicate their<br />
<strong>in</strong>formation via their respective system<br />
network. An example of a highly <strong>in</strong>tegrated<br />
node is a light control switch module that<br />
transmits the driver’s desire to turn on the<br />
headlights to the actuat<strong>in</strong>g light<strong>in</strong>g ECU.<br />
Most body electronics applications use the<br />
LIN and/or CAN communication <strong>in</strong>terfaces.<br />
Application requirements such as latency<br />
and bandwidth, as well as cost, <strong>in</strong>fluence the<br />
selection of a specific <strong>in</strong>terface. S<strong>in</strong>ce the<br />
Figure 10: CAN Frame Type vs. Transmission Type (Where x/y Represents<br />
Data Rate <strong>in</strong> Arbitration/Data Phases of the CAN Frame)<br />
Tranmission Time (uS)<br />
180<br />
160<br />
140<br />
120<br />
100<br />
80<br />
60<br />
40<br />
20<br />
0<br />
Source: <strong>Freescale</strong><br />
CAN 2.0, 8 Bytes,<br />
1 MB/s<br />
CAN_FD, 8 Bytes,<br />
1/4 MB/s<br />
CAN_FD, 8 Bytes,<br />
1/8 MB/s<br />
CAN Message Type<br />
CAN_FD, 64 Bytes,<br />
1/4 MB/s<br />
CAN_FD, 64 Bytes,<br />
1/8 MB/s<br />
actual communication physical layer (PHY),<br />
mostly driven by electric and electromagnetic<br />
requirements (ESD, EMI, EMC) is not a<br />
negligible portion of the device area, normally<br />
either a LIN or a CAN PHY is <strong>in</strong>tegrated<br />
accord<strong>in</strong>g to application needs. The generalpurpose<br />
S12ZVL family of MCUs with an<br />
embedded LIN PHY and the S12ZVC family<br />
with on-chip CAN PHY address those needs.<br />
In addition to LIN and CAN protocols, other<br />
communication <strong>in</strong>terfaces for the powertra<strong>in</strong><br />
or chassis doma<strong>in</strong>, such as s<strong>in</strong>gle edge nibble<br />
transfer (SENT) or peripheral sensor <strong>in</strong>terface<br />
5 (PSI5), are ga<strong>in</strong><strong>in</strong>g <strong>in</strong>terest to further reduce<br />
network costs. For example, the use of PSI5<br />
<strong>in</strong>stead of LIN reduces the number of wires<br />
and connector p<strong>in</strong>s from three (LIN, VBAT,<br />
GND) down to only two (supply, GND). Even<br />
though PSI5 needs to modulate the data onto<br />
the supply l<strong>in</strong>e, the sav<strong>in</strong>gs on the harness and<br />
connector side may be sufficient to account for<br />
the higher requirements on the electronics side.<br />
In spite of the cont<strong>in</strong>ued development of<br />
lower cost protocols, the overall trend to LIN<br />
and CAN-based nodes has been observed<br />
for many years <strong>in</strong> automotive sensors and<br />
actuators, especially <strong>in</strong> body applications.<br />
Accord<strong>in</strong>g to Strategy Analytics, by 2018, the<br />
number of LIN nodes will exceed one billion<br />
and the number of CAN nodes will exceed<br />
Figure 11: FlexCAN3 FD<br />
Buffer Arrangement<br />
All Buffers can be<br />
used to transmit and<br />
receive CAN 2.0 and<br />
CAN FD frame formats<br />
8 Bytes<br />
Buffers<br />
16 Bytes<br />
Buffers<br />
32 Bytes<br />
Buffers<br />
64 Bytes<br />
Buffers
the two billion mark. The average number of<br />
nodes per vehicle will be around 10 LIN nodes<br />
and approximately 20 CAN nodes. With 17<br />
percent compound annual growth rate (CAGR),<br />
the expected market growth for LIN nodes is<br />
significantly higher than for CAN nodes with<br />
13 percent CAGR. This shows that simple<br />
functions are <strong>in</strong>creas<strong>in</strong>gly implemented <strong>in</strong> LIN<br />
nodes. Figure 13 shows the significance of<br />
this growth.<br />
Mechatronics—“Second Level<br />
Integration”<br />
Mechatronics is the comb<strong>in</strong>ation of multiple<br />
eng<strong>in</strong>eer<strong>in</strong>g discipl<strong>in</strong>es <strong>in</strong>clud<strong>in</strong>g mechanical,<br />
electrical and control eng<strong>in</strong>eer<strong>in</strong>g <strong>in</strong>to one<br />
system or product. The comb<strong>in</strong>ation of<br />
mechanics with electronics and software<br />
allows the design of very dedicated, optimized<br />
and therefore cost-effective systems <strong>in</strong>to<br />
very limited space, while at the same time<br />
<strong>in</strong>creas<strong>in</strong>g the functionality and flexibility<br />
(programmability) of the systems. This aspect<br />
of <strong>in</strong>tegration does not end at the IC. However,<br />
embedd<strong>in</strong>g electronics <strong>in</strong> a mechatronic<br />
system requires the right build<strong>in</strong>g blocks and<br />
technology to produce them, application know<br />
how and application-specific ICs (ASICs).<br />
As shown <strong>in</strong> figure 14, the previously<br />
mentioned LL18UHV technology can be<br />
considered as an <strong>in</strong>dustry-lead<strong>in</strong>g technology<br />
for this trend. LL18UHV technology is an<br />
extension of proven low-leakage technology<br />
(LL18), which is already implemented <strong>in</strong><br />
more than 200 million S12 MCUs worldwide.<br />
By add<strong>in</strong>g only a few process steps for the<br />
LL18UHV (buried n-well and deep l<strong>in</strong>k for<br />
isolat<strong>in</strong>g transistors) to this base technology<br />
prior to the CMOS + NVM process<strong>in</strong>g steps,<br />
basic transistor parametrics and proven<br />
reliability are unaffected.<br />
The technology is developed to susta<strong>in</strong> 40 V<br />
for load dump from a 12 V car battery. These<br />
high-voltage circuit elements are typically not<br />
present <strong>in</strong> technologies used to manufacture<br />
MCUs, but are mandatory to <strong>in</strong>tegrate s<strong>in</strong>glepackage<br />
devices <strong>in</strong>to mechatronic actuator and<br />
sensor nodes.<br />
freescale.com<br />
<strong>Future</strong> <strong>Advances</strong> <strong>in</strong> <strong>Body</strong> <strong>Electronics</strong><br />
Automotive<br />
Figure 12: Increased Integration Significantly Reduces PCB Space<br />
Figure 13: The Growth of CAN, LIN and Other Nodes <strong>in</strong> Vehicles<br />
Nodes (Millions)<br />
4500<br />
4000<br />
3500<br />
3000<br />
2500<br />
2000<br />
1500<br />
1000<br />
Other<br />
500<br />
Source: Strategy Analytics<br />
Source: Strategy Analytics<br />
CAGR (LIN nodes) ~17%<br />
CAGR (CAN nodes) ~13%<br />
2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020<br />
FlexRay Safety Bus LIN/J2602 J1850 CAN<br />
Figure 14: Mechatronics Capability <strong>in</strong> LL18UHV Technology<br />
Low Leakage<br />
180 nm<br />
CMOS +NVM<br />
Non-Volatile<br />
Memory<br />
Flash, EEPROM<br />
Digital Logic<br />
S12, PWMs, Timers,<br />
SRAM, SPI, SCI,<br />
GPIO, Watchdogs, etc.<br />
LL18UHV<br />
TECHNOLOGY<br />
High-Voltage<br />
Analog<br />
Low-Side and<br />
High-Side Drivers,<br />
Voltage Regulator<br />
LIN/CAN PHYs, Inputs,<br />
Gate Drive, etc.<br />
UHV Devices<br />
9
Build<strong>in</strong>g Blocks<br />
Typical mechatronic sensor or actuator nodes<br />
share the follow<strong>in</strong>g common build<strong>in</strong>g blocks:<br />
• MCU with standard peripherals <strong>in</strong>clud<strong>in</strong>g<br />
pulse width modulation (PWM), timer,<br />
analog-to-digital converter (ADC), generalpurpose<br />
<strong>in</strong>put/outputs (GPIOs), etc.<br />
• Robust voltage regulator to achieve the<br />
appropriate power supply (such as 5 V)<br />
from the +12 V car battery<br />
• Communication Interface consist<strong>in</strong>g of<br />
physical layer (such as LIN or CAN PHY)<br />
and actual protocol controllers<br />
(SCI, MSCAN)<br />
For the highest levels of system <strong>in</strong>tegration,<br />
other application-dependant blocks are added,<br />
<strong>in</strong>clud<strong>in</strong>g low-side drivers, high-side drivers,<br />
pre-drivers, high-voltage <strong>in</strong>puts or other analog<br />
and high-voltage modules as shown <strong>in</strong><br />
figure 15.<br />
The Value of Integration<br />
Putt<strong>in</strong>g a value on <strong>in</strong>tegration is always difficult.<br />
It certa<strong>in</strong>ly is more than just product cost.<br />
For example, consider a w<strong>in</strong>dow lift system<br />
that uses an embedded MCU with Vreg, LIN<br />
PHY and more, compared to a traditional<br />
electromechanical system. Determ<strong>in</strong><strong>in</strong>g the<br />
actual value of the <strong>in</strong>tegration requires a rather<br />
thorough <strong>in</strong>vestigation. There are more obvious<br />
direct sav<strong>in</strong>gs, for <strong>in</strong>stance:<br />
• Reduced BOM (less components)<br />
• Smaller PCB size<br />
• Reduced design space (often strictly<br />
regulated by OEM)<br />
• Reduced size, weight, harness,<br />
less materials<br />
• Easier mechanical <strong>in</strong>terfaces<br />
• More robust design (e.g., simpler<br />
mechanics, due to monitor<strong>in</strong>g/<br />
supervis<strong>in</strong>g electronics)<br />
There are also several less obvious, and not<br />
easily evaluated, <strong>in</strong>direct sav<strong>in</strong>gs, <strong>in</strong>clud<strong>in</strong>g:<br />
• Manufactur<strong>in</strong>g cost (fewer components to<br />
mount, less test<strong>in</strong>g required compared to<br />
multiple ICs<br />
• Improved quality (fewer solder jo<strong>in</strong>ts, pretested<br />
subsystem)<br />
10<br />
Automotive <strong>Future</strong> <strong>Advances</strong> <strong>in</strong> <strong>Body</strong> <strong>Electronics</strong><br />
Figure 15: Application-Dependent Build<strong>in</strong>g Blocks<br />
High-Voltage<br />
Components<br />
VREG for Total Supply:<br />
70 mA without Ext. Comp. or<br />
170 mA with Evt. Ballast<br />
LIN-PHY CAN-PHY<br />
V V BAT<br />
SUP<br />
Sense Sense<br />
HVI (12 V Input<br />
with ADC)<br />
Low-Side<br />
Drivers<br />
Charge Pump<br />
High-Side<br />
Drivers<br />
4 to 6-ch. MOSFET<br />
Predriver (50–100 nC)<br />
Digital<br />
Components<br />
CAN SCI<br />
SPI I2C GPIO PGPIO<br />
20 bmA<br />
Key<br />
Wakeups<br />
Timer<br />
16-bit<br />
(25–64 MHz)<br />
BDM/BDC<br />
RTC<br />
NGPIO<br />
25 bmA<br />
W<strong>in</strong>.<br />
Wdog<br />
PWM<br />
8/16-bit<br />
(25–50 MHz)<br />
Motorcontrol PWM<br />
with Fault Protection<br />
Programmable<br />
Trigger Unit<br />
Sound Generator<br />
Segment LCD (4 x 40)<br />
Stepper Motor<br />
Driver with SSD<br />
• Easier logistics (fewer parts, less effort on<br />
sourc<strong>in</strong>g, order<strong>in</strong>g, storage, track<strong>in</strong>g)<br />
• Faster time to market (pre-eng<strong>in</strong>eered subsystem,<br />
software changes to address new,<br />
last-m<strong>in</strong>ute, application requirements)<br />
When all of these elements result <strong>in</strong> a lower<br />
system cost, then <strong>in</strong>tegration—for the<br />
<strong>in</strong>tegrated circuits and the mechatronic system<br />
around it—makes sense. Separate from the<br />
purely cost driven motivation to <strong>in</strong>tegrate,<br />
there are also some applications where<br />
space is so limited that highly <strong>in</strong>tegrated ICs<br />
are mandatory, so the value of <strong>in</strong>tegration<br />
is <strong>in</strong>herent. Be<strong>in</strong>g able to <strong>in</strong>tegrate all of the<br />
required build<strong>in</strong>g blocks, <strong>in</strong>clud<strong>in</strong>g robust highvoltage<br />
capable modules, onto a monolithic<br />
chip as well as add<strong>in</strong>g a LIN <strong>in</strong>terface, Vreg and<br />
MCU to a s<strong>in</strong>gle 20 mA RGB LED for ambient<br />
light<strong>in</strong>g opens the door to new applications.<br />
Power Consumption<br />
Current draw and energy consumption are<br />
very critical aspects of the vehicle’s fuel<br />
consumption, driv<strong>in</strong>g range, CO emissions<br />
2<br />
and more. The importance <strong>in</strong>creases with<br />
<strong>in</strong>creas<strong>in</strong>g the number of nodes per car.<br />
Besides the low power modes and cyclic<br />
monitor<strong>in</strong>g techniques, discussed <strong>in</strong> section<br />
4, distributed actuator nodes enable smarter<br />
load management. For example, it is possible<br />
to reduce the consumed power of an HVAC<br />
blower by electronically controll<strong>in</strong>g the motor,<br />
rather than us<strong>in</strong>g a resistor for the<br />
speed control.<br />
MCU Core<br />
and Memories<br />
S12 or S12Z CPU<br />
25/32/50 MHz bus<br />
Flash (ECC)<br />
8–128 KB<br />
EEPROM (ECC)<br />
128 B–4 KB<br />
RAM (ECC)<br />
512 B-8k KB<br />
Integration is one of the most critical design<br />
tools to satisfy the grow<strong>in</strong>g demand for<br />
mechatronic system actuator and sensor<br />
nodes <strong>in</strong> modern vehicle architectures. At the<br />
same time, the calculation performance and<br />
memory needs are constantly <strong>in</strong>creas<strong>in</strong>g. Highperformance<br />
16-bit MCUs with up to 256 KB<br />
of flash memory are needed to address these<br />
application requirements.<br />
4. Power<br />
5 V Analog<br />
Components<br />
ADC<br />
10- 12-bit resolution<br />
1–2 S/H-Units<br />
Up to 16-ch. total<br />
Temperature Sense<br />
Current Sense<br />
(2 x Opamp)<br />
Pierce Osc.<br />
RCosc.<br />
+/-1.3%<br />
PLL<br />
Enhanc<strong>in</strong>g the driver’s experience is a<br />
fundamental goal of car manufacturers that<br />
typically drives the growth of electrical nodes<br />
and <strong>in</strong>creases power consumption. This energy<br />
is certa<strong>in</strong>ly not free and, <strong>in</strong> fact, can be directly<br />
l<strong>in</strong>ked to fuel consumption:<br />
100 W electrical power ~ 0.1 litre/100 km<br />
If the vehicle weight is also considered:<br />
50 kg weight ~ 0.1 liter/100 km<br />
Packag<strong>in</strong>g<br />
LQFP:<br />
32/48/64/100/144-p<strong>in</strong><br />
LQFP-EP:<br />
48/64-p<strong>in</strong><br />
QFN:<br />
32-p<strong>in</strong> (5 x 5 mm)<br />
Both these factors demonstrate why m<strong>in</strong>imiz<strong>in</strong>g<br />
electrical energy consumption and the<br />
weight of ECUs are essential <strong>in</strong> the drive to<br />
improve fuel consumption. Consider<strong>in</strong>g other<br />
factors, such as legislation and the desire<br />
to <strong>in</strong>crease the range of electrical vehicles,<br />
power consumption is clearly a critical aspect<br />
of modern automotive design. As <strong>in</strong>dicated<br />
<strong>in</strong> figure 16 (next page), the long-term trend<br />
for the cost of fuel <strong>in</strong>creases the importance<br />
of any vehicle aspect that can reduce fuel<br />
consumption.
Figure 16: UK Fuel Prices<br />
Pence per litre<br />
150<br />
140<br />
130<br />
120<br />
110<br />
100<br />
90<br />
80<br />
70<br />
Source: The UK Department of Energy and Climate Change<br />
freescale.com<br />
Diesel<br />
Petrol<br />
<strong>Future</strong> <strong>Advances</strong> <strong>in</strong> <strong>Body</strong> <strong>Electronics</strong><br />
60 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012<br />
Figure 17: Power Trends through 2020<br />
Power [mW]<br />
8,000<br />
7,000<br />
6,000<br />
5,000<br />
4,000<br />
3,000<br />
2,000<br />
1,000<br />
0<br />
Power Trend<br />
Power Requirement<br />
2006 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020<br />
Logic - Dynamic Power Logic - Static Power Memory - Dynamic Power Memory - Static Power<br />
Source: International Technology Roadmap for <strong>Semiconductor</strong>s (itrs.net/)<br />
Figure 18: A Variety of Operat<strong>in</strong>g Modes Allow Optimum MCU Power Consumption<br />
System Modes User Modes<br />
SW Request<br />
RESET<br />
Non-Recoverable<br />
HW Failure<br />
SAFE<br />
DRUN<br />
TEST<br />
HW Triggered Transition<br />
SW Triggered Transition<br />
Recoverable<br />
HW Failure<br />
RUN0<br />
RUN1<br />
RUN3<br />
Low Power<br />
Modes<br />
HALT<br />
STOP<br />
STANDBY<br />
Automotive<br />
Emerg<strong>in</strong>g Low-Power Architectures<br />
Address<strong>in</strong>g the performance requirements<br />
of the evolv<strong>in</strong>g automotive <strong>in</strong>dustry requires<br />
<strong>in</strong>vestment <strong>in</strong> future technologies, but these<br />
technologies <strong>in</strong>troduce many challenges<br />
for system designers, <strong>in</strong>clud<strong>in</strong>g cop<strong>in</strong>g with<br />
<strong>in</strong>creased power consumption.<br />
While each technology step helps devices<br />
execute faster to meet customer expectations,<br />
it also requires an <strong>in</strong>novative way of th<strong>in</strong>k<strong>in</strong>g<br />
to solve the power crisis. Demands for<br />
more features, <strong>in</strong>creased safety and faster<br />
performance, as well as competitor differentiation<br />
and reduced weight and costs, must be<br />
addressed with<strong>in</strong> a tighter power budget. Figure<br />
17 shows the <strong>in</strong>creas<strong>in</strong>g demand for power.<br />
Th<strong>in</strong>k<strong>in</strong>g Differently<br />
Traditionally, all the elements of the system are<br />
active and powered to meet the demands of<br />
the driver. However, the numerous electrical<br />
nodes with <strong>in</strong>creas<strong>in</strong>g design complexity<br />
leads to a huge <strong>in</strong>crease <strong>in</strong> the system power<br />
demands. Philosophies start<strong>in</strong>g to sweep the<br />
<strong>in</strong>dustry <strong>in</strong>clude approaches that only power<br />
the absolute m<strong>in</strong>imum number of nodes at any<br />
particular moment. Techniques from partial<br />
network<strong>in</strong>g, pretended network<strong>in</strong>g and supernodes<br />
through to fully distributed <strong>in</strong>tegrated<br />
nodes are all gather<strong>in</strong>g momentum. MCUs and<br />
distributed <strong>in</strong>tegrated sensors and actuators<br />
must support these emerg<strong>in</strong>g protocols, but<br />
also contribute their own unique approaches to<br />
compete <strong>in</strong> this challeng<strong>in</strong>g area.<br />
MCU and Distributed Integrated Sensor/<br />
Actuators Power Modes<br />
Older MCUs conta<strong>in</strong>ed only two basic states:<br />
either ON or OFF. Advanced MCU technologies<br />
allow several operat<strong>in</strong>g modes to cope with<br />
concerns for power consumption. As shown<br />
<strong>in</strong> figure 18, today’s MCUs operat<strong>in</strong>g modes<br />
<strong>in</strong>clude:<br />
RUN: Traditional full-execution mode, usually<br />
the highest consumption mode<br />
HALT: All MCU elements powered, ma<strong>in</strong><br />
elements clock gated<br />
STOP: All MCU elements powered, only a<br />
subset operational<br />
STANDBY: Only a small subsystem powered,<br />
ma<strong>in</strong> areas of device power gated special<br />
modes, such as RESET, TEST, etc.<br />
11
The first <strong>Freescale</strong> products to <strong>in</strong>troduce<br />
modes such as STANDBY <strong>in</strong>to the automotive<br />
arena were part of the MPC564xB/C family.<br />
This dictated a different m<strong>in</strong>dset to address<br />
the entire power reduction ecosystem,<br />
requir<strong>in</strong>g applications developers to create<br />
special RAM-based rout<strong>in</strong>es to obta<strong>in</strong> the<br />
lowest power consumption. Fortunately, the<br />
<strong>in</strong>dustry has risen to the challenge and taken<br />
power consumption to new lows, prov<strong>in</strong>g that<br />
hardware architecture designers and software<br />
developers can work closely together to yield<br />
the optimum results.<br />
Next-Generation Power Modes<br />
While the MPC564xB/C family has been highly<br />
successful <strong>in</strong> meet<strong>in</strong>g low power and other<br />
system requirements, <strong>Freescale</strong> has recognized<br />
that it is time to take solutions to a new<br />
level. Work<strong>in</strong>g with lead<strong>in</strong>g <strong>in</strong>dustry partners<br />
and customers, a more advanced power<br />
management concept has been <strong>in</strong>troduced.<br />
The ma<strong>in</strong> <strong>in</strong>itiative has been <strong>in</strong> four areas:<br />
1. Introduction of a Low Power Unit (LPU)<br />
The LPU has emerged as a real product<br />
differentiator where full RUN performance is<br />
not always required. It is an aggressive mode<br />
of device operation, allow<strong>in</strong>g large sections to<br />
be completely powered off while support<strong>in</strong>g the<br />
full execution capabilities of a processor core.<br />
2. Comb<strong>in</strong>ation of an analog comparator with a<br />
periodic timer<br />
Multiple application profiles only require<br />
the periodic sampl<strong>in</strong>g of <strong>in</strong>put p<strong>in</strong>s. With a<br />
traditional approach and even on devices such<br />
as the MPC560xB/C/D MCUs, this can only<br />
be realized by mov<strong>in</strong>g to the device’s full RUN<br />
mode. However, by <strong>in</strong>telligently <strong>in</strong>terconnect<strong>in</strong>g<br />
several analog comparators with an on-chip<br />
timer, all of this functionality can be realised<br />
with<strong>in</strong> the STANDBY mode. This type of<br />
revolutionary approach allows aggressive low<br />
power consumption to be achieved<br />
3. Pretended Network<strong>in</strong>g<br />
Pretended Network<strong>in</strong>g has been driven by<br />
an automotive consortium and <strong>in</strong> response,<br />
<strong>Freescale</strong> has <strong>in</strong>troduced an extension of<br />
the LPU modes to adhere to this emerg<strong>in</strong>g<br />
standard.<br />
12<br />
Automotive <strong>Future</strong> <strong>Advances</strong> <strong>in</strong> <strong>Body</strong> <strong>Electronics</strong><br />
Figure 19: Low Power Modes <strong>in</strong> the MPC5748G MCU<br />
4. Highly adaptable Distributed Integrated<br />
Sensor/Actuators<br />
These are flexible device solutions, offer<strong>in</strong>g<br />
ways to distribute comput<strong>in</strong>g performance but<br />
also help reduce vehicle weight. (Refer to the<br />
earlier section, “Mechatronics –Second Level<br />
Integration.”)<br />
LPU Modes<br />
The LPU <strong>in</strong>itially <strong>in</strong>troduced <strong>in</strong> the MPC5748G<br />
MCU family of products allows the application<br />
developer to choose between several new as<br />
well as traditional operat<strong>in</strong>g modes:<br />
1. RUN<br />
2. STOP<br />
SW<br />
Request<br />
RESET<br />
POWERUP/<br />
Non-Recoverable<br />
Fault<br />
65 us<br />
Full support for max speed/max<br />
Idd mode<br />
All modules/flash powered,<br />
clock<strong>in</strong>g optional<br />
SAFE<br />
DRUN<br />
Ma<strong>in</strong> peripherals’ states reta<strong>in</strong>ed<br />
LPU peripherals’ states reta<strong>in</strong>ed<br />
Cores (e200z2 and e200z4) powered<br />
on, state reta<strong>in</strong>ed but clock gated<br />
3. LPU_RUN, LPU_STOP small micro system:<br />
CAN0, LIN0, SPI0, 10 bit ADC,<br />
timer, etc.<br />
Reduced frequency execution mode<br />
Ma<strong>in</strong> cores/platform/flash, phaselocked<br />
loop (PLL), etc. all power<br />
gated off<br />
Large parts of the SoC <strong>in</strong>active<br />
65 us (RAM)<br />
110 us (Flash)<br />
Recoverable<br />
Fault<br />
• Configure the API to 1ms period (RTC.<br />
CLK_OUT)<br />
• Configure <strong>in</strong>puts to be read <strong>in</strong>side the<br />
ANL logic<br />
• Software enters the low power<br />
STANDBY mode<br />
• API is free-runn<strong>in</strong>g<br />
freescale.com<br />
<strong>Future</strong> <strong>Advances</strong> <strong>in</strong> <strong>Body</strong> <strong>Electronics</strong><br />
Figure 20: Periodic Sampl<strong>in</strong>g of Analog Inputs Us<strong>in</strong>g an Analog Comparator<br />
Idd<br />
6 mA<br />
85 μA<br />
55 μA<br />
- Initialize API<br />
and Analog<br />
Comparators<br />
- Configure<br />
Wake-Up<br />
Sources<br />
LPU_RUN<br />
Enable<br />
3x<br />
DACs<br />
Enable<br />
P<strong>in</strong><br />
Sample<br />
3X<br />
Analog<br />
Inputs<br />
Enable<br />
3x<br />
DACs<br />
• After 200 ms API asserts a ‘trigger enable’<br />
to the comparator<br />
• Read all <strong>in</strong>puts<br />
Enable<br />
P<strong>in</strong><br />
~32 ms 100 us ~32 ms 100 us<br />
STANDBY1 with<br />
API Active<br />
STANDBY1 with<br />
API Active Analog<br />
Inputs Be<strong>in</strong>g<br />
Sampled<br />
STANDBY1 with<br />
API Active<br />
Figure 21: Periodic Power<strong>in</strong>g of Analog Sampl<strong>in</strong>g<br />
RTC.CLK_OUT<br />
Channel Selection<br />
Trigger_Enable<br />
Sample_clk<br />
Switch_Channels<br />
Start_Compare<br />
Sample_Results<br />
STANDBY1 with<br />
API Active Analog<br />
Inputs Be<strong>in</strong>g<br />
Sampled<br />
Sample<br />
3X<br />
Analog<br />
Inputs<br />
CHN(n-1) CHN(n) CHN(n-1) CHN(n)<br />
DAC Enabled for Duration<br />
of Up to Eight Samples<br />
8 Channel Result CO(n-1)(t) CO(n-1)(t+1)<br />
Sample Clock:: Prog counter of the RTC.CLK_OUT pulses.<br />
User sets to 1, 2, 4, 8 etc. This then delays the sample by x number of RTC.CLK_OUT pulses.<br />
In above example, 2 CLK_OUT pulses required before sample is taken.<br />
P<strong>in</strong> Wake-Up<br />
Detected:<br />
Enter Into<br />
LPU_RUN<br />
Mode<br />
Interrupt asserts if result changes<br />
(only need to compare after<br />
all eight samples taken)<br />
Figure 22: Power Consumption Reduc<strong>in</strong>g Solutions through Partial,<br />
Pretended and Locally Optimised Networks<br />
Efforts/Risks<br />
Low<br />
High<br />
Local, <strong>in</strong>ternal optimization of electronic<br />
control units, actuators and sensors<br />
Sub-bus sections can be powered off<br />
B<br />
C<br />
Gateway<br />
A D<br />
X<br />
Y<br />
All nodes powered<br />
• Apply power sav<strong>in</strong>gs with<strong>in</strong> nodes<br />
• Smart algorithms (PWM, motor control, etc.)<br />
• Loss m<strong>in</strong>imation (DC/DC regulators, LEDs, etc.)<br />
Bus sections powered off<br />
• Network topology change<br />
• Traditional wake-up mechanism<br />
• Slow reaction times<br />
• Limited SW changes<br />
Individual ECUs can be powered off Individual network nodes powered off<br />
• Flexible wake-up mechanism required<br />
A B<br />
Gateway<br />
X<br />
• Slow reaction times<br />
• SW and HW changes<br />
C D<br />
Y<br />
- Industry standardization<br />
Low<br />
High<br />
• If different, wake-up else wait for next<br />
200 ms time <strong>in</strong>terval<br />
Sav<strong>in</strong>gs Potential<br />
Automotive<br />
Partial and Pretended Network<strong>in</strong>g<br />
Traditionally, an entire car network would be<br />
powered and operational but there are many<br />
examples where this is not required. For<br />
<strong>in</strong>stance, when driv<strong>in</strong>g, some functions, such<br />
as seat movement, can be restricted. In this<br />
case, partial network<strong>in</strong>g allows the complete<br />
shutdown of an ECU that is <strong>in</strong>dependent of the<br />
other ECUs on the network. The bottom level<br />
of figure 22 shows this methodology. There<br />
are other network solutions to help reduce this<br />
type of power consumption, depend<strong>in</strong>g on the<br />
network topology.<br />
In a pretended network<strong>in</strong>g approach, elements<br />
of the network determ<strong>in</strong>e that the level of<br />
activity has significantly decreased. Once this<br />
decision has been made, the ECU places itself<br />
<strong>in</strong> a lower power state but ”pretends” that it<br />
still has a network presence. As soon as the<br />
status is required to change, the node quickly<br />
re-establishes itself with<strong>in</strong> the network.<br />
To support this type of network solution,<br />
<strong>Freescale</strong> has enhanced the CAN module to<br />
work efficiently with this emerg<strong>in</strong>g aspect of the<br />
AUTOSAR standard. This <strong>in</strong>cludes:<br />
1. Introduced a CAN module <strong>in</strong>to the LPU on<br />
the MPC5748G family<br />
a. Options to wake up the LPU or full<br />
system upon valid message reception<br />
b. Allows most of the device to be<br />
completely powered off<br />
2. FlexCAN ID filter<strong>in</strong>g scheme (match on<br />
exact ID) enhanced to <strong>in</strong>clude<br />
a. Hardware (HW) ID range filter<strong>in</strong>g<br />
i. Match on ID above or equal to a<br />
target<br />
ii. Match on ID below or equal to a<br />
target<br />
iii. Match on a range of IDs<br />
b. Message ID and payload filter<strong>in</strong>g<br />
i. Exact ID and payload<br />
ii. Exact ID and different payload<br />
c. Message occurrence filter<strong>in</strong>g<br />
i. Specific ID message match<br />
occurr<strong>in</strong>g X times<br />
ii. Specific ID message miss<strong>in</strong>g for a<br />
def<strong>in</strong>ed quantity of time<br />
13
5. Functional Safety<br />
With their direct impact on human wellbe<strong>in</strong>g,<br />
all electronic systems are experienc<strong>in</strong>g<br />
<strong>in</strong>creas<strong>in</strong>gly str<strong>in</strong>gent requirements. Design<strong>in</strong>g<br />
systems <strong>in</strong>side the vehicle to meet the<br />
functional safety criteria is a challeng<strong>in</strong>g job,<br />
especially with <strong>in</strong>creased application complexity<br />
comb<strong>in</strong>ed with time to market urgency. The<br />
challenge is to architect the system <strong>in</strong> a<br />
manner that prevents dangerous failures from<br />
occurr<strong>in</strong>g or sufficiently controls them when<br />
they occur. Traditionally, functional safety<br />
standards have been applied to the vehicle<br />
safety systems, such as airbag or advanced<br />
driver assistance systems (ADAS). However, it<br />
is clear that many nodes around the car could<br />
have a significant effect on occupant well-be<strong>in</strong>g<br />
if a failure occurred, so these standards are<br />
now proliferat<strong>in</strong>g throughout the vehicle.<br />
ISO 26262 is the adaptation of the IEC 61508<br />
standard for electrical/electronic systems<br />
with<strong>in</strong> road passenger vehicles. The standard<br />
addresses architectural and functional aspects<br />
as well as procedural aspects, <strong>in</strong>clud<strong>in</strong>g safety<br />
lifecycle to avoid and control faults consider<strong>in</strong>g<br />
both systematic and random HW faults.<br />
Quot<strong>in</strong>g from the standard, functional safety<br />
is about achiev<strong>in</strong>g “absence of unreasonable<br />
risk due to hazards caused by malfunction<strong>in</strong>g<br />
behavior of E/E systems” where hazards are<br />
def<strong>in</strong>ed as “potential sources of harm” and<br />
harm is def<strong>in</strong>ed as “physical <strong>in</strong>jury or damage<br />
to the health of people.” Failures are the ma<strong>in</strong><br />
impairment to safety:<br />
• Systematic failures: “Failure, related <strong>in</strong> a<br />
determ<strong>in</strong>istic way to a certa<strong>in</strong> cause, that<br />
can only be elim<strong>in</strong>ated by a change of the<br />
design or of the manufactur<strong>in</strong>g process,<br />
operational procedures, documentation or<br />
other relevant factors.”<br />
• Random HW failures: “Failure that can<br />
occur unpredictably dur<strong>in</strong>g the lifetime of<br />
a hardware element and that follows a<br />
probability distribution.”<br />
ISO 26262 specifies ASIL rat<strong>in</strong>gs at one of<br />
four levels (A to D) to identify the necessary<br />
requirements of the standard and the<br />
safety measures to apply for avoid<strong>in</strong>g an<br />
unreasonable residual risk, with D represent<strong>in</strong>g<br />
the most and A the least str<strong>in</strong>gent level. The<br />
appropriate ASIL is determ<strong>in</strong>ed through hazard<br />
14<br />
Automotive <strong>Future</strong> <strong>Advances</strong> <strong>in</strong> <strong>Body</strong> <strong>Electronics</strong><br />
Table 3: Determ<strong>in</strong><strong>in</strong>g the Appropriate ASIL for an Application Function<br />
Class of Severity Class of Probability of<br />
Exposure Regard<strong>in</strong>g<br />
Operational Situations<br />
S1 (Light and<br />
moderate <strong>in</strong>juries)<br />
S2 (Sever and life<br />
threaten<strong>in</strong>g <strong>in</strong>juries,<br />
survival probable)<br />
S3 (Life threaten<strong>in</strong>g<br />
<strong>in</strong>juries, fatal <strong>in</strong>juries)<br />
Figure 23: General Consensuses of Automotive OEMs and Tier 1s on the<br />
Appropriate ASIL Rat<strong>in</strong>g<br />
77 GHz<br />
RADAR ACC<br />
Inadvertent brak<strong>in</strong>g<br />
ASIL C<br />
Instrument Cluster<br />
Speedometer not available<br />
ASIL B<br />
Active Suspension<br />
Suspension oscillates<br />
ASIL B to C<br />
Eng<strong>in</strong>e Management<br />
Unwanted vehicle<br />
acceleration<br />
ASIL C to D<br />
Front-View<br />
Camera System<br />
No valid video<br />
sensor data<br />
ASIL B<br />
Driv<strong>in</strong>g Lights<br />
Failure on<br />
both sides<br />
ASIL B<br />
analysis and risk assessment performed at<br />
the vehicle level consider<strong>in</strong>g the portion of<br />
the mission profile for which a failure <strong>in</strong> the<br />
system may lead to a harm, (i.e., the exposure),<br />
the ability of the driver to cope with the<br />
system failures and avoid this harm, (i.e., the<br />
controllability) and the human consequences if<br />
the controllability actions fail (i.e., the severity).<br />
Table 3 shows classes of controllability versus<br />
severity and failure probability. Figure 23<br />
identifies the ASIL rat<strong>in</strong>g for several vehicle<br />
systems.<br />
The ASIL rat<strong>in</strong>g is applied at the system not<br />
component level, however the MCU plays a<br />
key role <strong>in</strong> the determ<strong>in</strong>ation. <strong>Freescale</strong> has<br />
C1<br />
(Simple)<br />
Classes of Controllability<br />
Smart Rear-View<br />
Camera System<br />
No valid video<br />
sensor data<br />
ASIL B<br />
Brake Lights<br />
Loss of brake lights<br />
ASIL B<br />
Rear Lights<br />
Failure on both sides<br />
ASIL A<br />
Airbag System<br />
Inadvertent deployment<br />
ASIL D<br />
Electric Power Steer<strong>in</strong>g<br />
Self steer<strong>in</strong>g<br />
ASIL D<br />
Brak<strong>in</strong>g and Stability Systems<br />
Un<strong>in</strong>tended full<br />
power brake<br />
ASIL D<br />
C2<br />
(Normal)<br />
C3<br />
(Difficult,<br />
Uncontrollable)<br />
E1 (very low) QM QM QM<br />
E2 (low) QM QM QM<br />
E3 (medium) QM QM A<br />
E4 (high) QM A B<br />
E1 (very low) QM QM QM<br />
E2 (low) QM QM A<br />
E3 (medium) QM A B<br />
E4 (high) A B C<br />
E1 (very low) QM QM A<br />
E2 (low) QM A B<br />
E3 (medium) A B C<br />
E4 (high) B C D<br />
* QM (quality managed): No requirements from standard applied explicitly<br />
developed many <strong>in</strong>novations <strong>in</strong> its chassis and<br />
powertra<strong>in</strong> MCUs that have now been adopted<br />
<strong>in</strong>to body electronics products. Traditionally,<br />
lockstep-based dual-computational core<br />
architecture was used, <strong>in</strong>clud<strong>in</strong>g redundancy<br />
of critical elements, to reach the highest ASIL<br />
rat<strong>in</strong>gs. For an ASIL-A device, there is no need<br />
for a second core. However on an ASIL-B<br />
device, such as the MPC5748G MCU, that<br />
does not replicate a second core <strong>in</strong> lockstep<br />
mode, an alternate approach that can be<br />
adopted. Safety relevant functions can run on<br />
two cores at different times, achiev<strong>in</strong>g temporal<br />
decoupl<strong>in</strong>g as well, allow<strong>in</strong>g the diversity <strong>in</strong><br />
implementation on a different core.
Table 4: A Comparison of ASIL-A to ASIL-B MCUs<br />
Safety measure Feature ASIL A<br />
(S12ZVL, S12ZVC)<br />
Implementation<br />
diversity<br />
The focus of the built-<strong>in</strong> functional safety<br />
features on an MCU is on detect<strong>in</strong>g and<br />
mitigat<strong>in</strong>g random hardware failures: s<strong>in</strong>gle<br />
po<strong>in</strong>t faults, latent faults and dependent faults.<br />
The target percentage of detectable faults<br />
<strong>in</strong>creases for the different ASIL rat<strong>in</strong>gs from 60<br />
percent for A to 90 percent for B, 97 percent<br />
for C to 99 percent for D.<br />
Consider<strong>in</strong>g the <strong>in</strong>tended applications, the<br />
specific technology attributes and the design<br />
features, table 4 shows a comparison of the<br />
built-<strong>in</strong> functional safety features employed<br />
on ASIL-A S12ZVL/S12ZVC MCUs and the<br />
ASIL-B MPC5748G MCU.<br />
Functional safety is more than just the<br />
hardware features of an MCU. Safety<br />
requirements state the specific safety-related<br />
detail which will be implemented as part of<br />
the software and hardware design, and it is<br />
this comb<strong>in</strong>ation of software and hardware<br />
design that provides a functional, safe system.<br />
With considered design, ASIL-D systems can<br />
be developed from QM products, but the<br />
freescale.com<br />
<strong>Future</strong> <strong>Advances</strong> <strong>in</strong> <strong>Body</strong> <strong>Electronics</strong><br />
Compute resource S<strong>in</strong>gle-core<br />
ASIL B<br />
(MPC5768G)<br />
Multiple asymmetric nonlockstep<br />
cores<br />
RAM S<strong>in</strong>gle array Multiple RAM arrays, <strong>in</strong><br />
different power doma<strong>in</strong>s<br />
Communications S<strong>in</strong>gle <strong>in</strong>stantiation of most<br />
comms modules<br />
Multiple <strong>in</strong>stantiations of<br />
comms modules<br />
Monitor units Clock monitor Yes Yes<br />
Error detection and<br />
correction<br />
Voltage monitor Low-voltage monitor Low and high-voltage<br />
monitor<br />
Fault collection/control Distributed Consolidated<br />
End-to-end bus transaction<br />
ECC<br />
No Yes<br />
SRAM and flash ECC Yes (SECDED) Yes (SECDED)<br />
RAM column mux<strong>in</strong>g No Yes<br />
Flash marg<strong>in</strong> read Yes Yes<br />
Temp sensor Yes Yes<br />
Latent fault detection Logic test User software L-BIST<br />
Operational<br />
<strong>in</strong>terference<br />
protection<br />
Memory test User software M-BIST<br />
Register protection Yes Yes<br />
Memory access protection Illegal address <strong>in</strong>terrupt System MPU<br />
CRC Software Hardware<br />
Watchdog COP W<strong>in</strong>dow watchdog<br />
Flash access protection Accidental and unauthorized<br />
write access prevented<br />
Robust technology 180nm CMOS with Flash<br />
and UHV Analog<br />
Accidental and unauthorized<br />
write access prevented<br />
55 nm CMOS with flash<br />
converse is also true, ASIL-D rated products<br />
can be designed carelessly <strong>in</strong>to systems which<br />
will never achieve an ASIL rat<strong>in</strong>g. Functional<br />
safety applied to the development of an MCU<br />
is about strictly adher<strong>in</strong>g to the prescribed ISO<br />
26262 process, us<strong>in</strong>g robust proven software,<br />
and provid<strong>in</strong>g the support to allow system<br />
development eng<strong>in</strong>eers to use the device<br />
hardware features to achieve the desired<br />
system level safety <strong>in</strong>tegrity.<br />
The <strong>Freescale</strong> SafeAssure functional safety<br />
program provides exactly this support.<br />
SafeAssure products help simplify systemlevel<br />
functional safety design and standard<br />
compliance and come with a rich set of<br />
enablement collateral facilitat<strong>in</strong>g failure analysis,<br />
hardware and software <strong>in</strong>tegration. Moreover,<br />
SafeAssure products provide a clear support<br />
<strong>in</strong>terface to help ensure that <strong>Freescale</strong><br />
addresses customer needs at each step of the<br />
system design and compliance process.<br />
Automotive<br />
6. Security<br />
Together with other general trends such as<br />
<strong>in</strong>creased system safety, there is a strong push<br />
for advanced security features <strong>in</strong> automotive<br />
semiconductors. The new MPC5748G family<br />
supports these customer security requirements<br />
with a new security eng<strong>in</strong>e, the hardware<br />
security module (HSM) and other<br />
security modules.<br />
Before discuss<strong>in</strong>g these modules, two usecases,<br />
secure communication and secure<br />
flash<strong>in</strong>g, demonstrate the need for<br />
security features.<br />
Secure Communication<br />
As highlighted previously, safety is a very<br />
important trend and security is required to<br />
establish a safe system. For this reason, many<br />
vehicle OEMs have started to protect safety<br />
relevant CAN message with cryptographic<br />
algorithms. Some encode the whole message<br />
body, while others prevent modifications of<br />
the message with a cipher-based message<br />
authentication code (CMAC) value. The CMAC<br />
works like a secure checksum, only the owner<br />
of the security key is able to produce the right<br />
CMAC value. For this process, the CMAC<br />
identifies the communication partners.<br />
Figure 24 (next page) shows secure data<br />
exchange among three MCUs.<br />
In this example, the MPC5748G MCU<br />
is able to send secure messages to the<br />
MPC564xB/C and the S12 MagniV device.<br />
Two communication groups are created: blue<br />
and red and nodes <strong>in</strong> each group that share<br />
the same cipher key. No other CAN nodes<br />
are able to send a CAN message with a valid<br />
CMAC value to one of these nodes. In the<br />
MPC5748G MCU, cipher keys are managed<br />
by the HSM, which could take over additional<br />
tasks such as send<strong>in</strong>g the message itself. For<br />
the S12 MagniV S12ZVC MCU, it is possible<br />
to enable flash memory and debug protection.<br />
This significantly reduces the possibility that the<br />
cipher key is exported from the device.<br />
15
Secure Flash<strong>in</strong>g<br />
Secure flash<strong>in</strong>g is very similar to the previous<br />
use case. In this situation, the MPC5748G<br />
MCU receives the firmware for several subnodes<br />
over Ethernet and distributes the right<br />
firmware to them. Secure communication to<br />
the OEM server is established by the HSM<br />
based on a public-key algorithm implemented<br />
<strong>in</strong> software on the HSM. Later, for the real<br />
firmware download and distribution task, the<br />
advanced encryption standard (AES)-128 block<br />
can be used to <strong>in</strong>crease performance.<br />
The New Security Architecture<br />
MPC5748G MCUs have a comprehensive<br />
set of customer-configurable security features<br />
designed to protect code and data from<br />
unauthorized access.<br />
The security features <strong>in</strong>clude:<br />
• Device censorship based on lifecycle model<br />
• Memory security features:<br />
16<br />
NVM-censorship support,<br />
password protection, and one-timeprogrammable<br />
(OTP) flash memory<br />
areas, flash erase counter and tamper<br />
detection<br />
SRAM and caches <strong>in</strong>itialized to a<br />
constant value after reset<br />
• Unique ID for each device<br />
• Secure watchdog timer<br />
• Basic debugger restrictions (on/off via<br />
censorship mode) and a secure debugger<br />
<strong>in</strong>terface<br />
• Trusted/secure boot support<br />
• Hardware security module<br />
Figure 25 shows the different security layers to<br />
protect system memory.<br />
The three ma<strong>in</strong> security modules and their<br />
functions are:<br />
• The password and device security module<br />
(PASS) receives password challenges and<br />
determ<strong>in</strong>es their validity. It also ma<strong>in</strong>ta<strong>in</strong>s<br />
the device security and access states.<br />
Automotive <strong>Future</strong> <strong>Advances</strong> <strong>in</strong> <strong>Body</strong> <strong>Electronics</strong><br />
Figure 24: Send<strong>in</strong>g Secure Messages Between MCUs with CMAC<br />
MPC5768G<br />
MSG<br />
y<br />
MSG<br />
x<br />
S12 MagniV<br />
S12ZVC<br />
MSG<br />
CMAC (MSG, y)<br />
OK<br />
CMAC<br />
AES–128<br />
HSM<br />
MSG CMAC (MSG, y)<br />
MSG CMAC (MSG, x)<br />
BusMessage “y”<br />
Flash<br />
Software<br />
CMAC<br />
AES–128<br />
Key #y<br />
Core<br />
Communication Group “Red”<br />
Key #x<br />
Key #y<br />
Debug-IF<br />
• The tamper detection module (TDM)<br />
provides a type of flash memory write<br />
protection mechanism that forces software<br />
to write a record associated with one or<br />
more blocks <strong>in</strong> a tamper detection region<br />
(TDR) before the block(s) can be erased.<br />
• Hardware security module is the second<br />
generation of automotive security modules.<br />
The first module is the crypto service<br />
eng<strong>in</strong>e (CSE) <strong>in</strong> the MPC564xB/C, which<br />
implements the HIS SHE V1.1 specification.<br />
The HSM is very similar from top level view<br />
but offers much more performance and<br />
flexibility. The ma<strong>in</strong> difference to the CSE<br />
is that it is freely programmable by the<br />
customer.<br />
Communication Group “Blue”<br />
MPC564xB/C<br />
MSG<br />
OK<br />
CMAC (MSG, x)<br />
BusMessage “x”<br />
CMAC<br />
AES–128<br />
Figure 25: Implement<strong>in</strong>g Increas<strong>in</strong>gly Higher Security <strong>in</strong> MCUs<br />
High<br />
Security<br />
Low<br />
Security<br />
Tamper<br />
Detection<br />
Module (TDM)<br />
Password<br />
and Device<br />
Security<br />
Module<br />
(PASS)<br />
Platform<br />
Flash Memory<br />
Controller<br />
Flash Memory<br />
Factory Test Mode Disable<br />
Enables the customer to disable the device’s ability to be placed <strong>in</strong> factory test mode.<br />
OTP Flash<br />
Configure any flash block as OTP so it can only be programmed once.<br />
Configurable Tamper Detection<br />
Tamper detection acts as an erase counter.<br />
Debug Disable<br />
Overrides all other debug controls and disables the debug <strong>in</strong>terface. The debug<br />
disable feature has higher priority than censorship, JTAG password, and secure debug-IF<br />
Secure HSM Debug<br />
Customer is able to implement his own system protection scheme and access protocol<br />
(e.g. PK based) on the HSM. The HSM is responsible to grand device debug access.<br />
JTAG Password (256-bit passwords)<br />
Secure Read Protection<br />
Read protection; group base (code, data, secure code, secure data).<br />
Secure Write Protection<br />
Write protection on <strong>in</strong>dividual block base; up to 4x 256-bit passwords required to change.<br />
Device Censorship (16-bit Password)<br />
Traditional protection mechanism for all <strong>Freescale</strong> MCUs. It is possible<br />
to censor and uncensor the device multiple times.<br />
MPU<br />
Non-Secure Write Protection<br />
Flash Blocks Must Be Explicitly Selected for Erase Operations<br />
Application Code and Data<br />
CSE<br />
Key #x<br />
Intended to<br />
provide protection<br />
aga<strong>in</strong>st accidental<br />
changes to<br />
code and data<br />
As shown <strong>in</strong> the block diagram of figure 26<br />
(next page), the HSM has its own core and<br />
memory blocks for data and <strong>in</strong>structions.<br />
The code is executed from dedicated flash<br />
sections, which are only accessible by<br />
the HSM.<br />
The HSM is able to access the whole address<br />
range of the ma<strong>in</strong> MCU. In addition, it is<br />
possible to control and service peripheral<br />
modules directly by the HSM. This could be<br />
useful, if a CAN or Ethernet stack have a<br />
secure communication stack.
Conclusions<br />
With the ever-<strong>in</strong>creas<strong>in</strong>g levels of comfort,<br />
safety, efficiency and consumer features <strong>in</strong><br />
vehicles, carmakers and their electronics<br />
suppliers must cope with the conflict<strong>in</strong>g<br />
demands of electronics complexity versus<br />
power and weight.<br />
New MCU products with higher levels of<br />
<strong>in</strong>tegration, performance and connectivity<br />
will result <strong>in</strong> a total reduction of the number<br />
of components and wir<strong>in</strong>g which will help<br />
reduce vehicle weight and thereby enable more<br />
efficient vehicles. Additionally, <strong>in</strong>novative lowpower<br />
modes help reduce current consumption<br />
of the <strong>in</strong>dividual components as well as to<br />
facilitate a reduction <strong>in</strong> network power.<br />
One network standard ga<strong>in</strong><strong>in</strong>g momentum <strong>in</strong><br />
automotive applications is Ethernet. <strong>Freescale</strong><br />
is conv<strong>in</strong>ced that Ethernet will be widely<br />
adopted for high-bandwidth automotive<br />
applications, but is unlikely to replace exist<strong>in</strong>g<br />
and application specific protocols of CAN, LIN,<br />
SENT and PSI5.<br />
freescale.com<br />
<strong>Future</strong> <strong>Advances</strong> <strong>in</strong> <strong>Body</strong> <strong>Electronics</strong><br />
Figure 26: Hardware Security Module and its Connection to Other MCU Blocks<br />
HSM<br />
Timer<br />
Interrupt<br />
Controller<br />
Host<br />
Interface<br />
Cipher<br />
T/PRNG<br />
Peripheral<br />
Bridge<br />
Core<br />
e200z0<br />
Peripheral Bus Crossbar<br />
MPU<br />
System-IF<br />
lCache<br />
4 KB<br />
SRAM<br />
24 KB<br />
SRAM<br />
Core0<br />
System Crossbar<br />
MPU<br />
Flash Controller<br />
Secure Data<br />
Secure Code<br />
Interrupt<br />
Controller<br />
Core1<br />
Implement<strong>in</strong>g MCU solutions that meet<br />
automotive requirements <strong>in</strong>volves <strong>in</strong>novative<br />
designs from experts with a long-term<br />
commitment to the automotive market.<br />
<strong>Freescale</strong> cont<strong>in</strong>ues to demonstrate its<br />
automotive leadership through <strong>in</strong>novative body<br />
electronics solutions <strong>in</strong>clud<strong>in</strong>g:<br />
• Qorivva MPC5748G MCU family for<br />
centralized gateway and/or high-end body<br />
doma<strong>in</strong> controller applications<br />
• S12 MagniV S12ZVL and S12ZVC MCUs,<br />
us<strong>in</strong>g the hyper <strong>in</strong>tegration LL18UHV<br />
technology, for smart sensor and<br />
actuator nodes<br />
The wide adoption of functional safety with<strong>in</strong><br />
the chassis and powertra<strong>in</strong> areas of automotive<br />
has extended across <strong>in</strong>to body electronics, with<br />
new body MCUs from <strong>Freescale</strong> developed<br />
<strong>in</strong> l<strong>in</strong>e with the ISO 26262 process and part<br />
of the SafeAssure program. F<strong>in</strong>ally, with the<br />
grow<strong>in</strong>g <strong>in</strong>ternal and external connectivity,<br />
<strong>in</strong>creased network traffic and <strong>in</strong>creased vehicle<br />
embedded memory capacity, there are higher<br />
security demands and <strong>Freescale</strong> MCUs provide<br />
the trusted, hardware-based foundation to help<br />
ensure that automotive systems rema<strong>in</strong> secure.<br />
Automotive<br />
17
For more <strong>in</strong>formation, visit freescale.com<br />
<strong>Freescale</strong>, the <strong>Freescale</strong> logo and Qorivva are trademarks of <strong>Freescale</strong> <strong>Semiconductor</strong>, Inc., Reg. U.S. Pat. and Tm. Off. MagniV and<br />
SafeAssure are trademarks of <strong>Freescale</strong> <strong>Semiconductor</strong>, Inc. All other product or service names are the property of their respective<br />
owners. The Power Architecture and Power.org word marks and the Power and Power.org logos and related marks are trademarks<br />
and service marks licensed by Power.org. © 2013 <strong>Freescale</strong> <strong>Semiconductor</strong>, Inc.<br />
Document Number: BODYDELECTRWP REV 0