Quick Start Guide
Quick Start Guide
7V 250mAh Rechargeable in
stock now. Starting at $0.034. This EEMB part is fully warrantied and traceable.
00000005981LF-000
S32K144EVB-Q100
EOS Power
NXP SEMICONDUCTORS
Buy Now
Buy Now
Give us a call
1-855-837-4225 1-415-281-3866
International: 1-415-281-3866
1-555-555-5555
Arrow
Arrow Electronics,
Electronics, Inc
Verical Division
9201 East Dry Creek Road
P.O. Box 740970
Centennial,
Los Angeles, CO 80112
CA 90074-0970
This coversheet was created by Verical, a division of Arrow Electronics, Inc. (“Verical”). The attached document was created by the part supplier,
not Verical, and is provided strictly 'as is.' Verical, its subsidiaries, affiliates, employees, and agents make no representations or warranties
regarding the attached document and disclaim any liability for the consequences of relying on the information therein. All referenced brands,
product names, service names, and trademarks are the property of their respective owners.
S32K144 EVB
QUICK START GUIDE
REV4.3
APPLIES FOR: S32K144 EVB (SCH-29248 REV B)
EXTERNAL USE
Contents:
1 EXTERNAL USE
Get to know S32K144-EVB
CAN Communication Bus
LIN Communication Bus
OpenSDA USB
SBC UJA1169
Reset Button
External Power Supply (5-12V) OpenSDA MCU
OpenSDA JTAG
J2 Header
J3 Header
J14 SWD connector.
J1 Header
J4 Header
S32K144 MCU
J6 Header
J5 Header
Touch electrodes
3 EXTERNAL USE
Header/Pinout Mapping for S32K144 PIN PORT FUNCTION J2 PIN PORT FUNCTION
PIN PORT FUNCTION J3 PIN PORT FUNCTION J2-19 PTE10/PTA3 D15/I2C_SDA J2-20 NC GPIO
J3-02 PTB6* GPIO J3-01 VIN J2-17 PTE11/PTA2 D14/I2C_CLK J2-18 NC GPIO
J3-04 PTB7* GPIO J3-03 IOREF J2-15 ANALOGUE REF J2-16 PTA14 GPIO
J3-06 PTE0 GPIO J3-05 PTA5 RESET J2-13 GND J2-14 PTE7 GPIO
J3-08 PTE9 GPIO J3-07 3V3 J2-11 PTB2 D13/SPI_SCK J2-12 PTC13 GPIO
J3-10 PTC5 GPIO J3-09 5V J2-09 PTB3 D12/SPI_SIN J2-10 PTC12 GPIO
J3-12 PTC4 GPIO J3-11 GND J2-07 PTB4 D11/SPI_SOUT J2-08 PTE8 GPIO
J3-14 PTA10 GPIO J3-13 GND J2-05 PTB5 D10/SPI_CS J2-06 PTD0 GPIO
J3-16 PTA4 GPIO J3-15 VIN J2-03 PTD14 D9/PWM J2-04 PTD16 GPIO
J2 J2-01 PTD13 D8/PWM J2-02 PTD15 GPIO
5 EXTERNAL USE
HMI mapping
Component S32K144
Red LED PTD15 (FTM0 CH0)
Blue LED PTD0(FTM0 CH2)
Green LED PTD16(FTM0 CH1)
Potentiometer PTC14 (ADC0_SE12)
SW2 PTC12
SW3 PTC13
OpenSDA UART TX PTC7(LPUART1_TX)
OpenSDA UART RX PTC6(LPUART1_RX)
CAN TX PTE5(CAN0_TX)
CAN RX PTE4 (CAN0_RX)
LIN TX PTD7(LPUART2_TX)
LIN RX PTD6 (LPUART2_RX)
SBC_SCK PTB14 (LPSPI1_SCK)
SBC_MISO PTB15(LPSPI1_SIN)
SBC_MOSI PTB16(LPSPI1_SOUT)
SBC_CS PTB17(LPSPI1_PCS3)
6 EXTERNAL USE
S32K144 EVB
JUMPSTART
7 EXTERNAL USE
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)
8 EXTERNAL USE
Step 1: Power up the Board – Is it powered on correctly?
9 EXTERNAL USE
Step 1: Power up the Board – Is it powered on correctly?
10 EXTERNAL USE
S32K144 EVB
JUMPSTART BASED
ON THE FREEMASTER
TOOL
11 EXTERNAL USE
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
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
Setup serial connection in the FreeMASTER tool
OR
14 EXTERNAL USE
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
The FreeMASTER JumpStart project is loaded
16 EXTERNAL USE
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
Touch Sense Electrodes
or log1. User can connect e.g. LED diodes to these ouput pins.
Potentiometer
▪ Display real-time oscilloscope graph examples such as „Potentiometer“ or „Touch Sense Electrodes“.
18 EXTERNAL USE
INTRODUCTION TO
OPENSDA
19 EXTERNAL USE
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.
Using the MSD Flash Programmer Using the Virtual Serial Port
1. Locate the .srec file of your project , file is under the 1. Determine the symbolic name assigned to the EVB-S32K144
Debug folder of the S32DS project. virtual serial port. In Windows open Device Manager and look
2. Copy & paste or drag & drop one of the .srec files to for the COM port named “PEMicro/Freescale – CDC Serial
the EVB-S32K144 drive Port”.
2. Open the serial terminal emulation program of your choice.
The new application should now be running on the Examples for Windows include Tera Term, PuTTY, and
S32K144 EVB. Starting with v1.03 of the MSD Flash HyperTerminal
Programmer, you can program repeatedly without the 3. Press and release the Reset button (SW0) at anytime to
need to unplug and reattach the USB cable before restart the example application. Resetting the embedded
reprogramming. application will not affect the connection of the virtual serial
port to the terminal program.
Drag one of the .srec code for the S32K144 the S32K144
4. It is possible to debug and communicate with the serial port
EVB board over USB to reprogram the preloaded code
at the same time, no need to stop the debug.
example to another example.
NOTE: Flash programming with the MSD Flash Programmer is NOTE: Refer to the OpenSDA User’s Guide for a description of a known
currently only supported on Windows operating systems. Windows issue when disconnecting a virtual serial port while the COM
However, the virtual serial port has been successfully tested on port is in use.
Windows, Linux and Mac operating systems.
21 EXTERNAL USE
INSTALLING S32DS
22 EXTERNAL USE
Download S32DS
http://www.nxp.com/S32DS
23 EXTERNAL USE
CREATE A NEW
PROJECT IN S32
DESIGN STUDIO
24 EXTERNAL USE
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
Create New Project: Top Menu Selection
• File – New –Project
26 EXTERNAL USE
Create New Project: S32DS Project
• Project Name:
− Example: FirstProject
• Project Type:
− Select
from inside
executable or library folder
• Next
27 EXTERNAL USE
Create New Project: S32DS Project
• Select Debugger Support and Library Support
• Click Finish
28 EXTERNAL USE
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
OpenSDA Configuration
• Select the Debug configuration under GDB PEMicro Interface Debugging
• Click on Debugger tab
30 EXTERNAL USE
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
DEBUG BASICS
32 EXTERNAL USE
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
Debug Basics: Step, Run, Suspend, Resume
• Step Into (F5)
• Run
• Suspend
• Resume (F8)
34 EXTERNAL USE
Debug Basics: View & Alter Variables
• View variables in “Variables” tab.
• Click on a value to allow typing in a different value.
35 EXTERNAL USE
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
Debug Basics: View & Alter Memory
• Add Memory Monitor
• View Memory
37 EXTERNAL USE
Debug Basics: Breakpoints
Add Breakpoint: Point and Click
• light blue dot represents debugger breakpoint
38 EXTERNAL USE
Debug Basics: Reset & Terminate Debug Session
• Reset program counter
• Terminate Ctl+F2()
39 EXTERNAL USE
CREATE A P&E DEBUG
CONFIGURATION
(OPTIONAL)
40 EXTERNAL USE
New P&E debug configuration
• Click in debug configurations
41 EXTERNAL USE
New P&E debug configuration
• Create a new P&E launch configuration Click on the debugger tab.
42 EXTERNAL USE
New P&E debug configuration
• Select S32K144 device
Select
device