Zedboard Transfer Data from SD Card to DDR

妖精的绣舞 提交于 2019-12-12 04:37:07

问题


I have a file on an SD Card that I want to transfer to the DDR memory on the Zedboard. I am using a baremetal application to do this. This worked for data less than 2048 bytes but when the data exceeds 2048 bytes, the Zynq processor hangs when it tries to transfer the data.

Function call to read SD Card data and transfer to DDR memory:

FileOpResult = f_read(&fil_obj,(void*)DDRDestAddr, DDRTxSize, *br);

DDRDestAddr is XPAR_PS7_DDR0_S_AXI_BASEADDR (0x00100000) Zynq Processor hangs when DDRTxSize at 2048 and above

Is there some limit on the amount of data that I can transfer from the SD Card to the DDR memory? Where can I change this? Or is there some fundamental mistake I made?

Update: Ok turns out my problem is solved if I simply transfer the data to another region of the DDR memory address instead 0x00200000. Not sure why exactly 0x00100000 can't work when it's clearly seen in the xparameters.h that it is the base address of the DDR memory.

Successfully transferred ~13megabytes from SD Card to DDR starting at address 0x00200000.


回答1:


Ok turns out my problem is solved if I simply transfer the data to another region of the DDR memory address instead 0x00200000. Not sure why exactly 0x00100000 can't work when it's clearly seen in the xparameters.h that it is the base address of the DDR memory.

Successfully transferred ~13megabytes from SD Card to DDR starting at address 0x00200000.



来源:https://stackoverflow.com/questions/46071948/zedboard-transfer-data-from-sd-card-to-ddr

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!