herunterladen
![](https://oss-datasheet.aipcba.com/html/367966FB2D6E84E51A4425D2D12B6565/bg1.png)
NXP Semiconductors
Application Note
Document Number: AN5413
Rev. 0, 03/2017
Contents
1 Introduction
This application note provides software examples and
describes necessary startup steps needed to help users get
started with S32K14x series MCUs.
Complete source code and projects are available in a
separate zip file at nxp.com. Projects are implemented
using NXP’s S32 Design Studio and tested on the
S32K144 evaluation board. To access the projects in the
zip file, either:
• Windows: unzip archive file to a folder
• S32 Design Studio: use File - Import and select
the zip file.
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 Software examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2.1 Hello World . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2 Hello World + Clocks. . . . . . . . . . . . . . . . . . . . . . . . 6
2.3 Hello World + Interrupts. . . . . . . . . . . . . . . . . . . . . 11
2.4 DMA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.5 Timed I/O (FTM) . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.6 ADC - SW Trigger . . . . . . . . . . . . . . . . . . . . . . . . . 28
2.7 UART. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
2.8 SPI. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
2.9 CAN 2.0. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
2.10 CAN FD. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
3 Startup code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
3.1 S32 Design Studio, S32K14x flash target . . . . . . . 63
4 Header files cheat sheet . . . . . . . . . . . . . . . . . . . . . . . . 64
5 Adding projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
6 Revision history. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
S32K14x Series Cookbook
Software examples and startup code to exercise
microcontroller features