Forum Discussion
Altera_Forum
Honored Contributor
12 years agoSD Card Core IP with Nios II - SD Card Detect Issue
Hello, I am having a problem getting my SD card to be detected using the core IP provided by Altera's University Program. I'm using the Nios II processor with Quartus 13.1 and Nios 13.1 Eclipse...
Altera_Forum
Honored Contributor
12 years agoOr better yet, can someone explain what this code is saying...? This is the C code in the HAL src folder
bool alt_up_sd_card_is_Present(void) // Check if there is an SD Card insterted into the SD Card socket. { bool result = false; if ((device_pointer != NULL) && ((IORD_16DIRECT(aux_status_register,0) & 0x02) != 0)) { result = true; } else if (initialized == true) { int index; initialized = false; search_data.valid = false; is_sd_card_formated_as_FAT16 = false; for(index = 0; index < MAX_FILES_OPENED; index++) { active_files[index].in_use = false; active_files[index].modified = false; } } return result; } Thanks!