1
Out of the Box2
Get Software3
Plug It In4
Build, RunSign in to save your progress. Don't have an account? Create one.
Note: The optional fans on picture are not part of MC_XTM4CK344 kit.
MC_XTM4CK344 Content:
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.5
Note: You will receive an activation code via email or under the License Keys tab.
Note: You might need administrator rights to install S32DS.
Something went wrong! Please try again.
The S32K3 Development Package for S32DS might be updated directly from S32DS, but sometime might be necessary to download it and install it manualy.
For download S32K3 Development Package for S32DS v3.5 go to S32K3 Standard SW Package.
Something went wrong! Please try again.
SW32K3_S32DS_3.5.13_D2407.zip
fileSomething went wrong! Please try again.
Download RTD for S32K3 and S32M27x version 4.0.0. Select Automotive SW - S32K3/S32M27x - Real-Time Drivers for Cortex-M package to download updatesite files.
Something went wrong! Please try again.
SW32K3_S32M27x_RTD_R21-11_4.0.0_HF01_D2401_DS_updatesite.zip
Something went wrong! Please try again.
Download and install FreeMASTER application tool for real-time debugging.
TIP: 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 S32K3 (version 1.1.41 or newer).
TIP: If possible, install AMMCLib in their default path location for later easy path modification.
Something went wrong! Please try again.
Download and install the MC_XTM4CK344 motor control application software MC_XTM4CK344_SW.exe
.
Note: The application checks version and whether appropriate AMMCLib was correctly installed or not. If not (red note), install AMMCLib and reinstall the MC_XTM4CK344 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.
NXP do not provide 48 V motor(s) and power supply within MC_XTM4CK344 kit, however you may use any suitable 3 ph motor(s) and 24/48 V power supply.
Check The Default Jumper positions at the Controller board.
Jumper | State | Notes |
---|---|---|
J3 |
CLOSED | FS26_VDEBUG signal connected from OpenSDA 5 V |
J8 |
CLOSED | 5V power domain routed from FS26_VLDO1 |
J9 |
CLOSED | 3V3 power domain routed from FS26_VLDO2 |
J10 |
1-2 | VDDA power domain routed from FS26_VTRK1 (5 V) |
J11 |
1-2 | TJA1101 CONFIG0 pin tight with pull-up - PHY configured as Master |
Check The Default Jumper Positions at the Adapter board.
Jumper | State | Notes |
---|---|---|
J2, J5..J9 |
OPEN | M1 current sense amplifier gain = 50 (Not Applicable for MCSXTM4CK344) |
J10..J15 |
OPEN | M2 current sense amplifier gain = 50 |
J16 |
2-3 | M1 FOC configuration, I_PHA routed to AN1 signal (Not Applicable for MCSXTM4CK344) |
J17 |
2-3 | M1 FOC configuration, I_PHB routed to AN3 signal (Not Applicable for MCSXTM4CK344) |
J18 |
2-3 | M1 FOC configuration, I_PHC routed to AN5 signal (Not Applicable for MCSXTM4CK344) |
J19 |
2-3 | M2 FOC configuration, I_PHF routed to AN29 signal |
J20 |
2-3 | M2 FOC configuration, I_PHE routed to AN27 signal |
J21 |
2-3 | M2 FOC configuration, I_PHD routed to AN25 signal |
J23 |
1-2 | Fan(s) controlled by MCU |
J24 |
1-2 | Overcurrent and Overvoltage Fault logic: Voltage reference V-TH derived from VREF |
J25 |
1-2 | M1 Safe state activation by internal HW logic: safe open state (Not Applicable for MCSXTM4CK344) |
J26 |
OPEN | M1 Safe state activation by External ECU: safe open state - not active (Not Applicable for MCSXTM4CK344) |
J27 |
1-2 | M2 Safe state activation by internal HW logic: safe open state |
J28 |
OPEN | M2 Safe state activation by External ECU: safe open state - not active |
J37 |
1-2 | M1_RESET: reset of the Buck UV latched fault for motor 1 (Not Applicable for MCSXTM4CK344) |
2-3 | M2_RESET: reset of the Buck UV latched fault for motor 2 |
Something went wrong! Please try again.
Plug the Adapter board to Power Stage board via header conector(s).
The mounting holes (6) will help you with alignment.
Use plastic screws to secure the mechanical setup of Adapter and Power Stage boards.
Insert Controller board into PCIe connector at Adapter board.
Something went wrong! Please try again.
Connect motor M2 (&M1) phase wires to the power stage board via appropriate M4 screws.
Note: If motor is assembled by any position sensor, the order of phase wires matter.
Optionally plug the Resolver or Encoder/HALL position sensors (only for sensor-based sw application).
Note: Check MCPUG.pdf for correct pin and signal assignment.
Something went wrong! Please try again.
Plug the micro USB cable to S32K3 on-board debugger or use external 10pin JTAG debug interface to connect with PC.
Something went wrong! Please try again.
Let's take your MC_XTM4CK344 motor control kit for a test drive.
Select the appropriate motor control application from the installed directory.
NXP\MC_DevKits\MC_XTM4CK344\sw
Note: Project that starts with MCDX... are for dual version of this kit. Project that starts with MCSX... are for single motor version of this kit.
To import the installed application software project in the S32 Design Studio IDE for S32 Platform:
Navigate to the installed application directory: NXP\MC_DevKits\MC_XTM4CK344\sw
and choose appropriate project and click OK . Then, click Finish.
Note: Check the box for the option Copy projects into workspace.
Something went wrong! Please try again.
Unfold structure of the project with low-level drivers and double-click on *.mex
file to open the project configuration in Configuration Tool.
Please ensure that you configure appropriate project and click on ""Update Code"" button for generating configuration files.
Something went wrong! Please try again.
In S32DS, return back to the C/C++ perspective.
Use the Debug Configuration menu and select the predefined debug configuration for building and uploading software into MCU.
The S32DS will switch into debug perspective where you may let the code run by clicking on Resume (or press F8), and use Disconnect to avoid interference between the S32DS IDE debugger and the FreeMASTER tool.
Something went wrong! Please try again.
Launch the FreeMASTER application.
To open the *.pmpx
FreeMASTER project <selected project>\FreeMASTER_control
, click File → Open Project.
Launch the FreeMASTER application.
Note: You can also start it by double clicking directly in the S32DS project folder.
To enable communication, in the FreeMASTER tool bar, click Go (or press Ctrl+G).
Successful communication displays in the status bar at the bottom as:
RS-232 UART Communication;COMn;speed = 115200
Something went wrong! Please try again.
Let's take your MC_XTM4CK344 motor control board for a test drive.
Now you may edit the motor parameters according to connected BLDC/PMSM motor(s). In the Motor Control Application Tuning (MCAT) Tool switch to Parameters tab and edit values on left side.
Once you finish, click on Store Data, switch to Output File tab and Generate static configuration file.
Now repeat step 4.3 to build the project and upload the code into MCU.
Note: MCU will go to reset, FreeMASTER reconnecting might be need (Ctrl+K, Ctrl+G).
Click the App Control tab on the Motor Control Application Tuning (MCAT) Tool menu to display the application control page.
Configure the motor rpms and turn on the motor drive.
In case of pending faults (fault state - blinking LED), click the Clear FAULT on the FreeMASTER MCAT control page or alternatively press and simultaneously hold SW4 and SW5 for M2 (SW2 and SW3 for M1) on the adapter board.
Click On/Off on the control page or press SW4/SW5 or switch SW6 for M2 (SW2/SW3 or switch SW1 for M1) on the adapter board to initiate clockwise/counterclockwise spinning of the rotor. Run state is signalized by steadily glowing LED. Set speed.
Change the speed required variable to set the speed. Go to the Variable Watch window and modify Speed Required variable or click on the speed gauge, or by pressing the switch SW4/SW5 (SW2/SW3).
Stop the application by clicking On/Off button on the FreeMASTER MCAT control page or switch the SW6 (SW1 for M1) on the adapter board. At ready state LEDs are turned off.
Download and Install IDE
Download S32K3xx Developmet Package
Install the S32K3 Development Package
Download the RTD Drivers
Install the RTD Drivers to S32DS
Get FreeMASTER Application Tool
Get AMMCLib for S32K3
Get the or MC_XTM4CK344 Motor Control Application
Default Jumpers
Assemmbly Kit
Connect the Motor
Plug the Debugger
Connect Power Supply