Altera_Forum
Honored Contributor
19 years agocould not write register in CF card
first of all, insert the CF card
step 1: use full_feature option, add a cf controller, assign pins, download step 2: code in sample.c IOWR_ALTERA_AVALON_CF_IDE_SECTOR_NUMBER(ide_base,ucWrite); ucRead = IORD_ALTERA_AVALON_CF_IDE_SECTOR_NUMBER(ide_base); if(ucWrite != ucRead) printf("Error, ucWrite = 0x%x, ucRead = 0x%x\n", ucWrite, ucRead); step 3: Run! but unfortunately, Error information has been printed: "Error, ucWrite = 0x1, ucRead = 0xFF" i could not find what is wrong.... is there some hardware so i ask for your help thank u