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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Jump to solution
579 Views
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

Labels (7)
0 Kudos
1 Solution
22 Views
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!

View solution in original post

0 Kudos
5 Replies
23 Views
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!

View solution in original post

0 Kudos
23 Views
NXP Employee
NXP Employee

Hi,

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

Regards

Rene

0 Kudos
23 Views
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 Kudos
23 Views
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 Kudos
23 Views
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 Kudos