Datasheet

© 2018 NXP B.V.
PMSM Field-Oriented Control on
MIMXRT1050 EVK
1. Introduction
This user’s guide provides a step-by-step guide on how
to open, compile, debug, and run Permanent Magnet
Synchronous Motor (PMSM) projects in most common
IDEs, such as IAR Embedded Workbench
®
,
MCUXpresso, and µVision
®
Keil
®
IDEs on
MIMXRT1050 EVK.
This user’s guide also describes how to turn the NXP
Freedom PMSM power stage and the i.MX RT1050
evaluation kit into a complete motor control reference
design (see Section 2, “Hardware setup).
There is a description of how to initialize the
FreeMASTER GUI tool for controlling motor-control
applications at the end of this document.
NXP Semiconductors
Document Number:
PMSMFOCRT1050UG
User's Guide
Rev.
0
,
05/2018
Contents
1. Introduction ........................................................................ 1
2. Hardware setup ................................................................... 2
2.1. MIMXRT1050-EVK ............................................... 2
2.2. FRDM-MC-LVPMSM ............................................ 4
2.3. TG Drives TGT2-0032-30-24 motor ....................... 4
2.4. Hardware assembling .............................................. 5
3. Motor-control drivers vs. MCUXpresso SDK .................... 7
4. Project file structure ........................................................... 7
4.1. PMSM project structure .......................................... 7
4.2. IDE workspaces structure ...................................... 10
5. Tools ................................................................................ 10
6. Building and debugging the application ........................... 10
6.1. IAR Embedded Workbench IDE ........................... 11
6.2. MCUXpresso IDE ................................................. 14
6.3. Arm-MDK Keil µVision IDE ............................... 22
6.4. Boot from Hyper Flash .......................................... 27
6.5. Replacing the firmware of the OpenSDA .............. 28
6.6. Compiler warnings ................................................ 29
7. User interface ................................................................... 29
7.1. Remote control using FreeMASTER .................... 30
8. Performing basic tasks...................................................... 33
8.1. Running the motor................................................. 33
8.2. Stopping the motor ................................................ 33
8.3. Clearing the fault ................................................... 33
8.4. Turning the demonstration mode on/off ................ 33
9. Acronyms and abbreviations ............................................ 34
10. References ........................................................................ 34

Summary of content (35 pages)