Getting Started with the S32K144EVB | NXP Semiconductors

Getting Started with the S32K144EVB

Last Modified: 2019-05-09 16:43:00Supports S32K144-Q100 Evaluation Board for Automotive General Purpose

Contents of this document

  • 1

    Out of the Box
  • 2

    Get Software
  • 3

    Plug It In
  • 4

    Build, Run
  • 5

    Debug

1. Out of the Box

Applies for the S32K144EVB evaluation board (REV B)

1.1 Get to Know Your Evaluation Board

S32K144EVB_GS-BOARD

S32K144EVB_GS-BOARD

1.2 Understanding the Header/Pinout

S32K144EVB_GS-PINS

S32K144EVB_GS-PINS

1.3 Understanding the 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)

2. Get Software

2.1 Integrated Development Environment (IDE)

S32K144EVB performs better when using S32 Design Studio for Arm v1.3.

DOWNLOAD S32 Design Studio IDE

2.2 Run-Time Debugging Tool

S32K144EVB evaluation board performs better when using the FreeMASTER tool for run-time debugging. You can also download and install the FreeMASTER Communication Driver (source code already included in the example project).

DOWNLOAD FreeMASTER Tool

3. Plug It In

3.1 Set Up Jumpers in S32K144EVB Evaluation Board

Jumper Setting Description
J104 1-2 Reset signal to OpenSDA, use to enter into OpenSDA Bootloader mode.
2-3 (Default) Reset signal direct to the MCU, use to reset S32K144.
J107 1-2 S32K144 powered by 12 V power source.
2-3 (Default) S32K144 powered by USB micro connector.
J109/J108 1-2 (Default) Removes CAN termination resistor.

Watch the video or use the step-by-step guide, below.

Video Player is loading.
Current Time 0:00
Duration 1:13
Loaded: 13.52%
Stream Type LIVE
Remaining Time 1:13
 
1x
  • Chapters
  • descriptions off, selected
  • captions off, selected
  • en (Main), selected

3.2 Plug In the 12 V Power Supply

The S32K144EVB evaluation board powers from a USB or external 12 V power supply. By default USB power is enabled with J107 jumper (2-3 closed).

Connect the USB cable to a PC using a USB cable and connect other end of USB cable (microUSB) to mini-B port on to J7 on your S32K144EVB.

Allow the PC to automatically configure the USB drivers if needed. Debug is done using OpenSDA through J7.

Once the board is recognized, it should appear as a mass storage device in your PC with the name EVB-S32K144.

The S32K144EVB evaluation board is preloaded with a software in which red, blue and green LEDS will toggle at different rates:

S32K144EVB_GS-3.2b-LED-TOGGLE

S32K144EVB_GS-3.2b-LED-TOGGLE

4. Build, Run

Let’s take it for a test drive.

4.1 Communicate with Run-Time Debugger

S32K144EVB_GS-4.1a-LAUNCH-FREEMASTER

S32K144EVB_GS-4.1a-LAUNCH-FREEMASTER
  • Manually = Project → Options → Comm

  • Automatically = Tools → Connection Wizard

Learn more about OpenSDA at Projects and Tutorials.

4.2 FreeMASTER JumpStart Project Loaded

S32K144EVB_GS-4.3a-JUMPSTART-LOADED

S32K144EVB_GS-4.3a-JUMPSTART-LOADED

S32K144EVB_GS-4.3b-JUMPSTART-PROJECT

S32K144EVB_GS-4.3b-JUMPSTART-PROJECT

4.3 Import and Debug the Project to IDE

Watch the video to create a new project and load a code example to blink an LDE. The video also covers hoe to build and debug your project. You can also use the step-by-step guide.

Video Player is loading.
Current Time 0:00
Duration 6:35
Loaded: 2.52%
Stream Type LIVE
Remaining Time 6:35
 
1x
  • Chapters
  • descriptions off, selected
  • captions off, selected
  • en (Main), selected

    Launch the S32 Design Studio for Arm and select a default Workspace or specify a new one, then click OK.

    To create a new project, select File → New → Project

    S32K144EVB_GS-4.4b-PROJECT-IDE

    S32K144EVB_GS-4.4b-PROJECT-IDE

    Choose a project name and then select a project type, then click Next.

    S32K144EVB_GS-4.4c-PROJECT-IDE

    S32K144EVB_GS-4.4c-PROJECT-IDE

    Select Debugger and Library, then click Finish.

    S32K144EVB_GS-4.4d-PROJECT-IDE

    S32K144EVB_GS-4.4d-PROJECT-IDE

    4.4 Set Up Debug Configuration

    Select OpenSDA to debug with it.

    Select your project, and click on "Debug Configuration".

    S32K144EVB_GS-4.5a-DEBUG-CONFIG

    S32K144EVB_GS-4.5a-DEBUG-CONFIG

    Select the debug configuration under "GDB PEMicro" Interface Debugging, click the "Debugger" tab.

    S32K144EVB_GS-4.5b-DEBUG-CONFIG

    S32K144EVB_GS-4.5b-DEBUG-CONFIG

    In "Interface", select OpenSDA. If your board is plugged in, it should appear in "Port". To finish, click "Apply" then "Debug".

    S32K144EVB_GS-4.5c-DEBUG-CONFIG

    S32K144EVB_GS-4.5c-DEBUG-CONFIG

    5. Debug

    5.1 Debug Basics

    Step, Run, Suspend, Resume

    Step Into (F5)

    Step Over (F6)

    Step Return (F7)

    Run

    Suspend

    Resume (F8)

    5.2 View Variables

    Click the Variables tab. To enter different values, click in the Value field.

    5.3 View and Alter Registers

    To see CPU registers, click the Registers tab. To enter different values, click in the Value field.

    View peripheral registers in the EmbSys Registers tab:

    S32K144EVB_GS-PT2i-DEBUG-BASICS

    S32K144EVB_GS-PT2i-DEBUG-BASICS

    5.4 View and Alter Memory

    Select Add Memory Monitor and then select the base address to: 40000000

    5.5 View Memory

    5.6 Breakpoints

    To add break points, point and click in the desired location.

    S32K144EVB_GS-PT2m-DEBUG-BASICS

    S32K144EVB_GS-PT2m-DEBUG-BASICS

    5.7 Reset and Terminate the Debug Session

    To reset the program counter, select Terminate (Ctrl+F2).

    5.8 Debug with FreeMASTER

    Debug configuration is only required once. Subsequent starting of debugger does not require those steps.

    There are three options to start debugging:

    • If the Debug Configuration is still open, click Debug on the bottom right.
    • Select Run → Debug (or hit F11)
    • Select the bug icon and select …_debug.elf target

    Learn more about debugging basics at Projects and Tutorials.

    5.9 Optional - P&E Debug Configuration

    1. Select Debug Configurations:

      S32K144EVB_GS-5.2a-DEBUG

      S32K144EVB_GS-5.2a-DEBUG
    2. Create a new P&E launch configuration:

      Click to create a new P&E launch and then click Debugger.

      S32K144EVB_GS-5.2b-DEBUG

      S32K144EVB_GS-5.2b-DEBUG
    3. Select a S32K144 device and then click Apply and debug your application.

      S32K144EVB_GS-5.2c-DEBUG

      S32K144EVB_GS-5.2c-DEBUG