Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
831 Views

use University Program SD Card ip core - DE2

Hi all; 

I am a student from China,I'm using the University Program sd card ip core in my nios ii ,I have read the SD_Card_Interface_for_SoPC_Builder.pdf and use the program in the pdf. But the function alt_up_sd_card_is_Present() always return 0,seems that there is no sd card in my board ,  

PS: device_reference = alt_up_sd_card_open_dev(SD_CARD_INTERFACE_NAME) suceeds. 

:eek: 

Any help would be greatly appreciated. It's quite curious. 

I'm using quartus 11.1sp2
0 Kudos
5 Replies
Altera_Forum
Honored Contributor I
56 Views

Hi, 

 

u said -"seems that there is no sd card in my board" -  

 

There is no SD card by default on the board on DE2. Insert it into the slot at the bottom correctly and check again .
Altera_Forum
Honored Contributor I
56 Views

Have you included the SD Card module on your SOPC Builder / Qsys project? 

 

Have you used the alt_up_sd_card_open_dev function to open your device first?
Altera_Forum
Honored Contributor I
56 Views

I am using a 16M sd card now ,it works well,thanks

Altera_Forum
Honored Contributor I
56 Views

its like"my pc dosen't work. have you tried tuened it on? oh, yes! " that kind of thing

Altera_Forum
Honored Contributor I
56 Views

Could you please tell me how did you configure your system step by step. I have added University IP cored(SD card) to my project and in nios ii I checked with the provided programme in the manual. In the nios ii project there are no errors and when I print the sd card reference it refers to a place in SDRAM. Also alt_up_sd_card_is_Present() function is not working. But there are no errors. Can you give me any help. Thank you very much...

Reply