Navigate to Project > Options > C/C++ Compiler > Optimizations . Choose the appropriate level:
Place performance-critical variables inside fast tightly-coupled memory (TCM) using hardware-specific pragmas. IAR Embedded Workbench For ARM 8.32.1 ARM