I am using IMXRT1010EVK board with NXP-MCUBootUtility-v3.5.0.
I use the function “ flexspi_nor_flash_init(EXAMPLE_FLEXSPI)”,
and blink the led after the function.
It failed while i choose OTFAD as my secure Type, I follow
the post “Use FlexSPI while decrypted with OTFAD”, change code to the the following
{
//OTFAD->CR &= ~OTFAD_CR_GE_MASK;
backupendaddr = OTFAD->CTX[0].RGD_W1;
OTFAD->CTX[0].RGD_W1 = OTFAD->CTX[0].RGD_W0;
//flexspi_nor_flash_init(EXAMPLE_FLEXSPI);
OTFAD->CTX[0].RGD_W1 = backupendaddr;
//OTFAD->CR |= OTFAD_CR_GE(1);
}
The led blink with OTFAD when i commet the function “flexspi_nor_flash_init(EXAMPLE_FLEXSPI)”.
data.ldt:
<#if memory.name=="SRAM_ITC">
*flexspi_nor_flash_ops.o(.text*)
*fsl_flexspi.o(.text*)
</#if>
main_text.ldt:
*(EXCLUDE_FILE(*flexspi_nor_flash_ops.o *fsl_flexspi.o) .text*)
The program is in XIP mode.