NXP S32K144 EVB Board for Automotive General Purpose User Guide

October 30, 2023
NXP

NXP S32K144 EVB Board for Automotive General Purpose

NXP-S32K144-EVB-Board-for-Automotive-General

S32K144 EVB Product Information

The S32K144 EVB is an evaluation board designed for external use and is compatible with Arduino pins. It features CAN communication bus, SBC UJA1169 external power supply (5-12V), OpenSDA JTAG, touch electrodes, RGB LED, LIN communication bus, OpenSDA USB, reset button, potentiometer, and user buttons. The board also includes a S32K144 MCU and various headers for connectivity.

Product Usage Instructions

  1. Download the necessary software and drivers required for the S32K144 EVB.
  2. Connect the SBC UJA1169 external power supply to the board’s J3 header and power on the board.
  3. To program the board, connect a USB cable to the OpenSDA USB connector.
  4. Use the OpenSDA JTAG for debugging and programming.
  5. The touch electrodes can be used for user input.
  6. Use the potentiometer and user buttons for additional user input.
  7. The RGB LED can be used for visual output.
  8. Refer to the header/pinout mapping chart for connectivity options.
  9. Adjust jumper settings as needed for specific configurations.

S32K144 EVB
QUICK START GUIDE
REV4.3 APPLIES FOR: S32K144 EVB (SCH-29248 REV B)
EXTERNAL USE
Downloaded from Arrow.com.

Contents:
· Get to Know S32K144 EVB · JumpStart Setup · JumpStart based on the FreeMASTER tool · Introduction to OpenSDA · Creating a new S32DS project for S32K144 · S32DS Debug basics · Create a P&E debug configuration

EXTERNAL USE

Downloaded from Arrow.com.

Get to know S32K144-EVB
CAN Communication Bus
SBC UJA1169 External Power Supply (5-12V)
OpenSDA JTAG
J3 Header J4 Header S32K144 MCU J5 Header

Touch electrodes

2 EXTERNAL USE
Downloaded from Arrow.com.

RGB LED

LIN Communication Bus OpenSDA USB Reset Button OpenSDA MCU J2 Header J14 SWD connector. J1 Header
J6 Header
Potentiometer User Buttons

S32K144 EVB Features:
· Supports S32K144 100LQFP · Small form factor size supports up to 6″ x 4″ · ArduinoTM UNO footprint-compatible with expansion “shield” support · 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) and two touch electrodes · Flexible power supply options
· microUSB or · external 12V power supply
3 EXTERNAL USE
Downloaded from Arrow.com.

Header/Pinout Mapping for S32K144

PIN J3-02 J3-04 J3-06 J3-08 J3-10 J3-12 J3-14 J3-16

PORT PTB6 PTB7 PTE0 PTE9 PTC5 PTC4 PTA10 PTA4

FUNCTION

J3 PIN

GPIO

J3-01

GPIO

J3-03

GPIO

J3-05

GPIO

J3-07

GPIO

J3-09

GPIO

J3-11

GPIO

J3-13

GPIO

J3-15

PORT PTA5

FUNCTION VIN
IOREF RESET
3V3 5V GND GND VIN

PIN J4-02 J4-04 J4-06 J4-08 J4-10 J4-12 J4-14 J4-16

PORT PTC7 PTC6 PTB17 PTB14 PTB15 PTB16 PTC14 PTC3

FUNCTION

J4 PIN

GPIO

J4-01

GPIO

J4-03

GPIO

J4-05

GPIO

J4-07

GPIO

J4-09

GPIO

J4-11

GPIO

J4-13

GPIO

J4-15

PORT

J3 FUNCTION

PTD4

ADC0

PTB12

ADC1

PTB0

ADC2

PTB1

ADC3

PTA6/PTE11/PTA2 PTC0/PTE10/PTA3

J4 ADC4
ADC5

PTE2

ADC6

PTE6

ADC7

PIN J5-02 J5-04 J5-06 J5-08 J5-10 J5-12 J5-14 J5-16 J5-18 J5-20

PORT PTE16 PTE15 PTE14 PTE13
PTE1 PTD7 PTD6 PTC15

FUNCTION

