QSPI flash chip addressing

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

QSPI flash chip addressing

2,943 次查看
jautry
Contributor IV

I have a new design and need clarification on how QSPI flash units are addressed.  I have two 128Mb flash chips running on the Flexspi unit of a iMXRT1062.  One is tied to SPI-A-SS0-B and the other is tied to SPI-A-SS1-B, the rest of the signals are shared.  Would I be able to access 0x60000000 to 0x60010000 with the second chip automatically selected at the rollover point?

标记 (1)
0 项奖励
回复
5 回复数

2,934 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
1)Would I be able to access 0x60000000 to 0x60010000 with the second chip automatically selected at the rollover point?
-- No, I'm afraid not, and I'd like to suggest you go through the 27.5.5 Flash memory map section in the RM to learn the memory assignment.

jeremyzhou_0-1644561282773.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 项奖励
回复

2,908 次查看
jautry
Contributor IV

Is there sample driver code for setting up individual QSPI flash on A1 and A2.  I have tried to mod the sdk flexspi_nor program but it seems to fail anytime I set the flash size for A2 like it is conflicting with A1.  I get bogus vendor ID and the erase verify fails.  The only change I made was adding the second SetFlashConfig call for A2.  This first flash is on SPI-A-SS0-B and the second on SPI-A-SS1-B.

标记 (1)
0 项奖励
回复

2,882 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
To provide the fastest possible support, I'd highly recommend you to refer to the application note, moreover, the attachment is its demo code.
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 项奖励
回复

2,867 次查看
jautry
Contributor IV

I just need some clarification.  In the sample code I see A2Port being set to quad mode but not A1Port.  Also, there are other commands that set A1Port but not A2Port.  Should not both ports be set or does the proc do that for you?

0 项奖励
回复

2,930 次查看
kef2
Senior Contributor V
  • 1)Would I be able to access 0x60000000 to 0x60010000 with the second chip automatically selected at the rollover point?
    -- No, I'm afraid not, and I'd like to suggest you go through the 27.5.5 Flash memory map section in the RM to learn the memory assignment.

 

Hm, my answer is yes, of course. Provided FAx_SIZE and FBx_SIZE settings are programmed correctly and do match memory chip sizes, QSPI memory area should be contiguous like it is shown in your picture, chip selects will act accordingly. Memory chips, which are not used may have their settings FAx_SIZE or FBx_SIZE equal zero and that would be still contiguous memory area.

 

Regards,

Edward

0 项奖励
回复