Cannot understand how XIP FlexSPI configuration could work on IMXRT1060-EVKB

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

Cannot understand how XIP FlexSPI configuration could work on IMXRT1060-EVKB

ソリューションへジャンプ
3,164件の閲覧回数
SpoonMan
Contributor IV

Hello,

I can't truly understand how the configuration coming with XIP examples on IMXRT1060-EVKB could work with IS25WP064 QSPI Flash memory.

Provided configuration is the following:

SpoonMan_0-1674471813941.png

from where it's clear that LUT command setup here at index 0, corresponding to the read command according to Table 22-2 in Reference Manual, is 0xEB which corresponds to Fast Read Quad I/O Operation from IS25WP064 datasheet while there's no evidence about if, where and how QE (Quad-Enable) bit is set in status register to enable the use of such quad-read operation.

 

 

タグ(3)
0 件の賞賛
返信
1 解決策
2,856件の閲覧回数
SpoonMan
Contributor IV

After months of discussion with Omar from NXP Tech Support, I would like to share his (incomplete, sadly) explanation with you. I really don't know why NXP wouldn't participate so much in public threads like this, to share knowledge to as much people as possible at the same time... but, this is it.

"It is possible that this QE bit is set on the flash driver (CFX file) on McuXpresso. Unfortunately, it is not possible to get the source file to confirm this, those source files are not available for the public."

元の投稿で解決策を見る

タグ(5)
0 件の賞賛
返信
12 返答(返信)
2,857件の閲覧回数
SpoonMan
Contributor IV

After months of discussion with Omar from NXP Tech Support, I would like to share his (incomplete, sadly) explanation with you. I really don't know why NXP wouldn't participate so much in public threads like this, to share knowledge to as much people as possible at the same time... but, this is it.

"It is possible that this QE bit is set on the flash driver (CFX file) on McuXpresso. Unfortunately, it is not possible to get the source file to confirm this, those source files are not available for the public."

タグ(5)
0 件の賞賛
返信
3,035件の閲覧回数
diego_charles
NXP TechSupport
NXP TechSupport

Hi @SpoonMan 

Here is a correction for my previous comment. Sorry for the inconvenience.

Enabling quad mode operations is something that needs to be done before hand. For example there is a bit that needs to be programmed a single time on the memory. Boot rom will attempt to communicate with the memory by using  LUT commands, and those commands now can be for quad mode.

Diego

 

0 件の賞賛
返信
3,021件の閲覧回数
SpoonMan
Contributor IV

Hi @diego_charles!

Hope you're doing well

I sadly have to say you're still not answering to my question... Please, check the screenshot in heading post, you can see by your eyes that XIP read command in LUT is configured as:

FLEXSPI_LUT_SEQ(CMD_SDR, FLEXSPI_1PAD, 0xEB, RADDR_SDR, FLEXSPI_4PAD, 0x18),
FLEXSPI_LUT_SEQ(DUMMY_SDR, FLEXSPI_4PAD, 0x06, READ_SDR, FLEXSPI_4PAD, 0x04),

which means that FAST READ QUAD I/O command is configured to send address, dummy cycles and read data on 4 lines, and according to IS25WP512M Flash memory datasheet:

SpoonMan_0-1676469848671.png

QE bit in Status Register must be set before sending such instruction.

So, the question is... how is this possible? Who, when and where is sending Write Status Register command with appropriate QE bit set?

 

P.S. Yes, I know IS25WP512M is not the standard Flash mounted on eval board, but IS25WP064AJBLE should be the same because J means "standard" and not "QE=1 by factory" according the datasheet:

SpoonMan_1-1676470145376.png

 

0 件の賞賛
返信
3,123件の閲覧回数
diego_charles
NXP TechSupport
NXP TechSupport

Hi @SpoonMan 

I hope you are doing well!

I am sorry for the lack of details, but per my knowledge the bootROM does the job to send  Quad mode command to the  flash memory during  MCU boot.

Best regards, 

Diego

 

0 件の賞賛
返信
3,113件の閲覧回数
SpoonMan
Contributor IV

Hi @diego_charles ,

hope you're doing well too! Sorry if the following question may look weird, but... from where did you get this information?

According to another thread:

https://community.nxp.com/t5/i-MX-RT/How-to-configure-QSPI-flash-before-BootROM-read-data-from-it/m-...

@jeremyzhou was asserting that QE can be set during application time like in flexspi_nor_polling_transfer demo and that we all are encouraged to follow that example code, but this is not what I'm asking. My question is basically the same as the one asked by @ju-hakpark in the thread I linked, which is: how and where is QE configured before XIP takes place? (and how can I see/edit such configuration, for example to enable 4-byte addressing too?)

Thanks in advance for your help

Best regards!

0 件の賞賛
返信
3,075件の閲覧回数
SpoonMan
Contributor IV
Bump.
タグ(1)
0 件の賞賛
返信
2,840件の閲覧回数
kef2
Senior Contributor V
Quad enable is non volatile bit stored in your flash memory chip. The simplest should be writing it at flash memory program time.
0 件の賞賛
返信
2,837件の閲覧回数
SpoonMan
Contributor IV

Hello @kef2 

I know that QE could be stored in flash memory at non-volatile registers. The point is that I noticed that demos are working using quad read in XIP LUT even if I don't set QE explicitly in volatile and/or non-volatile registers, and even if I de-solder existing chip on EVK and solder a new one.

This is the meaning of the topic. Hope that now it's more clear to you too.

0 件の賞賛
返信
2,834件の閲覧回数
kef2
Senior Contributor V

Demos are just demos, remove QE if you are not using quad mode. Simple.

0 件の賞賛
返信
2,829件の閲覧回数
SpoonMan
Contributor IV

The point is NOT I don't need QE, the point is I would like to UNDERSTAND who, when and where is setting QE. Understanding is everything if your goal is to develop rock-solid platforms and applications.

I hope that now it's clear the point of this topic.

0 件の賞賛
返信
2,826件の閲覧回数
kef2
Senior Contributor V

Do you imply that you had really blank flash chip, with non volatile QE bit unprogrammed, and demo, which isn't programming QE works well in quad mode? So, wasn't QE programmed before you launched your app for the first time? 

0 件の賞賛
返信
2,818件の閲覧回数
SpoonMan
Contributor IV
Exactly.
0 件の賞賛
返信