J5 PIN

PORT

J5 FUNCTION

GPIO

J5-01 PTA15/PTD11

ADC8

GPIO

J5-03 PTA16/PTD10

ADC9

GPIO

J5-05 PTA1

ADC10

GPIO

J5-07 PTA0

ADC11

VDD

J5-09 PTA7

ADC12

GND

J5-11 PTB13

ADC13

GPIO

J5-13 PTC1

ADC14

GPIO

J5-15 PTC2

ADC15

GPIO

J5-17 NC

GPIO

GPIO

J5-19 NC

N/A

PIN J2-19 J2-17 J2-15 J2-13 J2-11 J2-09 J2-07 J2-05
J2 J2-03 J2-01

PORT

FUNCTION

J2 PIN

PTE10/PTA3 D15/I2C_SDA

J2-20

PTE11/PTA2 D14/I2C_CLK

J2-18

ANALOGUE REF

J2-16

GND

J2-14

PTB2

D13/SPI_SCK

J2-12

PTB3

D12/SPI_SIN

J2-10

PTB4

D11/SPI_SOUT

J2-08

PTB5

D10/SPI_CS

J2-06

PTD14

D9/PWM

J2-04

PTD13

D8/PWM

J2-02

PORT NC NC PTA14 PTE7 PTC13 PTC12 PTE8 PTD0 PTD16 PTD15

PIN J1-15
J1 J1-13 J1-11 J1-09 J1-07 J1-05 J1-03
J6 J1-01
PIN J6-19 J6-17 J6-15 J6-13 J6-11 J6-09 J6-07 J6-05 J6-03 J6-01

PORT

FUNCTION

J1 PIN

PTC11/PTE8

D7

J1-16

PTC10/PTC3

D6

J1-14

PTB11

D5

J1-12

PTB10

D4

J1-10

PTB9

D3

J1-08

PTB8

D2

J1-06

PTA3

D1

J1-04

PTA2

D0

J1-02

PORT PTA9 PTA8 PTE12 PTD17 PTC9 PTC8 PTD8 PTD9 PTD2 PTD0

FUNCTION

J6 PIN

D14

J6-20

D15

J6-18

D16

J6-16

D17

J6-14

D18

J6-12

D19

J6-10

D20

J6-08

D21

J6-06

GPIO

J6-04

GPIO

J6-02

PORT PTE3 PTD3 PTD5 PTD12 PTD11 PTD10 PTA17 PTA11
PORT PTE4 PTE5 PTA12 PTA13
PTC16 PTC17 PTD3 PTD1

4 EXTERNAL USE
Downloaded from Arrow.com.

Arduino compatible pins NXP pins

*0ohm resistor is not connected

FUNCTION GPIO GPIO GPIO GPIO GPIO GPIO GPIO GPIO GPIO GPIO
FUNCTION GPIO GPIO GPIO GPIO GPIO GPIO GPIO GPIO
FUNCTION GPIO GPIO GPIO GPIO GND VDD GPIO GPIO GPIO GPIO

Jumper Settings

Jumper
J104
J107
J109/J108

Configuration
1-2
2-3 (Default) 1-2
2-3 (Default) 1-2 (Default)

Description
Reset signal to OpenSDA, use to enter into OpenSDA Bootloader mode
Reset signal direct to the MCU, use to reset S32K144.
S32K144 powered by 12V power source.
S32K144 powered by USB micro connector. Removes CAN termination resistor

5 EXTERNAL USE
Downloaded from Arrow.com.

HMI mapping

6 EXTERNAL USE
Downloaded from Arrow.com.

Component
Red LED Blue LED Green LED Potentiometer SW2 SW3 OpenSDA UART TX OpenSDA UART RX CAN TX CAN RX LIN TX LIN RX SBC_SCK SBC_MISO SBC_MOSI SBC_CS

S32K144
PTD15 (FTM0 CH0) PTD0(FTM0 CH2) PTD16(FTM0 CH1) PTC14 (ADC0_SE12) PTC12 PTC13 PTC7(LPUART1_TX) PTC6(LPUART1_RX) PTE5(CAN0_TX) PTE4 (CAN0_RX) PTD7(LPUART2_TX) PTD6 (LPUART2_RX) PTB14 (LPSPI1_SCK) PTB15(LPSPI1_SIN) PTB16(LPSPI1_SOUT) PTB17(LPSPI1_PCS3)

