Hi
I have a custom board based on the MIMXRT1061DVL6B with an external NOR flash (W25Q128JVSSIQ). I am using Zephyr with VS Code as my development environment, and I am currently having difficulty getting the device to boot.
I suspect the issue is similar to the one discussed in this post:
https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/i-MX-RT1060-Boot-using-FlexSPI/m-p/1242678
Specifically, I believe it may be related to linker script configuration and enabling `XIP_EXTERNAL_FLASH`.
What I do not fully understand is the correct way to modify the linker settings and enable `XIP_EXTERNAL_FLASH` in both a Zephyr-based setup and a standalone MCUXpresso/NXP SDK-style project.
As an experiment, I was able to get some activity from the MCU by manually modifying the `MIMXRT1062xxxxx_flexspi_nor.ld` linker file and changing the `.text` section placement to:
```
.text{} > m_data AT > m_text
```
However, I do not want to rely on this manual modification because there are multiple `MIMXRT1062xxxxx_flexspi_nor.ld` files in the project, and I am not sure which one is actually being used by the linker.
I would appreciate guidance on the correct procedure to:
1. Configure XIP execution from external NOR flash for MIMXRT1061.
2. Enable the required `XIP_EXTERNAL_FLASH` settings.
3. Properly modify or override the linker script in a Zephyr-based project.
4. Understand the equivalent configuration for a non-Zephyr project.
Any guidance on the recommended approach would be greatly appreciated.
Regards,
Junaid