Start Developing With S32K388EVB-Q289

上次修改时间: 2024-10-29 11:45:00支持 S32K388EVB-Q289汽车通用评估板

本文档内容

  • 1

    Out of the Box
  • 2

    Get Software
  • 3

    Plug It In
  • 4

    Build, Debug

1. Out of the Box

1.1 Get to Know the S32K388EVB-Q289 Evaluation Board

S32K388EVB-Q289 Evaluation Board Top View

S32K388EVB-Q289 Evaluation Board Top View

S32K388EVB-Q289 Callouts

S32K388EVB-Q289 Callouts

1.2 Block Diagram Features

S32K388EVB-Q289 Block Diagram

S32K388EVB-Q289 Block Diagram

2. Get Software

You can watch the video or follow the below step-by-step guide for install the software and set up your S32K3X8EVB-Q289 board:

As first step, sign in at nxp.com with your credentials.

2.1 Get S32 Design Studio for S32 Platform IDE

Download and install S32 Design Studio for S32 Platform.

Download S32DS IDE

S32DS3.6.2 Download S32DS3.6.2 Download

2.2 Downloading the Real-Time Drivers (RTD)

Download S32K3_S32M27x Real-Time Drivers ASR R21-11 Version 5.0.0.

RTD Download

RTD Download

RTD Download

RTD Download

RTD Download

RTD Download

2.3 Install the RTD Drivers

In S32DS, go to Help → S32DS Extensions and Updates from the top menu to open the S32DS Extensions and Updates dialogue. Click on Add Update Sites and browse for downloaded RTD *.zip.

Add Update Sites

Add Update Sites

Find, select, and install (all) S32K3 Real-Time Drivers ASR R21-11 Version 5.0.0.

RTD Install

RTD Install

Once installation finish, restart S32DS.

2.4 Get FreeMASTER Run-Time Debug Tool

S32K388EVB-Q289 performs better when using the FreeMASTER Run-Time Debugging Tool.

Download and install FreeMASTER Run-Time Debugging Tool

FreeMASTER Tool Download

FreeMASTER Tool Download

In S32DS, go to Help → S32DS Extensions and Updates from the top menu to open the S32DS Extensions and Updates dialogue.

Select and install the FreeMASTER Communication driver.

FreeMASTER Driver Install FreeMASTER

FreeMASTER Driver Install FreeMASTER

Once installation finishes, restart the S32DS.

3. Plug It In

3.1 Set Up Jumpers to the Default State

Set Up Jumpers in S32K388EVB-Q289 Evaluation Board.

Default Jumpers

