Forum Discussion
Altera_Forum
Honored Contributor
13 years agoHi,
I am having a similar problem when trying the example software provided in the University program PDF i.e. printf("Insert the SD Card \n"); device_reference = alt_up_sd_card_open_dev(SDCARD_INTERFACE_NAME); if (device_reference != NULL) { while(1) { if((connected ==0) && (alt_up_sd_card_is_Present())) { printf("SD Card Connected. \n"); if(alt_up_sd_card_is_FAT16()) { printf("FAT16 file system detected!!! \n"); .... Each time I debug the program, the function alt_up_sd_card_is_Present() always return 0. In Altera_UP_SD_Card_Avalon_Interface.c the pointer *aux_status_register value is 0x01 which leads to 0 in the operation *aux_status_register & 0x02. What I don't understand is why this pointer has that particular value? I know the SD Card is well formatted because I can run the DE1_SD_Card_Audio example.