APF-AUT-D3070
HANDS-ON WORKSHOP: S32
SDK FOR CALYPSO
C55 SDK FOR POWER ARCHITECTURE
REMI WANG
GC AUTO CAS TEAM
MAY 9, 2018
NXP and the NXP logo are trademarks of NXP B.V. All other product or service names are the property
of their respective owners. © 2017 NXP B.V.
PUBLIC
AGENDA
• Introduction
− S32 SDK
− S32 Design Studio
• Hands-on
− Blinking LED
− ADC-eMIOS
− ENET-CAN Communication
− DSPI-eDMA
− FreeRTOS
• Q&A
PUBLIC
1
01.
Introduction
PUBLIC
2
S32 SDK – Architecture
Demos
Applications
Driver
Examples
Middleware & Stacks
Features:
SW Quality Class
Automotive/Production Grade
Development Support / Example
3rd party
TCP/IP
USB
FS
Low-level Drivers
S
O
T
R
e
e
r
F
I
F
S
O
Analog
Comms
ADC
CMP
PDB
UART
FlexIO
CAN-FD
LIN
SPI
I2C
Safety &
Security
EIM
ERM
CRC
MPU
cSEC
Timers
FTM
LPIT
LPTMR
RTC
WDOG
EWM
…
SoC
Clocks
Interrupts
Power
Pins
GPIO
FLASH
DMA
TRGMUX
Headers
Hardware
Processor
Expert UI
Config files
•
Integrated Non-Autosar SW Production-
grade software
• Automotive-grade & production ready:
SPICE/CMMI Level 3 compliant, MISRA
2012 tested
Start-up/
Compiler
linker files
• Graphical-based Configuration
• Layered Software Architecture
• Documented Source Code and Examples
•
Integrated with S32 Design Studio and
other IDEs
• FreeRTOS integration
• Supports MPC574x family
• Multiple toolchains supported
• Drivers for complementary NXP ICs e.g.
System Basis Chips (SBC)
• Several examples and demos
PUBLIC
3
Header File Format
…
−Monolithic
−MISRA 2012
−Structure based
−Single access method for registers
−No dependencies except stdlib headers
PUBLIC
4
Peripheral Drivers
−Can rely on one or more HALs
−Configurable with Processor Expert
−Internal context data memory
…
−Shielded from the HW details through: HAL and Features.h
−Targeting same API when accessing same function on similar SOC modules
PUBLIC
5
NXP S32 Design Studio IDE www.nxp.com/S32DS
• Free of charge
• Unlimited code size
• Eclipse based environment
• GNU compiler & debugger integrated
• S32 SDK integrated (graphical configuration)
• Processor Expert integrated (automatic code
generator)
• Can use with 3rd party compliers & debuggers
via Connection Utility
• Supports S32K and Power Architecture (MPC)
products
• Not a replacement for NXP’s CodeWarrior IDE
• Not intended to compete with premium 3rd party
IDEs
PUBLIC
6
NXP & 3rd Party IDEs – Performance/Price Map
$10k
$5k
e
c
i
r
P
$500
IAR, GreenHills, WindRiver
GHS
CodeWarrior
(NXP)
New S32 Design Studio
(NXP)
✓ Free of charge
✓ No code limit
✓ Processor Expert Integrated
Capability / Features
PUBLIC
7