Datasheet
Building and debugging the application 
PMSM Field-Oriented Control on MIMXRT1050 EVK, User's Guide, Rev. 0, 05/2018 
NXP Semiconductors    13 
Figure 6.  IAR debug workspace 
6.1.2.  Release FLASH 
This configuration links the application to the Hyper Flash memory. The optimization is set to the 
highest level for speed. The significant difference (opposite to the Debug configuration) is the ability to 
choose the functions which are going to be executed from the RAM. This feature is achieved by defining 
one of the following appropriate symbols in “Preprocessor” (“Project->Options->C/C++ Compiler-
>Preprocessor tab, Defined symbols” box): 
•  RAM_OPTIM_LOW—the Real Time Control Embedded Software Libraries (RTCESL 
www.nxp.com/rtcesl) are going to be executed from the RAM.  
•  RAM_OPTIM_MEDIUM—the motor-control fast-loop algorithms are going to be executed 
from the RAM. These algorithms are executed periodically in the ADC conversion complete 
interrupt. This interrupt has the highest priority level. When the interrupt is entered, the DC-bus 
voltage and motor phase currents are read and the PMSM FOC algorithm is calculated. The 
RAM_OPTIM_MEDIUM also includes the RAM_OPTIM_LOW symbol. 
•  RAM_OPTIM_HIGH—the slow-loop interrupt service routine (basically speed control, user 
button, and so on) is going to be executed from the RAM. The RAM_OPTIM_HIGH includes 
both the above-mentioned symbols. 
You can also choose whether the Interrupt Vector Table (IVT) is going to be placed into the RAM or 
Hyper Flash. To place the IVT into the RAM, define the following symbol in “Preprocessor” and 
“Linker” (“Project->Options->Linker->Configuration file symbol definitions”): 










