Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20704 Discussions

Working c project for "qspi" read and write from hps arm controller baremetal

hsaee6
Beginner
590 Views

Hello,

I am new developer for the Cyclone v SoC.

I want to read and write from the QSPI flash in my HPS baremetal application. I want to write a very simple data in words format.
e.g.
write data 0xABCD, 0xCDEF, 0x1234
and then read it back.

I checked the following functions but they are not working for me.
alt_qspi_write
alt_qspi_read

I think i need to initialize the qspi and do the other initialization etc before using alt_qspi_write or alt_qspi_read.

Is there any one who developed a c program for QSPI of DE0-NANO-SOC?
is there any built application project doing the simple read and write on QSPI?

0 Kudos
3 Replies
Esteban_D_Intel
Moderator
572 Views

Hello hsaee6,

 

Thank you for posting on the Intel® communities.   


I would like to inform you that we have a specific forum for this matter.


I will proceed and move your question to the appropriate support in order to continue with the assistance.

 

 

Best Regards, 

 

Esteban D. 

Intel Technical Support Technician 

 


0 Kudos
hsaee6
Beginner
561 Views

i found the answer to my question.

in attachment is the source code.

you can import the code in the DS-5

then in the main.c you can find the QSPI read and write.

 

0 Kudos
EBERLAZARE_I_Intel
544 Views

Hi,


Unfortunately, we do not have example in baremetal environment, if you opt to there are examples in:

https://code-time.com/default.html


If you want to access the QSPI in the HPS side, you need to configure it first, you may refer below for guidance:

https://rocketboards.org/foswiki/Documentation/SocBoardQspiBoot

https://www.intel.com/content/www/us/en/programmable/documentation/lro1404103165481.html


0 Kudos
Reply