Hello,
We want to implement FOTA feature in IMXRT2021 based board. We have implemented secondary bootloader to suit the purpose. We modify the NOR memory connected over FlexSPI both in bootloader (for message passing) and in Application code (for downloading the image etc). We have used the NOR example code and used it as base for bootloader and have been able to modify the data in NOR flash.
As for the application part, we have ported the functionality from NOR example code to it and we observe that the application code crashes in the Nor_Flash_Initialization() function. We have observed that in the NOR flash example code, the flash operation function were linked to the RAM memory which is not the case when we ported the function to our Application code.
Is there a guide on how to or what needs to be taken care of when working on XIP memory read write operation? We are referring to IMXRT1020 Reference manual section 9.13.2 but it does not mention if we need to link the code to ram or how to handle boot loader application type of scenario.
Any help is highly appreciated. Thanks!