Get Started with the MCSXTE2BK142 for 3-phase Permanent Magnet (BLDC/PMSM) motor
Let's take your MCSXTE2BK142 development board engineered for 3-phase Permanent Magnet
(BLDC/PMSM) motor up to 800 W output at 24 V system or up to 400 W at 12 V system for a test
Choose between watching a short setup video or following the step-by-step guide.
1.1 Download the MCSXTE2BK142 Application Software
The Software Package includes the software projects for most typical hardware configurations.
1.2 Get your Integrated Development Environment (IDE)
MCSXTE2BK142 performs better when using 32 Design Studio for Arm®-based MCUs
NOTE: Check the S32 Design Studio page for the latest version.
1.3 Get the run-time debugging tool
MCSXTE2BK142 performs better when using the FreeMASTER tool for run-time debugging.
NOTE: Check the FreeMASTER page for the latest version.
Plug it in!
2.1. Connect the motor
Connect the Permanent Magnet motor using the J11 connector.
NOTE: if there is a Hall sensor or encoder in your motor, connect it with J5 and
2.2 Plug the power supply
Attached the 12/24 V power cable for powering your MCSXTE2BK142 development board, the D13 LED will turn
2.3 Plug the debugger
Attach your ARM- Cortex compatible JTAG/SWD debugger to the connector J3 or
2.4 Plug the Serial Interface
Attach J2 header for connecting the USB to TTL serial interface.
NOTE: Be aware, that TTL signals from MCU are at 5V voltage level and Rx pin on board should be
connected to Tx pin on USB to TTL serial interface.
3.1. Import the demo project using your IDE
Import the installed application software project in the S32 Design Studio for Arm
by launching S32 Design Studio and then click File > Import and then
select General > Existing Projects into Workspace.
Navigate to the installed application directory: .. MC_DevKits\MCSXTE2BK142\sw
folder, select project and click OK, then
NOTE: You can also use other toolchains, such as IAR, GHS to compile the project via makefile. For
more details, refer to the
MCSXTE2BK142 development board – software User
3.2 OPTIONAL - Build project
These steps should not be necessary since they are executed in the next step automatically:
Right click on the imported project and select Clean
Right click on the imported project and select Build
3.3 Debug for loading code into the S32K142 MCU
In the S32 Design Studio menu click Run > Debug Configuration and select the
predefined debug configuration and click on Debug to start loading built code
3.4 Let code Run and Disconnect
Let code run by click on Resume (F8) button. Use the Disconnect
button for avoiding interference between S32DS debugger and FreeMASTER tool.
4.1 Start a debugger project
Start the FreeMASTER project for debugging by launching FreeMASTER and then open *.pmp
file from MCSXTE2BK142\FreeMASTER_control folder. File > Open
NOTE: You may start it by double click directly from S32DS project explorer
4.2 Create a connection with the S32K142 MCU
Go to FreeMASTER project options, select the USB to TTL interface serial port at your computer and
setup 115kbit per second communication speed.
Click the green GO! button in the FreeMASTER toolbar (or press <CTRL> + <G>) to
enable the communication
Successful communication is signalized in the status bar at very bottom as:
RS232 UART Communication;COMn; speed = 115200
4.3 Open Application Control page
In FreeMASTER, go to Control page tab, set required motor rpms and turn on the motor drive.
Success! Motor runs.