Dear NXP,
We are trying to use the secondary flash we added on our custom board. Our board hosts an imx rt 1021 chip. We have two flash memory modules, both are the same type used on the 1021 EVK board.
One flash module is connected to FlexSPI A1, the other is connected to FlexSPI B1.
We can run our application from FlexSPI A1. We are now trying to erase/write/read from FlexSPI B1.
When I upload the EVK example nor_flash and change
device port adjusted in source/nor_flash.c
b1 size adjusted in xip/evkmimxrt1020_flexspi_nor_config.c
and pinmuxes defined as
IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B0_01_FLEXSPI_B_SS1_B, 0U);
IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B0_04_FLEXSPI_B_SS0_B, 0U);
IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B0_05_FLEXSPI_B_DQS, 0U);
IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B1_00_FLEXSPI_B_DATA03, 0U);
IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B1_01_FLEXSPI_B_SCLK, 0U);
IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B1_02_FLEXSPI_B_DATA00, 0U);
IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B1_03_FLEXSPI_B_DATA02, 0U);
IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B1_04_FLEXSPI_B_DATA01, 0U);
IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B1_05_FLEXSPI_A_DQS, 1U);
IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B1_06_FLEXSPI_A_DATA03, 1U);
IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B1_07_FLEXSPI_A_SCLK, 1U);
IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B1_08_FLEXSPI_A_DATA00, 1U);
IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B1_09_FLEXSPI_A_DATA02, 1U);
IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B1_10_FLEXSPI_A_DATA01, 1U);
IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B1_11_FLEXSPI_A_SS0_B, 1U);
I get the following error in when initializing flash.
kStatus_FLEXSPINOR_Unsupported_SFDP_Version
What are we doing wrong? Is there any application note you could refer to which take us a bit through the process?
Many thanks in advance
Hi,
Thanks for your reply.
Firstly, as Jay mentioned, it's unnecessary to modify evkmimxrt1020_flexspi_nor_config.c for PortB1, next, after going through the schematic, I find the GPIO_SD_B1_05 is configured as the FLEX_SPI_B_SS0_B, actually, it should keep floating and work as the FLEXSPI_A_DQS when the MCU is running code in the QSPI which connects to the FlexSPI_A port.
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Are you using below SDK demo?
\SDK_2.11.0_EVK-MIMXRT1020\boards\evkmimxrt1020\driver_examples\flexspi\nor\polling_transfer\iar.
How do you use mem_config variable in your application? This variable is not used in SDK FlexSPI demo.
xip/evkmimxrt1020_flexspi_nor_config.c is for ROM boot, you don't need to modify it for PortB1, as the flash connected to Port B1 is used for IAP.
Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
Before answering your question, I was wondering if you can upload the schematic of the custom board.
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------