S32K144 EVB
JUMPSTART
7 EXTERNAL USE
Downloaded from Arrow.com.

Step 1: Power up the Board ­ EVB Power Supplies
· The S32K144-EVB evaluation board powers from a USB or external 12V power supply. By default USB power is enabled with J107 (check slide 5)
· Connect the USB cable to a PC using supplied USB cable .
· Connect other end of USB cable (microUSB) to mini-B port on FRDM-KEA at J7
· Allow the PC to automatically configure the USB drivers if needed
· Debug is done using OpenSDA through J7
8 EXTERNAL USE
Downloaded from Arrow.com.

Step 1: Power up the Board ­ Is it powered on correctly?
· When powered through USB, LEDs D2 and D3 should light green · Once the board is recognized, it should appear as a mass storage
device in your PC with the name EVB-S32K144.
9 EXTERNAL USE
Downloaded from Arrow.com.

Step 1: Power up the Board ­ Is it powered on correctly?
· Board is preloaded with a software, in which the red, blue and green leds will toggle at different rates.
10 EXTERNAL USE
Downloaded from Arrow.com.

S32K144 EVB
JUMPSTART BASED
ON THE FREEMASTER TOOL
11 EXTERNAL USE
Downloaded from Arrow.com.

Install the FreeMASTER tool
Download and install the FreeMASTER PC application www.nxp.com/FreeMASTER . Open the FreeMASTER application on your PC. You should see Welcome page:
12 EXTERNAL USE
Downloaded from Arrow.com.

Power up the EVB board
Powers the S32K144EVB evaluation board from a USB. By default, the USB power is enabled by J107 jumper (2-3 closed).
Connect the USB cable to a PC and connect micro USB connector of the USB cable to micro-B port J7 on the S32K144EVB.
Allow the PC to automatically configure the USB drivers if needed.
When EVB is powered from USB, LEDs D2 and D3 should light green.
The EVB board is preloaded with a software toggling the RGB LED colours periodically between RED-GREEN-BLUE.
13 EXTERNAL USE
Downloaded from Arrow.com.

Setup serial connection in the FreeMASTER tool
Setup communication port to ,,opensda” and speed to 115200 b/s:
Setup communication manualy: ,,Project > Options > Comm” OR
Setup communication automatically: ,,Tools > Connection Wizard”
14 EXTERNAL USE
Downloaded from Arrow.com.

The FreeMASTER JumpStart project will be automaticaly downloaded from www.nxp.com
Once the FreeMASTER application detects the web address stored as an TSA active content in the flash memory of the S32K144 MCU, the download of the FreeMASTER project from www.nxp.com will be initiated.
15 EXTERNAL USE
Downloaded from Arrow.com.

The FreeMASTER JumpStart project is loaded
16 EXTERNAL USE
Downloaded from Arrow.com.

The FreeMASTER JumpStart project description

Pins of the J2, J1 and J6 connectors are configured as outputs. By

single click on each pin you can change their logical level to log0 or log1. User can connect e.g. LED diodes to these ouput pins.

Touch Sense Electrodes

Potentiometer

RGB LED
Pins of the J3, J4 and J5 connectors are configured as inputs. Logical level (log0/log1) is visualised for all connector pins.
User can connect e.g. push-button keyboard to these input pins. 17 EXTERNAL USE
Downloaded from Arrow.com.

Mechanical Buttons

Links to S32K14x docs: Fact Sheet Data Sheet Reference Manual Product Brief S32K144EVB schematic S32K144EVB Quick Start
Guide Tools:
FreeMASTER
S32 Design Studio IDE S32K144EVB OOBE source
files

The FreeMASTER JumpStart oscilloscope feature examples
Display main project panel ,,Project > View > Project Tree”.
Display real-time oscilloscope graph examples such as ,,Potentiometer” or ,,Touch Sense Electrodes”.

Analog values from potentiometer.
18 EXTERNAL USE
Downloaded from Arrow.com.

