Zedboard将数据从SD卡传输到DDR [英] Zedboard Transfer Data from SD Card to DDR

查看:791
本文介绍了Zedboard将数据从SD卡传输到DDR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将SD卡上的文件传输到Zedboard的DDR内存中.我正在使用裸机应用程序来执行此操作.这适用于小于2048字节的数据,但是当数据超过2048字节时,Zynq处理器会在尝试传输数据时挂起.

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.

调用SD卡数据并传输到DDR存储器的功能调用:

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

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

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

DDRDestAddr是XPAR_PS7_DDR0_S_AXI_BASEADDR(0x00100000) 当DDRTxSize等于或大于2048时,Zynq处理器将挂起

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

从SD卡传输到DDR存储器的数据量是否有限制?我在哪里可以更改?还是我犯了一些根本性的错误?

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?

更新: 好的,事实证明,如果我仅将数据传输到DDR内存地址的另一个区域而不是0x00200000,就可以解决我的问题.当在xparameters.h中清楚地看到它是DDR存储器的基地址时,不确定为什么0x00100000不能正常工作.

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.

从地址0x00200000开始,成功地将约13MB的字节从SD卡传输到DDR.

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

推荐答案

好吧,如果我简单地将数据传输到DDR内存地址的另一个区域而不是0x00200000,就可以解决我的问题.当在xparameters.h中清楚地看到它是DDR内存的基地址时,不确定为什么0x00100000不能正常工作.

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.

从地址0x00200000开始,成功地将约13MB的字节从SD卡传输到DDR.

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

这篇关于Zedboard将数据从SD卡传输到DDR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