Let's take your S32K142-MC24 engineered for 24 V BLDC/PMSM FOC automotive motor control for a test drive!
PLUG IT IN
1.1. Connect the motor
Connect the Permanent Magnet Synchronous Motor (PMSM) motor using the J11 pin.
NOTE: if there is a Hall sensor or encoder in your motor (and you want to assess its sensor FOC motor control), connect it with J5 and J6 pins.
1.2 Plug the power supply
Attached the 12/24V power cable for powering your S32K142-MC24 RDB, the D13 LED will turn on green.
1.3 Plug the debugger
Attach (PEMicro U-Multilink/ J-LINK) cable with the S32K142-MC24 RDB using the via J4/J3 pins for debugging.
2.1 Download the S32K142-MC24 reference design - Software Package
The Software Package includes the Software code/project, but also the required NXP software release license, and the SCR excel for kicking start your S32K142-MC24 design.
3.1. Import and Build the demo project using your IDE
Load the XS32K142MC24_RDB_PMSM_ DualShunt_SDKRTM3P0_ AMMCLIB1115.zip file into S32DS for Arm® v2018.R1 IDE to clean and build the project. NOTE: You can
also use other toolchains, such as IAR, GHS to compile the project via makefile. Refer to
3.2. Download and Debug the demo project
Launch the debug target in debug configuration mode, using the specifications of the debugger you are using.
Download the compiled result into the board and enjoy the debug.
3.3 Tune your Motor
Connect your S32K142-MC24 with your computer using the J2 pin and a USB-to-UART converter.
Open the Motor Control Application Tuning (MCAT) tool (FreeMASTER plug-in component) and load the S32K_PMSM_ Sensorless.pmp file under the FreeMASTER_control sub-folder