How to copy application from QSPI Serial Flash to RAM and jump to application?

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

How to copy application from QSPI Serial Flash to RAM and jump to application?

跳至解决方案
4,557 次查看
ericshufro
Contributor I

Does anyone have any experience and or sample code demonstrating how to copy an application from serial flash into external memory and then jump to the application entry point?  Also, many of the reference drivers available / pointed to in the forums do not seem to use DMA.  We have some pretty tight startup constraints and were wondering if there is a DMA version of the driver, and if so, would it be any faster than the non DMA versions available?

Does anyone have any timing examples for loading ~3MB (or any size for that matter) from serial flash to RAM at boot time with and without DMA?

Note: We have two 4MB serial flash parts, we are not using parallel mode.  How much performance could we gain if we enabled parallel mode with and without DMA? Is it worth the extra effort?

Thank you in advance,

--Eric

标签 (7)
0 项奖励
回复
1 解答
4,000 次查看
CommunityBot
Community Manager
This an automatic process.

We are marking this post as solved, due to the either low activity or any reply marked as correct.

If you have additional questions, please create a new post and reference to this closed post.

NXP Community!

在原帖中查看解决方案

0 项奖励
回复
5 回复数
4,001 次查看
CommunityBot
Community Manager
This an automatic process.

We are marking this post as solved, due to the either low activity or any reply marked as correct.

If you have additional questions, please create a new post and reference to this closed post.

NXP Community!
0 项奖励
回复
4,001 次查看
rendy
NXP Employee
NXP Employee

Hi,

there are sample codes available for Vybrid tower board: Sample Code for Vybrid Controller Tower System

Regards

Rene

0 项奖励
回复
4,001 次查看
alejandrolozan1
NXP Employee
NXP Employee

Hi,

It seems that you may need to boot from QSPI in non-xip mode, right?

If that is correct you may find the next useful:

QuadSPI XIP and NON-XIP boot

I  have not checked the boot time yet.

I hope it helps.

/Alejandro

0 项奖励
回复
4,001 次查看
jiri-b36968
NXP Employee
NXP Employee

Hi Eric,

Alejandro's document will help you for sure.

The think you are looking for is what uBoot is doing. Source code are available on Timesys pages Embedded Linux software, platform, distributions, packages, libraries, development and debugging too... .

Also Vybrid sample code for TWR-VF65 can help you. Sample Code for Vybrid Controller Tower System.

quadspi_load project is able to program quad spi memories with hello_world project binary, which was build for quadspi target.

/Jiri

0 项奖励
回复
4,000 次查看
jiri-b36968
NXP Employee
NXP Employee

Hi Eric,

discovered that on web sample code is which does not support parallel mode. We will try to update it.

Attached is updated code.

/Jiri

0 项奖励
回复