imx rt 1021 custom board use flash on FlexSPI B

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx rt 1021 custom board use flash on FlexSPI B

1,296件の閲覧回数
bp1979
Senior Contributor I

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 

  • the device port
  • flash b1 size
  • mux all pins for FlexSPI B

device port adjusted in source/nor_flash.c

bp1979_0-1658855610056.png

 

b1 size adjusted in xip/evkmimxrt1020_flexspi_nor_config.c

bp1979_1-1658855634444.png

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

bp1979_2-1658855860123.png

 

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

 

0 件の賞賛
4 返答(返信)

1,262件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

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.

jeremyzhou_0-1658997061118.png

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.
-------------------------------------------------------------------------------

0 件の賞賛

1,269件の閲覧回数
jay_heng
NXP Employee
NXP Employee

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.

0 件の賞賛

1,284件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

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.
-------------------------------------------------------------------------------

 

0 件の賞賛

1,280件の閲覧回数
bp1979
Senior Contributor I

Hi @jeremyzhou 

Please see attached schematic

0 件の賞賛