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 development of low-voltage motor control applications using the S32K396 automotive microcontroller.
This guide will walk you through the process of setting up and using the 3-Phase Permanent Magnet Synchronous Motor Control Development Kit with S32K396 (MCSPTR2AK396).
This guide also covers software (SW) installation for MCSPTR2AK396 motor control application software MCSPTR2AK396-SW.exe in revision 2.0. For MCSPTR2AK396-SW version 2.0, please refer to the MCSPTR2AK396 Getting Started webpage for software set.
This section will familiarize you with the contents of this development kit.
Something went wrong! Please try again.

Something went wrong! Please try again.
Sign in at nxp.com with your credentials.
Open Automotive Software Package Manager and select S32K3 device.
Unfold the FRDM Automotive Board Installation Package bundle and check S32 Design Studio, Real-Time Drivers and FreeMASTER software. Other SW packages are optional.
Click on the Generate Bundle Installer button at the end of the page.
Follow the wizard instructions for Export Control and SW License Agreement (need to scroll whole text down before accepting). After that, you may close the window. Installer and Installer User Manual download will start automatically in a few moments.
Note: NXP Multi Installer is generated and works only for a limited time window. Please start with installation right after installer download.
The FRDM Automotive Board Installation Package bundle allows to enable automatic installation and configuration sw without any interaction. That simplifies the installation procedure.
Something went wrong! Please try again.
Latest version of the S32 Design Studio contains GCC toolchain only in version 11.4. For full compatibility with RTD, you need to install GCC also in version 10.2.
In S32 Design Studio, go to Help → S32DS Extensions and Updates from the top menu to open the S32DS Extensions and Updates dialogue where you may install it.
Note: Any other optional sw might be downloaded from the S32K3 Standard Software Package or S32K3 Reference Software Package. In S32DS, go to Help → S32DS Extensions and Updates from the top menu to open the S32DS Extensions and Updates dialogue where you click Add Update Sites link. Or use the drag&drop option - drag downloaded updatesite file and drop on the S32DS Extensions and Updates menu. Added sw package will also be automatically selected for following installation.
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 or use the drag&drop option - drag downloaded updatesite file and drop on S32DS Extensions and Updates menu. Added sw package will also be automatically selected for following installation.
Something went wrong! Please try again.
Download and install the FreeMASTER application tool for real-time debugging.
Note: for this setup you may even skip the Lite service installation (for which the activation code is required).
Something went wrong! Please try again.
Download and install AMMCLib for S32K3xx.
Note: Required is version 1.1.45 or newer.
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 MCSTR2AK396 motor control application software package.
Note: The installation process will also ask you to download the latest version of the Automotive Math and Motor Control Library (AMMCLib) set. The installer will test the minimum required version in the next step.
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.
To assemble the controller board to the power stage board, connect the board to the PC with a micro USB cable
Optionally use the support column for improving mechanical robustness
Something went wrong! Please try again.
Something went wrong! Please try again.
Let's take your MCSTR2AK396 motor control kit for a test drive.
Select the appropriate PMSM or BLDC motor control application from the installed directory NXP\MC_DevKits\MCSPTR2AK396\sw
.
To import the installed application software project in the S32 Design Studio IDE for S32 Platform:
NXP\MC_DevKits\MCSPTR2AK396\sw and choose appropriate project and click OK. Then, click FinishNote: Check the box for the option Copy projects into workspace.
Note: MCSPTR2AK396 is a multicore application. Make sure that both projects are selected for import.
Something went wrong! Please try again.
M7_0_0 project and double-click on *.mex file to open the project configuration in S32 Configuration Tool
M7_0_0 project, and click Update Code button for generating configuration files. Next, in the S32 Configuration Tool, click the pop down button next to the project name and choose *.mex file for the M7_0_2 project. Click the Update Code accordingly
Note: Always wait until generating configuration files ends. Check the status at the 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 MCU
F8)
Something went wrong! Please try again.
Launch the FreeMASTER application.
To open the *.pmpx FreeMASTER project , 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; port=COMn; speed = 115200
Note: You can check or modify the communication settings by clicking Project → Options.
Something went wrong! Please try again.
If you run MCSPTR2AK396 sw on a modified or own hardware platform, you may need to edit hardware scales and fault triggers. In the Motor Control Application Tuning (MCAT) Tool switch to the Application Setup page and edit values on the left side.
Once you finish, click Save config to generate a static configuration file. You may check file content at the Output file page.
Now, repeat step from the Upload Software and Debug section to build the project and upload the code into MCU.
Note: MCU will go to reset, FreeMASTER reconnecting might be needed (Ctrl+K, Ctrl+G).
In a case of motor change, you may benefit from new MCAT 2.0 motor parametrization and control loops autotuning features.
At Motor Parameters page, fill four basic motor parameters that cannot be detected automatically:
Click Update target button and start the motor parameters estimation and automating tuning for control loops. Parameters are automatically updated typically in less than a minute.
For more information about the automatic motor parametrization and control loops autotuning please read AN15061 Application Note in MCSPTR2AK396\doc folder. Default path: c:\NXP\MC_DevKits\MCSPTR2 AK396\doc\ApplicationNotes\AN15061 MCAT 2.0 - Motor Control Application Tuning Tool for PMSM FOC.pdf.
Switch, for example, to the Speed Loop page. Under the Speed control tab, configure the required speed and turn on the motor drive.
Select one of the predefined Scopes or Recorders in Project Tree to watch the application variables in real-time. For comfortable run-time debugging you may create or modify any of scopes or recorders.
In case of pending faults, click the CLEAR button at MCAT control tab or alternatively press simultaneously SW2 and SW3 on the board.
Click On/Off on the control bar or press SW2/SW3 on the board to initiate clockwise/counterclockwise spinning of the rotor.
Modify Required Speed field on the control bar or change Speed Required in the Variable Watch window. Alternatively control speed by pressing SW2 or SW3 switches.
Stop the motor by clicking the On/Off button on the MCAT control page, Clear On/Off variable or use the On/Off switch on the 3PHLVPWBRDPCIE board.
Note: For more information about MCAT tool please read AN15061 Application Note in the MCSPTR2AK396\doc folder. Default path: c:\NXP\MC_DevKits\MCSPTR2AK396\doc\ApplicationNotes\AN15061 MCAT2.0 - Motor Control Application Tuning Tool for PMSM FOC.pdf
Connect with other engineers and get expert advice on designing with the MCSPTR2AK396 on one of our community sites.
Select SW packages from Automotive Software Package Manager
Add GCC Toolchain Version 10.2
Download eTPU SW
Install eTPU SW
Get FreeMASTER Application Tool for Real-Time Debugging
Get Automotive Math and motor Control Library (AMMCLib) Set
Download the Development Kit Application Software