Friday, 19 November 2021 21:27

NXP S32K146 Evaluation Board Featured

NXP S32K146 Evaluation Board

Web Link

S32K DS 9

Jump To

Out of the Box

1.1 Get to know the S32K146 Evaluation Board for General Purpose

Evaluation board for S32K146

1.2 S32K146 Evaluation Board Features

  • Supports S32K146 144LQFP
  • Small form factor size supports up to n” x n”
  • Arduino 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
    • o microUSB or
    • o external 12 V power supply

1.3 Jumper Settings

Jumper Configuration Description
J104 1-2
2-3 (Default
Reset signal to OpenSDA, use to enter into OpenSDA Bootloader mode.
Reset signal direct to the MCU, use to reset S32K146.
J107 1-2
2-3 (Default

S32K146 powered by 12V power source.

S32K146 powered by USB micro connector.

J10

1-2

2-3 (Default)

VDD voltage is connected to 3.3 V.

VDD voltage is connected to 5 V.

1.4 HMI Mapping

Component S32K146
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)


Get Software

2.1 Integrated Development Environment (IDE)

The S32 Design Studio for Arm® is a complimentary Integrated Development Environment (IDE) for automotive and ultra-reliable Arm-based microcontrollers that enables editing, compiling and debugging of designs.

2.2 Run-Time Debugging Tool

S32K146EVB 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).

Note: Check the FreeMASTER page for the latest version.

DOWNLOAD FREEMASTER TOOL

Plug It In

3.1 Power up the Board

  • The S32K146-EVB evaluation board powers from a USB or external 12V power supply. By default USB power is enabled with J107
  • Connect the USB cable to a PC using supplied USB cable
  • Connect other end of USB cable (microUSB) to mini-B port on S32K146 at J7
S32K146 Board USB Connect
  • Allow the PC to automatically configure the USB drivers if needed.
  • Debug is done using OpenSDA through J7
  • 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 S32K146EVB
S32K146 Devices and Drivers
  • Board is preloaded with a software, in which the red, blue and green LEDs will toggle at different rates
S32K146 Devices and Drivers


Build

4.1 Flash the Out-of-Box Demo

Download the S32K146EVB_OOBE_FreeMASTER_Firmware.srec from Software and Tools tab</a > . Then drag and drop the downloaded image file into your S32K146EVB disk that is listed in your PC window.

Evaluation board for S32K146

4.2 Communicate with Run-Time Debugger

Open the FreeMASTER application on your PC. You should see Welcome page:

S32K146 FREEMASTER WELCOME

Setup communication port to “opensda” and speed to 115200 b/s:

  • Setup communication manualy:
    “Project > Options > Comm"
S32K146 BOARD OPENSDA
  • Setup communication automatically:
    “Tools > Connection Wizard”
S32K146 BOARD CONNECTION WIZARD

4.3 FreeMASTER JumpStart project download

Once the FreeMASTER application detects the web address stored as an TSA active content in the flash memory of the S32K146 MCU, the download of the FreeMASTER project from NXP Semiconductors</a > will be initiated.

S32K146 BOARD CONNECTION WIZARD

4.4 FreeMASTER JumpStart Project Loaded

S32K146 FREEMASTER BOARD DESCRIPTION

The FreeMASTER JumpStart project description:

S32K146 FREEMASTER BOARD DESCRIPTION 2

4.5 FreeMASTER JumpStart

Display main project panel, “Project > View > Project Tree“..

S32K146 FREEMASTER OPTIONS 2

Display real-time oscilloscope graph examples such as “Potentiometer“ or “Touch Sense Electrodes“.

S32K146 FREEMASTER OPTIONS 3

4.6 Create a New Project in S32 Design Studio

To create a new project for first time at Eclipse Launcher, please follow the following steps:

  • Start program: Click on “S32 Design Studio for Arm” 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</strong >”
    • Click OK
S32K146 S32DS WORKSPACE
  • Select “File > New > S32DS Application Project”
S32K146 S32DS APPLICATION PROJECT
  • Project Name:
    • Example: “FirstProject
  • Project Type:
    • Select from inside executable or library folder
  • Click on “Next
S32K146 S32DS FIRST PROJECT
  • Select “Debugger > Support and Library/SDKs Support” if needed
  • Click “Finish
S32K146 S32DS DEBUGGER

4.7 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”
S32K146 DEBUG OPENSDA
  • Select the Debug configuration under “GDB PEMicro Interface Debugging”
S32K146 DEBUG OPENSDA OPTIONS
  • Click on “Debugger” tab
  • Select OpenSDA as the interface, if your board is plugged should appear in the Port field
  • Click “Apply” and “Debug” to finish
S32K146 DEBUG OPENSDA

4.8 Create an Example from SDK

The S32 Design Studio IDE already includes the Software Development Kit for quickly develop applications on S32K1xx devices.

  • To create a project using an example go to “File > New > S32DS Project from Example”
S32K146 SDK
  • Go to the “S32K1xx SDK RTM v4.0.1” Example Projects section and select the example that wants to be used
  • In this example the “hello_world” is selected
S32K146 SDK HELLOWORLD
  • A new project would be created in the workspace
  • Click on “generate code icon” and then on “Debug”, as indicated
S32K146 SDK CODEICON
  • If run correctly, the LED should start blinking red and green

The complete documentation of the SDK can be found in:
C:\NXP\S32DS_ARM_v2018.R1\S32DS\S32SDK_S32K14x_EAR_0.8.6\doc\Start_here.html

For more information about the use of the SDK go click on the following link for an SDK training.

 

Read 9187 times Last modified on Saturday, 20 November 2021 15:44