Default Jumpers
Part Number Package Description Internal Flash RAM EEPROM
FS26/SBC Power Supply J9 CLOSED FS26_WAKE2 routed to RESET_MCU
J10 CLOSED FS26 PGOOD signal connected
J32 CLOSED VBAT is routed to FS26 interface and VSUP domain
J52 1-2 FS26 Debug option selection
J54 1-2, 5-6, 7-8 FS26 FCCU connections between VDD_HV_A_PERH and VDDIO signal and FS26_FCCU to the FCCU MCU signals
J66 1-2 FS26 WAKE1 routed to PTA8 WKUP pin of the MCU
J827 CLOSED FS26_LDO1_OUT connected to VDD_HV_A. 5 volts output
J828 CLOSED FS26_VCORE connected to V15 MCU 1.5 Volts output
J829 CLOSED FS26_LDO2_OUT connected to VDD_HV_B. 3.3 volts output
J850 CLOSED FS26_VTRK1 connected to FS26_P5V0
PF5600 +3.3 Volts output J80 OPEN FS5600_I2C_SDA and FS5600_I2C_SCL signals
J82 CLOSED PF5600 EN1 routed to VBAT_SW after pull-up resistor
J83 CLOSED PF5600 EN2 routed to VBAT_SW after pull-up resistor
J776 CLOSED PF5600 P3V3SW_OUT1 routed to multiple 3.3V interfaces Voltage output = 3.3V
J777 CLOSED PF5600 P3V3SW_OUT2 routed to multiple 3.3V interfaces Voltage output = 3.3V
J831 CLOSED PF5600 Supply level shifter with VDD_HV_A for the I2C MCU signals.
PF5023 J380 CLOSED PF50_SW1OUT_1V2 enables the 1.2V output
J386 CLOSED PF50_SW1OUT_1V8 enables the 1.8V output
J388 1-2 PF5020 VDDIO_PWRAUX choose the P3V3SW_OUT1 power supply for the PF5020 VIN
J389 2-3 PF5020 output enable power sources via pull-up
J390 CLOSED PF50_SW1OUT_1V1 enables the 1.1V output
J788 OPEN PF5020 RESET disconnected from RESET_MCU signal
S32K388 MCU Power Supply J20 CLOSED V11 MCU connection. This jumper enables the connection between V11 supply and MCU
J91 CLOSED VDD_HV_DCDC enables the DCDC convertor
J92 CLOSED Connection between selected VDD_HV_B and the VDD_HV_B_MCU
J93 1-2 VDD_HV_B supply from FS26_LDO2_OUT
J100 CLOSED VDD_HV_A_PERH connected to VDD_HV_A
J102 CLOSED VDD_HV_B_PERH connected to VDD_HV_B
J103 CLOSED V15 MCU connection. This jumper enables the connection between V15 supply and MCU
J104 CLOSED Connection between selected VDD_HV_A and the VDD_HV_A_MCU
J108 1-2 V11/V15 switch. V11_MCU voltage selection for S332K388 MCU. V15 option only for compatibility with the S32K358 MCU.
J109 CLOSED Connection between selected VDD_HV_A_MCU and the VREFH_MCU
J115 1-2 VDD_HV_A supply from FS26_LDO1_OUT
J118 1-2 V15_MCU supply from FS26_VCORE
J778 1-2 Select if SMPS is used or not. In case SMPS is not required VDD_DCDC must be connected to VDD_HV_B_MCU
J847 CLOSED VDD_REFH_PERH connectede to VDD_HV_A
JTAG J29 CLOSED Voltage supply from VDD_HV_A_PERH to VDD_SWD/JTAG to supply JTAG interfaces
ON-board debugger J822 CLOSED Enables the power supply of the VDDIO_SDA with the VDD_HV_A_PERH
J848 CLOSED Enables the SDA reset with the RESET_MCU signal
SABRE Connector J431 CLOSED Enables the supply from P3V3SW_OUT1 to SABRE connector
GMAC0 TJA1120_A J361 OPEN Enables the power supply of the P3V3_TJA1120_A
U97-1 + GMAC0 pin strapping Config0 - pull-up
U97-2 + GMAC0 pin strapping Config1 - pull-up
U97-3 + GMAC0 pin strapping Config2 - pull-up
U97-4 - GMAC0 pin strapping Config3 - pull-down
U97-5 0 GMAC0 pin strapping Config4 - open
U97-6 + GMAC0 pin strapping Config5 - pull-up
U97-7 0 GMAC0 pin strapping Config6 - open
U97-8 + GMAC0 pin strapping TJA1120_RST - pull-up
GMAC1 TJA1120_B J364 CLOSED Enables the power supply of the P3V3_TJA1120_B
U98-1 + GMAC1 pin strapping Config0 - pull-up
U98-2 + GMAC1 pin strapping Config1 - pull-up
U98-3 + GMAC1 pin strapping Config2 - pull-up
U98-4 - GMAC1 pin strapping Config3 - pull-down
U98-5 0 GMAC1 pin strapping Config4 - open
U98-6 + GMAC1 pin strapping Config5 - pull-up
U98-7 + GMAC1 pin strapping Config6 - open
U98-8 + GMAC1 pin strapping TJA1120_RST - pull-up
CAN0 Interface J106 CLOSED Enables the supply of the CAN0 transceiver from VBAT_SW
J347 CLOSED Enable 5 volts supply from P5V0SW_OUT1 to CAN0 transceiver
J804 2-3 CAN0 tranceiver VIO derived from VDD_HV_B_PERH
CAN1 Interface J805 CLOSED Enable 5 volts supply from P5V0SW_OUT1 to CAN1 transceiver
J806 CLOSED Enables the supply of the CAN1 transceiver from VBAT_SW
J807 2-3 CAN1 tranceiver VIO derived from VDD_HV_B_PERH
LIN Interface J674 1-2 LIN tranceivers VIO derived from VDD_HV_B_PER
J791 CLOSED LIN4 Commander* mode
J795 CLOSED LIN3 Commander* mode
J796 CLOSED LIN2 Commander* mode
J797 CLOSED LIN1 Commander* mode
J798 CLOSED BAT supply to TJA1124 LIN transceiver
ARDUINO Connector J698 1-2 BEMF_C/PHC_I signal routed to PTE0 pin
J699 1-2 BEMF_B/PHB_I signal routed to PTE1 pin
J703 1-2 VDD_IO pin connected to VDD_HV_A_PERH

3.2 Board Power-Up

Switch SW1 to the OFF position (fully to the right),

Connect 12 V power supply adapter and switch SW1 to the ON possition (fully to the left).

Power Sequence

Power Sequence

When power is applied to the EVB, red LEDs adjacent to the voltage regulators show the presence of the supply voltages.

3.3 Debugger Connection

Connect a micro-USB cable to the J21 connector to debug via the on-board S32K3 debugger.

On-Board Debug Interface

On-Board Debug Interface

To use external debuggers some extra rework steps need to be fulfilled. Please check HW User Manual for more details.

4. Build, Debug

Let's take your S32K388EVB-Q289 evaluation board for a test drive.

4.1 Create S32DS Project from Example

  1. Start S32 Design Studio 3.6.2
  2. Go to menu → File → New → S32DS Project from Example. Select one of RTD example codes. For example Siul2_Port_Ip_Example_S32K388

New Project From Example

New Project From Example

Port Project From Example

Port Project From Example

4.2 Generate Configuration

  1. Expand the project tree and double-click on project mex file MEX File
  2. Set PTF23 pin (connected to Green LED) as GPIO Output

    LED_G1

    LED_G1
  3. Define PTF23 Identifier (without spaces). For example ""LED_G"" LED_G2
  4. Please ensure that you configure appropriate project and click on Update Code button for generating configuration files Update Code
  5. Wait until Update Code ends. Check status on bottom right corner Update Code

4.3 Edit Code

  1. Return back to the C/C++ perspective C_C++ Perspective
  2. Open main.c file from src folder by double-click Main_c
  3. Modify all instances of "LED_PORT" (4x) and "LED_PIN" (4x) by "LED_G_PORT" and "LED_G_PIN". This way we replace Red LED by Green LED LED_G3

4.4 Upload Software and Debug

Use Debug Configuration menu (small triangle next to bug icon) and select one of predefined debug configurations for building and uploading software into MCU.

Debug Configurations

FLASH Configuration

FLASH Configuration

Optionally update debug interface firmware (for first use).

Update Multilink Firmware

The S32DS will switch into Debug perspective where you may let code run.

Let Code Run

The green LED will now blink ten times.