Tutorial
Using the
S32K144 EVB
evaluation
board
10 Oct 2022
11
OUTLINE
1. S32K144EVB Overview
2. Development Tool chain Overview (KEIL)
3. S32K144EVB Getting Started Project
3.1. Download Keil C µVision
3.2. Install Keil C µVision
3.3. Install µVision Software Pack
3.4. Create a new project
3.5. Setting parameter’s project
3.6. Build project
3.7. Install PE micro
3.8. Configuring P&E Connection Manager
3.9. Debugging 2
1. S32K144EVB Overview
S32 Platform products:
❖ Vehicle Network Processors(S32G)
❖ General Purpose Microcontrollers(S32K)
❖ Radar Processing(S32R)
❖ Real time processors(S32Z and S32E)
S32K144EVB:
❖ S32K144-Q100 is general purpose
Evaluation Board designed and
manufactured by NXP Semiconductor.
❖ It is built around S32K General Purpose
Microcontroller S32K144
❖ The board is designed to showcase
general purpose Automotive and
Industrial applications.
S32K144EVB evaluation board
3
1. S32K144EVB Overview
S32K144 EVB Features:
• Supports S32K144 100LQFP
• Small form factor size supports up to 6” x 4”.
• Integrated open-standard serial and debug adapter
(OpenSDA) with support for several industry-standard debug
interfaces.
• Easy access to the MCU I/O header pins for prototyping.
• On-chip connectivity for CAN, LIN, UART/SCI.
• SBC UJA1169 and LIN phy TJA1027.
• Potentiometer for precise voltage and analog measurement.
• RGB LED.
• Two push-button switches (SW2 and SW3).
• Two touch electrodes.
• Flexible power supply options:
- MicroUSB.
- External 12V power supply.
4
1. S32K144EVB Overview
No. Component S32K144 Jumper Setting Description
1 Red LED PTD15 (FTM0 CH0)
J104 1-2 Reset signal to OpenSDA, use to enter into OpenSDA Bootloader mode
2 Blue LED PTD0 (FTM0 CH2)
2-3 (Default) Reset signal direct to the MCU, use to reset S32K144
3 Green LED PTD16 (FTM0 CH1)
J107 1-2 S32K144 powered by 12 V power source
4 Potentiometer PTC14 (ADC0_SE12)
2-3 (Default) S32K144 powered by USB micro connector
5 SW2 PTC12
J109/J108 1-2 (Default) Removes CAN termination resistor
6 SW3 PTC13
7 OpenSDA UART Tx PTC7 (LPUART1_TX)
Set Up jumpers in S32K144EVB evaluation board
8 OpenSDA UART Rx PTC6 (LPUART1_RX)
J104
9 CAN Tx PTE5 (CAN0_TX)
10 CAN Rx PTE4 (CAN0_RX)
321
J107
11 LIN Tx PTD7 (LPUART2_TX)
12 LIN Rx PTD6 (LPUART2_RX)
321
13 SBC_SCK PTB14 (LPSPI1_SCK)
14 SBC_MISO PTB15 (LPSPI1_SIN)
15 SBC_MOSI PTB16 (LPSPI1_SOUT)
16 SBC_CS PTB17 (LPSPI1_PCS3)
The HMI Mapping 5
1. S32K144EVB Overview
ARM cortex M4F Processor Block
Clock generation Block
Peripherals Block
Memory Block
S32K14X BLOCK DIAGRAM 6
2. Development Tool chain Overview (KEIL)
MDK Microcontroller Development Kit
Keil® MDK is the most comprehensive software development solution for Arm®-based
microcontrollers and includes all components that you need to create, build, and debug embedded
applications.
7
2. Development Tool chain Overview (KEIL)
Common Microcontroller Software Interface Standard (CMSIS)
❖ CMSIS is a vendor-independent abstraction layer for microcontrollers that are based on Arm
Cortex processors.
❖ CMSIS provides interfaces to processor and peripherals, real-time operating systems, and
middleware components.
8
2. Development Tool chain Overview (KEIL)
CMSIS Overview
9
2. Development Tool chain Overview (KEIL)
Typical program compilation flow
10
3. S32K144EVB Getting Started Project
Software Development
HOST USB to Micro-USB S32K144 board
Hardware connection 11
3.1. Download Keil C µVision
Link Download: https://www.keil.com/download/product/
Step 1: Click MDK-Arm
Step 2: Fill info and click Submit
Step 3: Click MDKxxx.EXE
12
3.2. Install Keil C µVision
Option
Step 1: Open MDKxxx.EXE and click Next Step 2: Tick I agree and click Next Step 3: Click Next
Wait
Step 4: Fill info and click Next to install Step 5: Click Finish to end the installation
13
3.3. Install µVision Software Pack
Step 1: Start µVision and click Pack Installer:
Destination folder for install package
2
3
5
4
Install successful
1
Step 2: Select S32K14x as shown above and click Install
14
3.4. Create a new project
1
2
Destination folder for storing
1
2
File name of Keil c
Step 1: Start µVision and click new project Step 2: Create file name and click Save Step 3: Select device and click OK
Step 4: Select as shown above and click OK Create successful 15
3.5. Setting parameter’s project
1
2
Step 1: Right click Source Group 1 Step 2: Fill main.c and click Add Step 3: Write main function
1
2 1
Refer 9.3. Install
µVision Software Pack
3 2
3
4
Step 4: Add Scatter File Step 5: Select S32K144_64_flash.sct Step 6: Close and re-open project
if .sct file do not appear 16
3.6. Build project
1 2
Step 1: Select Build or Rebuild Build successful
17
3.7. Install PE micro
1
Step 1: Click Options for target Step 2: Select as shown above and Step 3: Click Start Auto-Install
click Settings and wait for download
Wait
Step 4: Click Install Step 5: Click Close 18
3.7.1. Install PE micro Driver
Link Download: https://www.pemicro.com/opensda/
Step 2: Register the account and login to get file
Step 1: Click PEDriver_install.exe
Step 3: Install 19
3.8. Configuring P&E Connection Manager
Step 3: Select as shown
beside and click Ok
1
Note: The board must be
connected
2
3
Step 1: Click Options for target 5 4
Step 2: Select as shown above and
click Settings
20
3.9. Debugging
2
1
Step 1: Click Start Debug Session(Ctrl+F5) as shown above
Step 2: After PEMICRO Connection Manager appear,
click Connect
21
3.9. Debugging
Connect Debug successful
22
Thank you
23