Responses from touch sense electrodes.

INTRODUCTION TO OPENSDA
19 EXTERNAL USE
Downloaded from Arrow.com.

Introduction to OpenSDA: 1 of 2
OpenSDA is an open-standard serial and debug adapter. It bridges serial and debug communications between a USB host and an embedded target processor. OpenSDA software includes a flash-resident USB mass-storage device (MSD) bootloader and a collection of OpenSDA Applications. S32K144 EVB comes with the MSD Flash Programmer OpenSDA Application preinstalled. Follow these instructions to run the OpenSDA Bootloader and update or change the installed OpenSDA Application.

Enter OpenSDA Bootloader Mode
1. Unplug the USB cable if attached 2. Set J104 on position 1-2. 3. Press and hold the Reset button (SW5) 4. Plug in a USB cable (not included) between a
USB host and the OpenSDA USB connector (labeled “SDA”) 5. Release the Reset button
A removable drive should now be visible in the host file system with a volume label of BOOTLOADER. You are now in OpenSDA Bootloader mode.
IMPORTANT NOTE: Follow the “Load an OpenSDA Application” instructions to update the MSD Flash Programmer on your S32K144 EVB to the latest version.
20 EXTERNAL USE
Downloaded from Arrow.com.

Load an OpenSDA Application
1. While in OpenSDA Bootloader mode, double-click SDA_INFO.HTML in the BOOTLOADER drive. A web browser will open the OpenSDA homepage containing the name and version of the installed Application. This information can also be read as text directly from SDA_INFO.HTML
2. Locate the OpenSDA Applications 3. Copy & paste or drag & drop the MSD Flash Programmer
Application to the BOOTLOADER drive 4. Unplug the USB cable and plug it in again. The new
OpenSDA Application should now be running and a S32K144 EVB drive should be visible in the host file system
You are now running the latest version of the MSD Flash Programmer. Use this same procedure to load other OpenSDA Applications.

Introduction to OpenSDA: 2 of 2

The MSD Flash Programmer is a composite USB application that provides a virtual serial port and an easy and convenient way to program applications into the KEA MCU. It emulates a FAT16 file system, appearing as a removable drive in the host file system with a volume label of EVB-S32K144. Raw binary and Motorola S-record files that are copied to the drive are programmed directly into the flash of the KEA and executed automatically. The virtual serial port enumerates as a standard serial port device that can be opened with standard serial terminal applications.

Using the MSD Flash Programmer
1. Locate the .srec file of your project , file is under the Debug folder of the S32DS project.
2. Copy & paste or drag & drop one of the .srec files to the EVB-S32K144 drive
The new application should now be running on the S32K144 EVB. Starting with v1.03 of the MSD Flash Programmer, you can program repeatedly without the need to unplug and reattach the USB cable before reprogramming.
Drag one of the .srec code for the S32K144 the S32K144 EVB board over USB to reprogram the preloaded code example to another example.
NOTE: Flash programming with the MSD Flash Programmer is currently only supported on Windows operating systems. However, the virtual serial port has been successfully tested on Windows, Linux and Mac operating systems.
21 EXTERNAL USE
Downloaded from Arrow.com.

Using the Virtual Serial Port
1. Determine the symbolic name assigned to the EVB-S32K144 virtual serial port. In Windows open Device Manager and look for the COM port named “PEMicro/Freescale ­ CDC Serial Port”.
2. Open the serial terminal emulation program of your choice. Examples for Windows include Tera Term, PuTTY, and HyperTerminal
3. Press and release the Reset button (SW0) at anytime to restart the example application. Resetting the embedded application will not affect the connection of the virtual serial port to the terminal program.
4. It is possible to debug and communicate with the serial port at the same time, no need to stop the debug.
NOTE: Refer to the OpenSDA User’s Guide for a description of a known Windows issue when disconnecting a virtual serial port while the COM port is in use.

INSTALLING S32DS
22 EXTERNAL USE
Downloaded from Arrow.com.

Download S32DS
Download S32DS from:
http://www.nxp.com/S32DS
23 EXTERNAL USE
Downloaded from Arrow.com.

