Executing out of Winbond serial NOR flash on the MIMXRT1024

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

Executing out of Winbond serial NOR flash on the MIMXRT1024

跳至解决方案
2,165 次查看
BAW
Contributor I

Hello,

I am new to the MXRT parts. I have a MIMXRT1024 eval board. There is a "on-chip" Winbond serial NOR flash (W25Q32JV) connected to the processor via the Flex SPI peripheral. It looks like the access speed is 133 MHZ per bit or 16.625 MHZ per byte.

To XIP our application out of the flash would be extremely slow.

Is my understanding incorrect?

Is XIP out of the flash just not something that is done and the flash is just used as a file system where you store your application and run your application out of RAM?

The issue we would have running out of RAM is that our application program size is larger than the 256KB on the part.

Thanks for any insight,

Brent

 

 

 

 

 

 

标签 (1)
0 项奖励
回复
1 解答
1,899 次查看
lucas_cao
NXP Employee
NXP Employee

Hi @BAW 

For quad mode, it should be :

clock frequency is 133 MHZ for 4 bits => 133 * 4 / 8 = 66.5 MB/sec

But when you using our SDK with IDE(IAR, MCUXpress, Keil), the flashloader will help you enable the Quad mode.

I don't know where the document share this information......Maybe some where have that but i don't know.

在原帖中查看解决方案

0 项奖励
回复
8 回复数
1,926 次查看
BAW
Contributor I

Thanks for the additional info Lucas.

I just want to understand what the access rate of the flash will be when XIP. This is from the reference manual.

24.4 Quad Serial Peripheral Interface

This chip has one Quad Serial Peripheral Interface block (named FlexSPI) acts as an interface to one or two external serial flash devices, each with up to four bidirectional data lines.

The key features includes:

    • Each channel can be configured as 1/2/4-bit operation

    • Support both dual-channel or single-channel operation

    • Support both SDR mode and DDR mode

    • Support up to 166MHz SDR Mode and 166MHz DDR Mode (with external Flash

      device DQS input)

    • Support up to 133MHz SDR Mode and 66MHz DDR Mode (with internal DQS

      loopback mode)

Is the configuration for the RT1024 part when configured for Quad mode => clock frequency is 133 MHZ for 4 bits => 133 * 4 / 8 = 66.5 MB/sec or 133 * 4 * 4 / 8 = 266 MB/sec?

Also you mention - " But when you using our SDK with IDE(IAR, MCUXpress, Keil), the flashloader will help you enable the Quad mode."

Can you point me to documentation for this?

Thank you for your help!

Brent

 

 

0 项奖励
回复
1,900 次查看
lucas_cao
NXP Employee
NXP Employee

Hi @BAW 

For quad mode, it should be :

clock frequency is 133 MHZ for 4 bits => 133 * 4 / 8 = 66.5 MB/sec

But when you using our SDK with IDE(IAR, MCUXpress, Keil), the flashloader will help you enable the Quad mode.

I don't know where the document share this information......Maybe some where have that but i don't know.

0 项奖励
回复
1,842 次查看
BAW
Contributor I

Thank you for the information. That answers my question.

0 项奖励
回复
1,976 次查看
BAW
Contributor I

Thank you for the information.

Can you tell me or point me to the documentation that describes whether the MIMXRT1024DAG5A is utilizing quad mode when connected to its on-chip Winbond serial NOR flash (W25Q32JV)?

Looking at the Winbond documentation below I believe it would be capable of (133MHz x 4) for Quad I/O * 4 / 8 = 266 MB/sec

The W25Q32JV supports the standard Serial Peripheral Interface (SPI), and a high performance Dual/Quad
output as well as Dual/Quad I/O SPI: Serial Clock, Chip Select, Serial Data I/O0 (DI), I/O1 (DO), I/O2, and
I/O3. SPI clock frequencies of up to 133MHz are supported allowing equivalent clock rates of 266MHz
(133MHz x 2) for Dual I/O and 532MHz (133MHz x 4) for Quad I/O when using the Fast Read Dual/Quad
I/O instructions. These transfer rates can outperform standard Asynchronous 8 and 16-bit Parallel Flash
memories.

Is this correct?

Thanks!

 

 

0 项奖励
回复
1,960 次查看
lucas_cao
NXP Employee
NXP Employee

Hi @BAW 

I remember that this flash didn't enable the Quad mode by default. But when you using our SDK with IDE(IAR, MCUXpress, Keil), the flashloader will help you enable the Quad mode.

0 项奖励
回复
2,124 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, my name is Pavel, and I will be supporting your case, the meaning of XIP is executed in place. this means the code can execute from the memory, but the other capability is to charge some tasks in RAM.

Best regards,
Pavel

0 项奖励
回复
2,068 次查看
BAW
Contributor I

Hi Pavel,

Thank you for the response. I am sorry if I was not clear in what I was asking. I know XIP is execute in place.

My question is it looks like the access speed of the Winbond serial NOR flash (W25Q32JV) is 133 MHZ / bit or 16.625 MHZ per byte - 500 MHz running in RAM compared to 16.625 MHZ per byte / 8.3125 MHZ per 2-bytes (depending on if it is a one-byte instruction, two-byte instruction, etc.)

And if you have an processor intensive application you would not be able to XIP out of the flash device (just too slow to if you do), you would need to run out of RAM.

Is my understanding correct?

Thanks for your help,

Brent

0 项奖励
回复
2,015 次查看
lucas_cao
NXP Employee
NXP Employee

If the Flash works under Quad mode, the max speed may:

(Max Frequency * 4 / 8 )    MB/s

0 项奖励
回复