简体   繁体   中英

Write data to SD card using Zynq

I am developing an application using a ZedBoard (having a Xilinx Zynq FPGA). The board will be connected to multiple SD cards. One SD card is used to boot and program the FPGA (no problem here). Once that is over, the FPGA will have to do some data processing and write the contents to the second SD card using SDIO protocol. I have not come across any useful documentation/tutorials etc that show how to write data to the SD card either directly using VHDL logic or through the PS using AXI4 - DMA. Also, there are no free Xilinx or 3rd party IP blocks for SD card read/write access. Could someone please provide me with some tips/help regarding this?

Thanks.

要在裸机应用程序中操作SD卡,可以在SDK安装目录中引用sdps驱动程序的API,例如

C:\Xilinx\SDK\2015.3\data\embeddedsw\XilinxProcessorIPLib\drivers\sdps_v2_5

Zynq PS7 has two SDIO controllers, so you can connect the second one to your second SD card socket. The second controller uses MIO pins, which on Zedboard are routed to PMOD connector JE.

The pinout of JE does not match that of Digilent's PMOD SDIO, but with some fly wires you can swizzle them to the correct connections.

The first answer points you to bare metal software to talk to the SD card.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM