Getting Started with the S32K148-Q176 Evaluation Board | NXP Semiconductors

Getting Started with the S32K148-Q176 Evaluation Board

Last Modified: 2019-03-19 17:10:00Supports S32K148-Q176 Evaluation Board for Automotive General Purpose

1. Out of the Box

1.1 Get to Know the Evaluation Board

Get Started with the S32K148EVB - 1.1

Get Started with the S32K148EVB - 1.1

1.2 Understanding the Header/Pinout

Get Started with the S32K148EVB - 1.2A

Get Started with the S32K148EVB - 1.2A

Get Started with the S32K148EVB - 1.2B

Get Started with the S32K148EVB - 1.2B

Get Started with the S32K148EVB - 1.2C

Get Started with the S32K148EVB - 1.2C

1.3 Understanding the CAN/LIN Connectors

Get Started with the S32K148EVB - 1.3

Get Started with the S32K148EVB - 1.3

1.4 Understanding the USB/OpenSDA

OpenSDA is a serial and debug adapter that is built into several NXP® evaluation boards. It provides a bridge between your computer (or other USB host) and the embedded target processor, which can be used for debugging, flash programming and serial communication, all over a simple USB cable.

The OpenSDA hardware consists of a circuit featuring a Kinetis® K2x microcontroller with an integrated USB controller. On the software side, it implements a mass storage device bootloader, which offers a quick and easy way to load OpenSDA applications such as flash programmers, run-control debug interfaces, serial to USB converters and more.

Jumper Setting Description
J22 1-2 RESET switch is routed RST MCU

PTA29/FTM5_CH4/LPUART2_TX/LPSPI1_SIN_LS and PTA27/FTM5_CH2/LPSPI1_SOUT/LPUART0_TX_LS by external wires

Get Started with the S32K148EVB - 1.4

Get Started with the S32K148EVB - 1.4

1.5 Understanding the JTAG Debug Connector

Get Started with the S32K148EVB - 1.5

Get Started with the S32K148EVB - 1.5

1.6 Understanding the HMI Mapping

Component S32K148
Red LED PTE21
Blue LED PTE23
Green LED PTE22
Potentiometer PTC28
SW3 PTC12
SW4 PTC13
OpenSDA UART TX PTC7 (LPUART1_TX)
OpenSDA UART RX PTC6 (LPUART1_RX)
CAN TX PTE5 (CAN0_TX)
CAN RX PTE4 (CAN0_RX)
LIN1 TX PTA3 (LPUART0_TX)
LIN1 RX PTA2 (LPUART0_RX)
LIN2 TX PTA9 (LPUART2_TX)
LIN2 RX PTA8 (LPUART2_RX)
SBC_SCK PTA28 (LPSPI1_SCK)
SBC_MISO PTA29 (LPSPI1_SIN)
SBC_MOSI PTA27 (LPSPI1_SOUT)
SBC_CS PTA26 (LPSPI1_PCS0)

2. Get Software

2.1 Download the Quick Start Package

Download S32K148EVB QSP

2.2 Download the JumpStart Firmware

Download S32K148EVB JumpStart

2.3 Get the Integrated Development Environment (IDE)

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

Download S32 DESIGN STUDIO IDE

2.4 Get the 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 example project).

FREEMASTER Tool

3. Plug It In

3.1 Set Up Jumpers

Jumper Setting Description
J7 1-2 MCU VDD domain is connected to 3.3 V
2-3 (Default) MCU VDD domain is connected to 5 V
J8 1-2 (Default) 5 V domain powered by 12 V power source
2-3 5 V domain powered by USB micro connector
J12 1-2 (Default) LIN leader option enabled for LIN1
J18 1-2 (Default) VBAT(+12 V) is routed to the input of the 3V3 switching power supply
2-3 USB power (+5 V) is routed to the input of the 3V3 switching power supply
J19 1-2 (Default) VDD is routed to VDD_MCU domain (remove in order to measure the MCU current)
J21 1-2 (Default) LIN leader option enabled for LIN2
J22 1-2 (Default) Reset switch is routed to MCU reset line
2-3 Reset switch is routed to openSDA reset line

