HPS writing to its DDR3 SDRAM

Hi,
Anyone can share an example on how to read and write data from external DDR3 SDRAM on HPS side of cyclone V board. I mean nothing from FPGA side, I just want to read and write data from HPS to its DDR3 SDRAM. Can anyone guide me in this or is there any example?

I have the same situation here.
I would like to stroe data into the external DDR3 memory from a linux programm running on the HPS of a CyclonV SOC.

Can anybody help?

Thank you very much.

If you are running your application under linux enviroment, your program runs in user space which is already in SDRAM memory (because Cyclone V SoC has only 64kB of internal RAM). So any variable or memory you create just sits there already :smiley:

Hi.
You can use mmap if you would like to access DDR memory using a specific physical address. You can see the examples via SW Training Material Part.3 from RocketBoard site.

If you don’t mention about physical address, Your Application is running already on DDR memory. You can use variables or containers like array vector and so on.