Hi, I am trying to build a zephyr image for a custom RT1160 board that uses a different QSPI NOR flash than the one used in the evk. I am using the primary group of Flexspi1 and I used the MCUXpresso config tool to generate the pinctrl and pinmux for the firmware. However, when I tried to build the image, it keeps failing on the linker script stage as it keeps targeting the onchip memory space instead of the external flash.
Do I need define a new linker script in zephyr project so the build system can target the external memory space? Are there any tutorial or application documents that provide the guide to develop the XIP zephyr firmware for imxrt?
Hi @TomC818 ,
Thanks for your interest in NXP MIMXRT series!
The default Zephyr examples for the CM7 on the RT1160 should all support XIP. You can locate this KConfig CONFIG_BOOT_FLEXSPI_NOR in the successfully compiled .config file.
If your goal is simply to modify Flash, these two links will be helpful:
1. https://github.com/zephyrproject-rtos/zephyr/discussions/83607
2. https://github.com/zephyrproject-rtos/zephyr/blob/main/boards/nxp/mimxrt1160_evk/CMakeLists.txt
Additionally, if memory relocation is required, you can refer to this AN.
Best regards,
Gavin