3.2 Plug In the Power Supply

The S32K148-EVB evaluation board powers from a USB or external 12 V power supply.
USB power can be enabled with J8 (2-3) and J18 (2-3).

  1. Connect the USB cable to a PC using supplied USB cable.
  2. Connect other end of USB cable (microUSB) to micro-B port on S32K148EVB at J24.
  3. Allow the PC to automatically configure the USB drivers if needed.

Debug is done using OpenSDA through J24.

When powered using the USB, LED D10 should light green and LEDs DS2 and DS3 light orange.

4. Build, Load

4.1 Communicate with Debugger

  1. Launch the FreeMASTER application

    S32K144EVB_GS-4.1a-LAUNCH-FREEMASTER

    S32K144EVB_GS-4.1a-LAUNCH-FREEMASTER
  2. Configure the communication port through OpenSDA with a 115200 b/s speed rate:
    • To do this manually, go to Project → Options → Comm
    • To do this automatically, go to Tools → Connection Wizard

4.2 JumpStart Project Download

The FreeMASTER JumpStart project will be automatically downloaded from NXP Semiconductors once the FreeMASTER application detects the web address stored as a TSA active content in the flash.

S32K144EVB_GS-4.2-JUMPSTART-DOWNLOAD

S32K144EVB_GS-4.2-JUMPSTART-DOWNLOAD

4.3 JumpStart Project Loaded

Get Started with the S32K148EVB - 4.3A

Get Started with the S32K148EVB - 4.3A

The FreeMASTER JumpStart project description:

Get Started with the S32K148EVB - 4.3B

Get Started with the S32K148EVB - 4.3B

4.4 Import and Debug the Project to IDE

  1. Launch the S32 Design Studio for Arm® and select a default workspace or specify a new one. Then click OK

    S32K144EVB_GS-4.4a-PROJECT-IDE

    S32K144EVB_GS-4.4a-PROJECT-IDE
  2. Create a new project by selecting File → New → Project.

    Get Started with the S32K148EVB - 4.4B

    Get Started with the S32K148EVB - 4.4B
  3. Create a project name. Select the project type in the executable or library folder. Then click Next.

    You can select for project type from inside executable or library folder.

    Get Started with the S32K148EVB - 4.4C

    Get Started with the S32K148EVB - 4.4C

  4. Select Debugger Support and Library Support. Then click Finish

    Get Started with the S32K148EVB - 4.4D

    Get Started with the S32K148EVB - 4.4D

4.5 Set Up Debug Configuration

To debug your project with OpenSDA, your must first select OpenSDA.

  1. Select your project, and click Debug Configuration

    Get Started with the S32K148EVB - 4.5A

    Get Started with the S32K148EVB - 4.5A
  2. Under GDB PEMicro Interface Debugging, select the debug configuration. Then click the Debugger tab

    Get Started with the S32K148EVB - 4.5B

    Get Started with the S32K148EVB - 4.5B
  3. In Interface, select OpenSDA. If your board is plugged in, it should appear in Port. To finish, click Apply then Debug

    Get Started with the S32K148EVB - 4.5C

    Get Started with the S32K148EVB - 4.5C

4.6 Optional Debugging With P&E

  1. Click Debug Configurations

    S32K144EVB_GS-5.2a-DEBUG

    S32K144EVB_GS-5.2a-DEBUG
  2. To create a new P&E launch configuration, click the icon shown in the upper right. Then click the Debugger tab

    S32K144EVB_GS-5.2b-DEBUG

    S32K144EVB_GS-5.2b-DEBUG
  3. Click Select Device and choose a S32K148 device. Then click Apply and debug your application

    Get Started with the S32K148EVB - 4.6D

    Get Started with the S32K148EVB - 4.6D