Quick Start Guide
MCSXTE2BK142 Motor Control Development Board
S32K scalable family of AEC-Q100 qualified 32-bit Arm® Cortex®-M4F and Cortex-M0+ based MCUs targeted for general-purpose automotive and high-reliability industrial applications
Get to Know the MCSXTE2BK142 Motor Control Development Board
The board features the S32K142 microcontroller in a 64-pin LQFP Package.
A photograph of the MCSXTE2BK142 development board with arrows pointing to various connectors and components, labeled with their functions. Key labeled items include: GD3000 3-phase Gate Pre-Driver, Hall Sensor Interface, Encoder Interface, LIN Bus Connector, CAN Bus Connector, SWD Debugger Connector, PWM Input Connector, TRIGMUX Output Connector, FreeMASTER UART Connector, 3-phase Motor Connector, and VBAT Input Connector.
MCSXTE2BK142 System Block Diagram
A system block diagram illustrating the MCSXTE2BK142 board. It shows the S32K142 MCU connected to various peripherals like CAN (TJA1043), LIN (TJA10221T), FreeMASTER UART, SWD, Encoder, Hall sensors, and PWM inputs. The MCU interfaces with a GD3000 MOSFET Driver, which controls a 3-phase bridge. A DC-DC Buck Converter manages the 12V-36V VBAT input, providing VPRE and VDD via LDO regulators. Analog inputs for current sensing (PHA_I, PHB_I, PHC_I) and back-EMF (BEMF_A, BEMF_B, BEMF_C) are shown, along with temperature sensing.
The MCSXTE2BK142 Hardware System
- The 12-36 V VBAT input connects to a reverse battery protection circuit and provides VIN, which is then converted by the DC-DC converter to 7 V VPRE and 5 V VDD through 2 LDO regulators.
- The VIN directly connects to the 3-phase MOSFET high-side power stage and GD3000 pre-driver for motor control.
- The S32K142 MCU and the TJA1043 CAN transceiver use the VDD. For debug purposes, an SWD debug port is reserved for program download and debug. A TTL UART communication interface is provided for FreeMASTER/MCAT communication. A 5-pin connector is routed with TRIGMUX signal for FOC trigger monitor. Additionally, there are hall sensor and encoder interfaces for sensor-based FOC motor control, and signal conditioning and PGA circuits to sample the 3-phase current and back-electromotive force for sensorless FOC.
- One CAN bus and one LIN bus, along with a high-voltage PWM input interface, are designed for external connectivity extension, supporting user motor control (rotation direction, speed) commands and motor diagnostic information feedback.
MCSXTE2BK142 Features
- Supports 24 V power supply system with up to 800 W automotive BLDC/PMSM motor control system.
- Able to drive multiple types of automotive motors and tune those motors directly.
- PMSM FOC based on NXP S32K142+GD3000+CAN PHY+LIN PHY.
- Dual shunt and triple shunt current sample solutions are implemented.
- Supports multiple diagnostics and protection covering UV, OV, OT, OC, short, and stall detection.
- Supports speed/control commands from LIN/CAN/PWM.
- Out-of-box motor control and tuning via FreeMASTER MCAT.
- Supports sensorless FOC PMSM/BLDC motor control.
- Supports hall/encoder sensor based FOC PMSM/BLDC motor control.
- Implements advanced motor control algorithms like field weakening (FW) and stall detection.
- Provides S32DS IDE project and makefile project to support multi-toolchain (GHS, IAR, and GCC) and multi-debugger (Lauterbach, U-Multilink, and J-LINK).
Step-by-Step Instructions
All documents (Fact Sheet, Quick Start Guide, Software User Manual, Hardware User Manual) for the MCSXTE2BK142 are available on: nxp.com/MCSXTE2BK142. Before starting, download and install the following software:
- S32 Design Studio for Arm® 2018.R1
- FreeMASTER 2.5 or newer
Step-by-Step Instructions Continued
-
Download Software
Download installation software and documentation at nxp.com/MCSXTE2BK142.
-
Connect Your PMSM Motor
Connect your PMSM motor with the MCSXTE2BK142 via J11. Connect your hall sensor or encoder with J5 and J6 if your motor has them and you want to assess the sensor FOC motor control.
-
Connect Debugger and Power on the Board
Connect a debugger (PEMicro U-Multilink/J-LINK) with the board via J4/J3. Provide 12V/24V DC power supply to the board; then the D13 green LED will be on.
-
Import and Build the Demo
Import the selected demo project from the
NXP\MC_DevKits\MCSXTE2BK142\sw
folder into S32DS for Arm® IDE, clean, and build the project. You can also use other toolchains, such as IAR or GHS, to compile the project via makefile. For details, please refer to the software user guide. -
Download and Debug the Project
Launch the debug target in the debug configuration according to the actual debugger you are using. Download the compiled result into the board and enjoy the debug.
-
Tuning your Motor via MCAT
Using a USB-to-UART converter, connect the board with your laptop via J2. Open the MCAT project
S32K_PMSM_Sensorless.pmp
under theFreeMASTER_control
sub-folder with FreeMASTER. Connect to start tuning your motor.
S32K142 I/O Pin Allocation
S32K142 PERIPHERAL MODULE | MCSXTE2BK142 FUNCTION | PERIPHERAL FUNCTION | GPIO PIN |
---|---|---|---|
PWM | PWMA_HS_B | FTM3_CH0 | PTA2 |
PWMA_LS | FTM3_CH1 | PTA3 | |
PWMB_HS_B | FTM3_CH2 | PTC6 | |
PWMB_LS | FTM3_CH3 | PTC7 | |
PWMC_HS_B | FTM3_CH4 | PTD2 | |
PWMAC_LS | FTM3_CH5 | PTD3 | |
SPI | GD_CS_B | LPSPI0_PCS0 | PTB0 |
GD_MOSI | LPSPI0_SOUT | PTB1 | |
GD_SCLK | LPSPI0_SCK | PTB2 | |
GD_MISO | LPSPI0_SIN | PTB3 | |
CAN | CAN1_RX | CAN1_RX | PTA12 |
CAN1_TX | CAN1_TX | PTA13 | |
CAN_EN | GPIO_O | PTD5 | |
CAN_STB | GPIO_O | PTD6 | |
CAN_ERR | GPIO_I | PTD7 |
S32K142 PERIPHERAL MODULE | MCSXTE2BK142 FUNCTION | PERIPHERAL FUNCTION | GPIO PIN |
---|---|---|---|
ADC | PHA_I | ADC0_SE9 | PTC1 |
PHB_I | ADC1_SE8/ADC0_SE8 | PTB13 | |
PHC_I | ADC1_SE6 | PTD4 | |
DCB_I | ADC0_SE15 | PTC17 | |
DCB_V | ADC1_SE10 | PTE2 | |
BEMF_A | ADC0_SE12 | PTC14 | |
BEMF_B | ADC0_SE3 | PTA7 | |
BEMF_C | ADC0_SE2 | PTA6 | |
Tem_MOSFET | ADC0_SE13 | PTC15 | |
Analog_IN | ADC0_SE14 | PTC16 | |
LIN | LIN_RX | LPUART1_RX | PTC8 |
LIN_TX | LPUART1_TX | PTC9 | |
LIN_SLP | GPIO_O | PTE8 | |
LPUART | FMT_RX | LPUART0_RX | PTC2 |
FMT_TX | LPUART0_TX | PTC3 |
S32K142 PERIPHERAL MODULE | MCSXTE2BK142 FUNCTION | PERIPHERAL FUNCTION | GPIO PIN |
---|---|---|---|
FTM | HALL_A | FTM0_CH1 | PTD16 |
HALL_B | FTM0_CH0 | PTD15 | |
HALL_C | FTM0_CH7 | PTE9 | |
ENC_A | FTM2_QD_PHA | PTE5 | |
ENC_B | FTM2_QD_PHB | PTE4 | |
ENC_Z | FTM1_CH1 | PTD1 | |
PWM_IN | FTM1_CH4 | PTA10 | |
GPIO | GD_EN | GPIO_O | PTB4 |
GD_RST_B | GPIO_O | PTB5 | |
GD_OC | GPIO_I | PTE7 | |
GD_INT | GPIO_I | PTB12 | |
LED_R | GPIO_O | PTE0 | |
LED_G | GPIO_O | PTE1 | |
TRGMUX_OUT | TRGMUX_OUT1 | TRGMUX_OUT1 | PTD0 |
TRGMUX_OUT3 | TRGMUX_OUT3 | PTA0 | |
TRGMUX_OUT4 | TRGMUX_OUT4 | PTE10 | |
TRGMUX_OUT5 | TRGMUX_OUT5 | PTE11 |
Connector Signals Route
CONNECTOR | PIN | FUNCTION/SIGNAL | CONNECTOR | PIN | FUNCTION/SIGNAL |
---|---|---|---|---|---|
J1 (TRGMUX OUT) | J1-1 | TRGMUX_OUT5 | J4 (JTAG/SWD) | J4-1 | VDD |
J1-2 | TRGMUX_OUT4 | J4-2 | JTAG_TMS/ SWD_DIO | ||
J1-3 | TRGMUX_OUT3 | J4-3 | GND | ||
J1-4 | TRGMUX_OUT1 | J4-4 | JTAG_TCLK/ SWD_CLK | ||
J1-5 | TRGMUX_OUT0 | J4-5 | GND | ||
J2 (FreeMASTER UART TTL) | J2-1 | VDD | J4-6 | JTAG_TDO | |
J2-2 | GND | J4-7 | NC | ||
J2-3 | UART_TX | J4-8 | JTAG_TDI | ||
J2-4 | UART_RX | J4-9 | NC | ||
J3 (SWD) | J3-1 | VDD | J4-10 | RESET_b | |
J3-2 | SWD_DIO | ||||
J3-3 | SWD_SCLK | ||||
J3-4 | GND | ||||
J3-5 | RESET_b |
CONNECTOR | PIN | FUNCTION/SIGNAL | CONNECTOR | PIN | FUNCTION/SIGNAL |
---|---|---|---|---|---|
J5 (Hall sensor) | J5-1 | VDD | J9 (CAN bus) | J9-1 | CAN_H |
J5-2 | GND | J9-2 | CAN_L | ||
J5-3 | HALL_C | J9-3 | GND | ||
J5-4 | HALL_B | J9-4 | NC | ||
J5-5 | HALL_A | J10 (PWM input) | J10-1 | PWM_CMD | |
J6 (Encoder) | J6-1 | VDD | J10-2 | GND | |
J6-2 | GND | J11 (Motor 3-phase power output) | J11-1 | PHA | |
J6-3 | ENC_C | J11-2 | PHB | ||
J6-4 | ENC_B | J11-3 | PHC | ||
J6-5 | ENC_A | J12 (VBAT input) | J12-1 | VBAT- | |
J7 (LIN PHY power supply) | J7-1 | VIN | J12-2 | VBAT+ | |
J7-2 | VBAT of TJA1021 | ||||
J8 (LIN bus) | J8-1 | GND | |||
J8-2 | GND | ||||
J8-3 | VBAT | ||||
J8-4 | LIN |
Support and Warranty
Support
Visit www.nxp.com/support for a list of phone numbers within your region.
Warranty
Visit www.nxp.com/warranty for complete warranty information.
Get Started
Download installation software and documentation at nxp.com/MCSXTE2BK142.