1
Out of the Box2
Get Software3
Plug It In4
Build, RunSign in to save your progress. Don't have an account? Create one.
NXP's MCSPTR2AK396 Low-Voltage Motor Control Development Kit is designed for customers developing low-voltage motor control applications using the S32K396 automotive microcontroller.
This page will guide you through the process of setting up and using the 3-Phase Permanent Magnet Synchronous Motor Control Development Kit with S32K396 (MCSPTR2AK396).
Something went wrong! Please try again.
Sign in at nxp.com with your credentials.
Download and Install S32 Design Studio for S32 Platform v.3.6.1.
Note: Since version 3.6.1, the S32DS installer doesn't require an activation code, but you may still found it under the License Keys tab.
Something went wrong! Please try again.
Download S32K3_S32M27x Real-Time Drivers ASR R21-11 Version 5.0.0.
Something went wrong! Please try again.
In S32DS, go to Help → S32DS Extensions and Updates from the top menu to open the S32DS Extensions and Updates dialogue.
Click Add Update Sites and browse for the downloaded RTD *.zip
file.
Find, select and install S32K39X Real-Time Drivers ASR R21-11 Version 5.0.0.
Something went wrong! Please try again.
Download S32K3 ETPU SW RTM 2.0.0 Code Drop 4.
Something went wrong! Please try again.
In S32DS, go to Help → S32DS Extensions and Updates from the top menu to open the S32DS Extensions and Updates dialogue.
Click Add Update Sites and browse for downloaded eTPU SW updatesite file.
Select and install eTPU SW.
Something went wrong! Please try again.
In S32DS, go to Help → S32DS Extensions and Updates from the top menu to open the S32DS Extensions and Updates dialogue.
Select and install FreeMASTER Communication driver.
Something went wrong! Please try again.
Download and install FreeMASTER tool for real-time debugging.
Something went wrong! Please try again.
Download and install latest Automotive Math and Motor Control Library set for S32K3.
Note: If possible, install AMMCLib in their default path location for easy later path modification.
Something went wrong! Please try again.
Download and install the EV-INVERTERGEN3 motor control application software.
Note: The installer checks the version and whether appropriate AMMCLib was corrected installed or not.
If not, install AMMCLib and reinstall the EV-INVERTERGEN3 motor control application software. That will simplify the next project import (paths to the latest AMMCLib will be already updated).
Something went wrong! Please try again.
Check the default jumper positions at the 3PHLVPWBRDPCIE power stage board
3PHLVPWBRDPCIE Default Jumper Settings | ||
---|---|---|
Jumper | State | Notes |
J5 |
2-3 | Resolver S4 output routed to operational amplifier |
J6 |
2-3 | Resolver S3 output routed to operational amplifier |
J7 |
2-3 | Resolver excitation signal from TM5 signal at PCIe connector |
J9 |
1-2 | DC BUS current sensing signal measured via operation amplifier |
J10 |
2-3 | VREF as voltage source for overcurrent threshold potentiometer |
J11 |
1-2 | External overcurrent fault comparator |
J16 |
OPEN | Zero-Cross detection disconnected |
J17 |
OPEN | Zero-Cross detection disconnected |
J18 |
OPEN | Zero-Cross detection disconnected |
J19 |
1-2 | Phase A current signal routed to AN1 signal at PCIe connector |
J20 |
1-2 | Phase B current signal routed to AN3 signal at PCIe connector |
J21 |
1-2 | Phase C current signal routed to AN5 signal at PCIe connector |
Check the default jumper positions at the S32K396-PCIE-MC controller board
S32K396-PCIE-MC Default Jumper Settings | ||
---|---|---|
Jumper | State | Notes |
J11 |
2-3 | CAN0 Transceiver STB signal pulled down |
J13 |
OPEN | FS26_VDEBUG signal generated - FS26 starts in debug mode |
J14 |
CLOSED | FS26_VDEBUG signal derived from VBOS signal |
J15 |
CLOSED | RESET SW2 connected to RESET_B signal |
J16 |
CLOSED | External wake-up signal connected to MCU |
J17 |
2-3 | CAN3 Transceiver STB signal pulled down |
J18 |
1-2, 3-4 | CAN0_TX and CAN0_RX signals routed to on-board CAN transceiver |
J19 |
CLOSED | Functional Safety signals FS0B and FS1B connected |
J20 |
1-2, 3-4 | CAN3_TX and CAN0_RX signals routed to on-board CAN transceiver |
J22 |
CLOSED | RESET_B signal connected as wake-up signal to FS26 |
J23 |
2-3 | VHREF_H voltage connected to VDD_HV_A |
J24 |
CLOSED | RESET_B signal connected to 20-pin JTAG connector |
J26 |
CLOSED | VDD_JTAG signal present at 20-pin JTAG connector |
J28 |
2-3, 5-6, 8-9, 11-12 | JTAG signals routed to S32K3 on-board debugger |
J29 |
OPEN | External RESET signal pins |
J30 |
CLOSED | LPUART2_TX signal connected to S32K3 on-board debugger |
J31 |
1-2 | LPUART2_RX signal connected to S32K3 on-board debugger |
J32 |
1-2 | Sine Wave Generator 1 routed to TM5 signal at PCIe connector |
J33 |
2-3 | V15 voltage regulated by external NMOS transistor |
J35 |
CLOSED | PTB11 connected to TM3 signal at PCIe connector |
J37 |
OPEN | CAN0 Transceiver STB signal not connected to MCU |
J38 |
1-2 | CAN3 Transceiver STB signal not connected to MCU |
In case of using an external JTAG debug probe via J20
connector, change the settings of J28
to 1-2, 4-5, 7-8, 10-11.
Something went wrong! Please try again.
Something went wrong! Please try again.
Something went wrong! Please try again.
Let's take your MCSPTR2AK396 motor control kit for a test drive.
Select the appropriate PMSM motor control application from the installed directory.
NXP\MC_DevKits\MCSPTR2AK396
To import the installed application software project in the S32 Design Studio IDE for S32 Platform:
NXP\MC_DevKits\MCSPTR2AK396
, click Select Folder. Next, check the box for the option Copy project into workspace. Then, click FinishNote: MCSPTR2AK396 is a multicore application. Make sure that both projects are selected for import.
M7_0_0
project, then for the M7_0_2
project. Click Yes To All to overwrite '.settings' folder in both project directories Something went wrong! Please try again.
*.mex
file to open the project configuration in S32 Configuration ToolM7_0_0
project, and click Update Code button for generating configuration files. Next, in S32 Configuration Tool, click the pop down button next to the project name and choose *.mex file for the M7_0_2
project. Click Update Code accordinglyNote: Always wait until generating configuration files ends. Check the status at bottom right corner.
Something went wrong! Please try again.
M7_0_0
and M7_0_2
projects to the MCU. Click Debug for building and uploading software into MCUF8
) Something went wrong! Please try again.
Launch the FreeMASTER application.
To open the *.pmpx
FreeMASTER project <selected project>\FreeMASTER_control
, click File → Open Project.
Note: You can also start it by double-clicking directly in the S32DS project folder.
To enable communication, in the FreeMASTER toolbar, click Go (or press Ctrl + G).
Successful communication displays in the status bar at the bottom as: RS-232 UART Communication;COMn;speed = 115200
.
Note: You can check or modify the communication settings by clicking Project → Options.
Something went wrong! Please try again.
To spin the motor:
Optionally you may drive the motor speed by SW1 switch and SW3/SW2 push buttons on the power stage board.
Connect with other engineers and get expert advice on designing with the MCSPTR2AK396 on one of our community sites.
Get S32 Design Studio for S32 Platform IDE
Downloading the Real-Time Drivers (RTD)
Install the RTD drivers
Download eTPU SW
Install eTPU SW
Install FreeMASTER Communication Driver
Get FreeMASTER Application Tool
Get AMMCLib for S32K3
Get the MCSPTR2AK396 Motor Control Application Software