How to Use .mac File to Initialize Device Connected to FlexSPI on i.MX RT
Guide to using IAR .mac files to initialize external RAM and Flash via the FlexSPI controller on NXP i.MX RT MCUs to enable direct debugging in external memory.
Overview
This application note describes the process of using IAR Embedded Workbench macro (.mac) files to initialize external devices connected to the FlexSPI controller on i.MX RT crossover MCUs. It focuses on initializing HyperRAM and Flash memory to facilitate debugging by downloading code directly to external RAM. The document provides detailed procedures for PIN initialization, clock configuration, and FlexSPI module control register settings, including LUT table updates. Examples are based on the NXP MIMXRT1060-EVK evaluation kit and SDK 2.7.0.
Use Cases
- Debugging firmware applications in external RAM when on-chip RAM is insufficient
- Configuring HyperRAM and Flash devices on i.MX RT series MCUs
- Automating hardware initialization sequences within the IAR IDE environment
- Optimizing development cycle speed by reducing Flash programming time during debug
Topics
Referenced Parts
i.MX RT1060
NXP
i.MX RT1060 Processor Reference Manual (document IMXRT1060RM)
| MIMXRT1060 | NXP | SDK_2.7.0_EVK-MIMXRT1060\boards\evkmimxrt1060 |
| i.MX RT1060 | NXP | i.MX RT1060 Processor Reference Manual (document IMXRT1060RM) |