I am currently using a custom board with MIMXRT1176CVM8B. And along with this , the external flash is being used , with part number : W25Q01NW .
But i am not able to flash the code from MCUXpresso IDE to this new flash. (The error snapshot is attached)
I have also made changes in evkbmimxrt1170_flexspi_nor_config.c
Parameter that was changed is:
.sflashA1Size = 128u * 1024u * 1024u, // Changed: Because the new flash size is 128MB.
Is there any other configuration parameters that needs to be changed?
Thanks in advance
can you help to share your schematics for review as it is a 1.8V device? Meanwhile how about the SPI clk freq between the flash and the SOC?
Hello @brundasathish,
Could you please confirm if you are using the recommended FlexSPI NOR QSPI pins mentioned in the table 11 "ROM Bootloader Peripheral PinMux," of the MIMXRT1160/1170 Hardware Development Guide? I highly recommend reviewing this document which it provides information about board layout recommendations and design checklists to ensure first-pass success and avoid board bring-up problems.
Also, could you please test your flash configuration with the Boot Memory Configuration feature in the Secure Provisioning Tool v26.6? This to verify your FCB configurations.
BR
Habib
Hi @Habib_MS ,
Thank you so much for the reply. We have configured the flexspi2 for the flash and these are the pins that are configured. This is a snapshot of MCUXpresso IDE pin configuration.
We tried configuring the flash using Secure provisioning tool . And this is the response we got .
Thanks in adance
Hi @db16122 ,
The power supply is configured to 1.8V and the clock is 133Mhz.
Hello @brundasathish,
To boot from the FlexSPI2 secondary pin group, it is necessary to configure the corresponding eFuses, as described in Table 10-1 "ROM Bootloader Peripheral PinMux" of the RM, as shown the following image:
Please take in mind that eFuse programming is an irreversible operation. Could you please corroborate that the corresponding fuses are adequately burned to use this secondary group of pins? If the fuses are correctly burned, could you please test again your flash configurations using the Boot Memory Configuration?
Additionally, please note that this pin configuration only supports low-speed read operations, as it does not provide a DQS signal path. Therefore, the maximum supported frequency is 60 MHz in SDR mode and 30 MHz in DDR mode. Please refer to the following community post as it contains a more detailed explanation.
BR
Habib
Hi @Habib_MS ,
Thank you so much for the reply.
I am currently working on configuring and testing the external flash using MCU Secure Provisioning tool (Serial Downloader) mode.
I have set the FLEXSPI_INSTANCE =1 using the BOOT_CFG [11] pin on the external boot switch (as FLEXSPI2 is used)
And how do i enable the FLEXSPI_PIN_GROUP_SEL. Is it via the OTP configuration in MCU Secure Provisioning tool???
And with the above-mentioned boot switch changes (Serial Downloader mode and BOOT_CFG [11] =1) and below attached boot memory configurations in MCU Secure Provisioning tool, I am able to initialize the flash, read the flash content.
But i am not able to erase or write.
I am attaching the boot memory configuration screenshot.
Thanks ,
Brunda Sathish
FYI for 133MHz setting with schematics from AN12183 How to Enable Debugging for FLEXSPI NOR Flash