CREATE A NEW PROJECT IN S32 DESIGN STUDIO
24 EXTERNAL USE
Downloaded from Arrow.com.

Create New Project: First Time ­ Select a Workspace
· Start program: Click on “S32 Design Studio for ARM v1.3” icon · Select workspace:
– Choose default (see below example) or specify new one – Suggestion: Uncheck the box “Use this as the default and do not ask again” – Click OK
25 EXTERNAL USE
Downloaded from Arrow.com.

Create New Project: Top Menu Selection
· File ­ New ­Project
26 EXTERNAL USE
Downloaded from Arrow.com.

Create New Project: S32DS Project
· Project Name:
– Example: FirstProject
· Project Type:
– Select from inside executable or library folder
· Next
27 EXTERNAL USE
Downloaded from Arrow.com.

Create New Project: S32DS Project
· Select Debugger Support and Library Support · Click Finish
28 EXTERNAL USE
Downloaded from Arrow.com.

OpenSDA Configuration
· To Debug your project with OpenSDA, it is necessary to select the OpenSDA in the Debug Configuration.
· Select your project, and click on debug configuration
29 EXTERNAL USE
Downloaded from Arrow.com.

OpenSDA Configuration
· Select the Debug configuration under GDB PEMicro Interface Debugging · Click on Debugger tab
30 EXTERNAL USE
Downloaded from Arrow.com.

OpenSDA Configuration
· Select OpenSDA as the interface, if your board is plugged should appear in the Port field.
· Click Apply and debug to finish.
31 EXTERNAL USE
Downloaded from Arrow.com.

DEBUG BASICS
32 EXTERNAL USE
Downloaded from Arrow.com.

Debug Basics: Starting the Debugger
· Debug configuration is only required once. Subsequent starting of debugger does not require those steps.
· Three options to start debugger:
– If the “Debug Configuration” has not been closed, click on “Debug” button on bottom right – Select Run ­ Debug (or hit F11)
Note: This method currently selects the desktop target (project.elf) and gives an error. Do not use until this is changed. – Recommended Method: Click on pull down arrow for bug icon and select …_debug.elf target
33 EXTERNAL USE
Downloaded from Arrow.com.

Debug Basics: Step, Run, Suspend, Resume
· Step Into (F5) · Step Over (F6) · Step Return (F7) · Run · Suspend · Resume (F8)
34 EXTERNAL USE
Downloaded from Arrow.com.

Debug Basics: View & Alter Variables
· View variables in “Variables” tab. · Click on a value to allow typing in a different value.
35 EXTERNAL USE
Downloaded from Arrow.com.

Debug Basics: View & Alter Registers
· View CPU registers in the “Registers” tab · Click on a value to allow typing in a different value
· View peripheral registers in the EmbSys Registers tab
36 EXTERNAL USE
Downloaded from Arrow.com.

Debug Basics: View & Alter Memory
· Add Memory Monitor
· Select Base Address to Start at : 40000000 · View Memory
37 EXTERNAL USE
Downloaded from Arrow.com.

Debug Basics: Breakpoints
Add Breakpoint: Point and Click · light blue dot represents debugger breakpoint
38 EXTERNAL USE
Downloaded from Arrow.com.

Debug Basics: Reset & Terminate Debug Session
· Reset program counter · Terminate Ctl+F2()
39 EXTERNAL USE
Downloaded from Arrow.com.

CREATE A P&E DEBUG CONFIGURATION (OPTIONAL)
40 EXTERNAL USE
Downloaded from Arrow.com.

New P&E debug configuration
· Click in debug configurations
41 EXTERNAL USE
Downloaded from Arrow.com.

New P&E debug configuration
· Create a new P&E launch configuration

Click on the debugger tab.

Click to create a new P&E launch

42 EXTERNAL USE
Downloaded from Arrow.com.

New P&E debug configuration
· Select S32K144 device
Select device
· Click Apply and debug your application
43 EXTERNAL USE
Downloaded from Arrow.com.

Downloaded from Arrow.com.

References

Read User Manual Online (PDF format)

Loading......

Download This Manual (PDF format)

Download this manual  >>

Related Manuals