Datasheet

Building and debugging the application
PMSM Field-Oriented Control on MIMXRT1050 EVK, User's Guide, Rev. 0, 05/2018
14 NXP Semiconductors
ENABLE_RAM_VECTOR_TABLE—the linker reserves an empty space from address 0x0 to
0x400 (RAM). With the reset signal, the IVT is copied from 0x60002000 to 0x0 and the pointer
to the IVT (VTOR register of the “System Control Block) is set to address 0x0.
If you do not want to place the IVT into the RAM, undefine the
ENABLE_RAM_VECTOR_TABLE symbol from “Preprocessor” and “Linker”.
You may combine the RAM_OPTIM* symbols with ENABLE_RAM_VECTOR_TABLE as you want,
but some of the combinations do not make sense. It is recommended to use either both or none. If you do
not care about the location of the IVT or function placement, leave the configuration as is. By default,
the IVT in the RAM is enabled and RAM_OPTIM_HIGH is defined.
To build, run, and debug this configuration, follow these instructions:
1. Select the Release FLASH 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. Let the other settings in the “Debugger”
category as they are. Click on “CMSIS DAP” (in the left panel under “Debugger”), choose the
Interface” tab, and selectSWDin the interface settings. Go to the “Setuptab and set Reset
to “Disabled (no reset)”.
3. Press the F7key or clickProject->Make” to build the project.
4. After a successful build, the output binary file is ready for download to the Hyper Flash. To
perform this action, follow the steps in Section 6.4, “Boot from Hyper Flash”.
5. After the compiled project is flashed, just press CTRL+Q or click the “Debug without
downloading” button (Point 7 in Figure 5).
6. As shown in Figure 6, the layout is switched to the debugging mode. The debugger does not
perform reset. It just connects to the running target.
To pause the running application, press the “Pause button (Point 2 in Figure 6).
To run the application, press the “Go” button (Point 1 in Figure 6).
To stop the debugging, press the “Stop” button (Point 3 in Figure 6).
6.2. MCUXpresso IDE
Firstly, the MCUXpresso SDK must be imported into the MCUXpresso IDE:
1. Go to mcuxpresso.nxp.com/en/welcome and clickSelect Development Board.
2. Select EVK-MIMXRT1050”. On the right-hand side, click “Build MCUXpresso SDK”. You
are going to see something like this (Figure 7):