Forum Discussion
SD Card Interface with DE2 in Verilog
Hi,
I am working on the DE2 development board and I have make use of an SD Card to store data (JPEG image data for the final project output). Can you kindly point me to where I should start? Materials would be nice. :) Past inquiries in other forums suggested that I look into a file system for the SD so that I could use it in PCs. Also, mentors of mine suggest I look into the clocking diagram of an SD interface. These are overwhelming topics so I'd like to know where to start. Thank you in advance.16 Replies
- Altera_Forum
Honored Contributor
Have you examined the reference designs/tutorials from Terrasic? On the DE2 CD there is a example design: "Karaoke Machine and SD Music Player" which uses a Nios II interface with SD card support.
Depending on how you are planning to do it (ie. using Nios II processor or strictly HDL based), you may want to read up on the Nios II developers guide which documents filesystem support and access using the HAL API provided by Altera. SD card is probably one of the only features I haven't used on the DE2 before sorry, so can't give you any code :(. But have a good look at the Terrasic design samples and search this forum too for lots of good info. - Altera_Forum
Honored Contributor
Thank you for the reply :)
I actually checked out the altera site if they have IP cores but the SD card is not available. The music player demo of terasic is getting so many complaints that it is not working but gonna give it a try anyway:D Thanks! - Altera_Forum
Honored Contributor
you can get university program sdcard on website :
university.altera.com there are for quartus 9.0 and 9.1. but i have not learn to use it ! who can help me ? thank ! - Altera_Forum
Honored Contributor
I tried using the university program SD card Ip core, but it didnt work, as in it didnt detect the FAT16 file system. I asked altera people, but they were unable to solve the issue.
So, i adopted the Nios version, given in the DE2_SD_CARD_AUDIO example, which is the music player. It works perfectly fine, - Altera_Forum
Honored Contributor
Hi syn_vnky,Did you get the FAT16 Filesystem working? If so, could you please send me the source. I would be very helpful for me.
Thanks! duckhunter - Altera_Forum
Honored Contributor
Hi,
--- Quote Start --- it didnt detect the FAT16 file system --- Quote End --- Have you tried formating the SD card in FAT format? I have a 512MB SD Card, DE2 Board and Windows XP 32-bit Operating system. As I format the 512MB Card, It formats it to FAT format which is FAT16. It should indicate that it has 62,000+ clusters "allocation spaces" only. Then I used the UP IP for the SD Card, it works :) I was able to create a file, write data to it and read from it. THE PROBLEM: I am not able to create another file. And I do not know how to change the file type as I can only create "FILE" format files. I want to be able to create JPEG, TEXT formats as well. :) - Altera_Forum
Honored Contributor
Please , send me the full project ! can you help me ... this term, i have project SD card streaming player on DE2 by using Ethernet protocol... but i'm a beginner ... haizzz
- Altera_Forum
Honored Contributor
Hi ,if we convert 4gb card from fat32 to fat16 ,University IP will detect the 4gb card??
- Altera_Forum
Honored Contributor
Hi every one! I have a kit named VEEK -MT, The sample programs provided by terasic to capture the image are for RUN time only. I want to store the date in SD card provided. But I am not finding any relevant document for the same. It will be helpful, If anyone help me regarding this issue.
- Altera_Forum
Honored Contributor
I have the project in which the image is captured and stored in the sdram, now the goal is to store the image in sdcard. but I git struck in the situation here. If there is any help from anyone, It will of great use.