S32K116EVB controls DEVKIT-MOTORGD through inner pins of the I/O headers.
Inner pins of the I/O headers are Arduino compatible. Pins in red are configure-able,
This is the pin configuration for PMSM motor control:
S32K116EVB controls DEVKIT-MOTORGD through inner pins of the I/O headers.
Inner pins of the I/O headers are Arduino compatible. Pins in red are configure-able,
This is the pin configuration for BLDC motor control:
The software package includes projects for most typical hardware configurations.
Note: The installation process will ask you also to downloading the latest version of the Automotive Math and Motor Control Library Set.
MCSPTE1AK116 performs better when using S32 Design Studio IDE for Arm®
Note: Check the S32 Design Studio page for the latest version.
MCSPTE1AK116 evaluation board performs better when using the FreeMASTER tool for run-time debugging.
Note: Check the FreeMASTER page for the latest
version.
You can watch the video or follow the below step-by-step guide to set up your MCSPTE1AK116:
Jumper | Setting | Option | Description |
---|---|---|---|
J104 | 1-2 | Reset Signal | Reset signal direct to the MCU, use to reset S32K144 (default) |
2-3 | Reset signal to OpenSDA, use to enter into Open SDA bootloader mode | ||
J107 | 1-2 | Board Powering | S32K144 powered by 12 V power source (default) |
2-3 | S32K144 powered by USB micro connector | ||
J109/J108 | Open | CAN | CAN termination resistor is disconnected |
Short | CAN terminator resistor is connected (default) |
Jumper | Setting | Option | Description |
---|---|---|---|
J8 | Short | HALL/Encoder interface | Voltage level for HALL/Encoder interface is 3.3 V |
Open | Voltage level for HALL/Encoder interface is 5.0 V (default) | ||
J9/J10/J11 | 1-2 | Motor Type | Bidirectional 3-phase current sensing for PMSM FOC (sinusoidal) motor control |
2-3 | 3-phase back-EMF voltage sensing for BLDC six-step (trapezoidal) sensorless motor control |
Ensure default S32K116EVB and DEVKIT-MOTORGD jumper options.
Ensure jumper J107
in S32K116EVB and DEVKIT-MOTORGD is in position 1-2 for powering board from 12 V power supply.
Place DEVKIT-MOTORGD jumpers J9
, J10
and
J11
into position 1-2 for PMSM application or 2-3 for BLDC application. Jumper J8
stays
open for 5 V HALL sensors.
Make sure the potentiometer for overcurrent comparator is set in position (slightly to the left from the middle) for approximately 8 – 10 A.
Ensure that the motor phase wires are in the following order, from phase A to phase C:
Connect S32K116 board to the PC using the USB cable.
Note: Allow the PC to automatically configure the USB drivers if needed.
Let's take your MCSPTE1AK116 for a test drive.
Select the appropriate PMSM or BLDC motor control application from the installed directory. NXP\MCSPTE1AK116\sw
Program the MCU using S32 Design Studio:
To import the installed application software project in the S32 Design Studio IDE for Arm®:
.. MC_DevKits\MCSPTE1AK116\sw
folder and choose appropriate project and click
OK. Then, click Finish.
Note: Check the box for the option Copy projects into workspace.
Optional: These steps should not be necessary since they are automatically executed next:
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 into MCU.
To let the code run, click Resume (or press F8), and use Disconnect to avoid interference between the S32DS IDE debugger and the FreeMASTER tool.
Launch the FreeMASTER application.
Click File > Open Project to open the *.pmp
FreeMASTER project
<selected project>\FreeMASTER_control
,
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:
RS232 UART Communication;COMn;speed = 38400
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.
When the power supply is connected to the DEVKIT-MOTOGD board, the application is in a READY state.
In case of pending faults, click the Clear FAULT on the FreeMASTER MCAT control page or alternatively press and simultaneously hold
SW2
and SW3
on the board.
Click ON/OFF on the control page or press SW2/SW3
on the board to initiate clockwise/counterclockwise spinning of the
rotor.
Change the speed required variable to set the speed.
Go to the variable watch window by clicking speed gauge or by pressing the switch SW2/SW3
.
Stop the application by clicking ON/OFF button on the FreeMASTER MCAT control page or simultaneously press and hold
SW2
and SW3
on the S32K116EVB board.
Connect with other engineers and get expert advice on designing with the MCSPTE1AK116 on one of our community sites.