Datasheet
Building and debugging the application
PMSM Field-Oriented Control on MIMXRT1050 EVK, User's Guide, Rev. 0, 05/2018
12 NXP Semiconductors
different than the one mentioned in Section 4, “Project file structure”. However, it is composed
of the same files and organized to fit into the IDE workspace.
• Point 5—shows the output file generated by the compiler, and ready to use by the debugger.
• Point 6—“Download and Debug” (useful for debugging the Debug RAM configuration). This
button downloads the compiled project into the MIMXRT1050-EVK’s RAM.
• Point 7—“Debug without downloading” (useful for debugging the Release FLASH
configuration). This button connects to the running target application.
The second step is to choose the build configuration.
6.1.1. Debug RAM
This configuration links the application to the RAM memory. The optimization is disabled. To build,
run, and debug this configuration, follow these instructions:
1. Select the “Debug RAM” build configuration (Point 1 in Figure 5).
2. Choose CMSIS-DAP as the debugger – go to “Project->Options->Debugger” and click the
“Setup” tab. Choose CMSIS-DAP as the driver. Leave the other settings in the “Debugger”
category as they are. Then click “CMSIS DAP” (in the left panel under “Debugger”), choose the
“Interface” tab, and select “SWD” in the interface settings.
3. Press the “F7” key or click “Project->Make” to build the project.
4. After a successful build, the application is ready to be downloaded to the RAM. To perform this
action, just press “CTRL+D” or click the “Download and Debug” button (Point 6 in Figure 5).
5. As shown in Figure 6, the layout is switched to the debugging mode.
• To run the application, press the “Go” button (Point 1 in Figure 6).
• To pause the running application, press the “Pause” button (Point 2 in Figure 6).
• To stop debugging, press the “Stop” button (Point 3 in Figure 6).