I want to use QSPI NOR flash for XIP (Execute-in-Place) and Hyper NOR flash for LittleFS storage. Is it possible to implement this with the MIMXRT1060-EVKB? If so, could you share a sample 'Hello World' program using FreeRTOS that demonstrates this configuration?
Hi @Harry_Zhang ,
Thanks for your time.
Currently, my application code uses the BOARD_FLASH and SRAM_DTC sections. I want to integrate LittleFS with my application, so I leveraged the LittleFS_shell example provided with the SDK and integrated it into my application. The sample code uses BOARD_FLASH as the file system storage, so I moved boot_hdr, ivt, text, data, bss, heap, and stack to BOARD_SDRAM. With that, I'm facing a few issues related to timing.
I have followed this guide to configure the BOARD_SDRAM section: https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/I-MX-RT-How-to-boot-to-SDRAM/ta-p/1125054.
Are there any additional configurations required for booting and working with the BOARD_SDRAM region?
Hi @Sudhakar_21
You can refer to this document https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/I-MX-RT-How-to-boot-to-SDRAM/ta-p/1125054.
That's enough.
BR
Hang
Hi @Harry_Zhang ,
I have followed the steps mentioned in "I.MX RT - How to boot to SDRAM - NXP Community" and with that, I was able to execute the code. However, while trying to communicate through SDIO, I am facing timing/communication issues.
These issues are not present when using the BOARD_FLASH and SRAM_DTC sections.
I have attached both the working and non-working linker scripts: the working linker script is "flash.ld," and the non-working one is "sdram.ld."
Please let me know if any other clock, write, or read configurations are required for the BOARD_SDRAM section to avoid these issues.
And one more query: Can we use FlexSPI2 as file storage with the default board configuration (QSPI NOR Flash)? Booting from BOARD_FLASH and executing code from SRAM_DTC is working fine. If we can use FlexSPI2 with the default board configuration for file system storage, it would be helpful.
Please share your thoughts on this.
Working linker script is "flash.ld" and "sdram.ld" is non working one
/** Peripheral FLEXSPI2 base address */
#define FLEXSPI2_BASE (0x402A4000u)
/* FlexSPI2 AMBA address. */
#define FlexSPI2_AMBA_BASE (0x70000000U)
Hi @Sudhakar_21
I checked the RT1060 EVKB schematic.
There is only one FlexSPI.
So how can you use the FlexSPI2?
BR
Hang
Hi @Sudhakar_21
You can check the imxrt1060 EVKB schematic.
QSPI Flash and Hyper Flash cannot be used simultaneously on the imxrt1060 EVKB.
Hope this will help you.
BR
Hang