Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
70 Views

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

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
Highlighted
Moderator
52 Views

Re:Working c project for "qspi" read and...

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
Highlighted
Beginner
41 Views

Re: Re:Working c project for "qspi" read and...

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
Highlighted
24 Views

Re:Working c project for "qspi" read and...

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