Forum Discussion
Altera_Forum
Honored Contributor
20 years agonow, I meet the same problem.
when I design the socket between up3 board and compactflash, because the compactflash works in TRUEIDE mode ,so I directly attached the atasel_n pin to GND. rfu and we_n pin to VCC,and I don't allocate pin to the reset,power pin . is it ok???????? and when I masked " for(ucWrite = 0; ucWrite < 10; ++ucWrite) { IOWR_ALTERA_AVALON_CF_IDE_SECTOR_NUMBER(ide_base, ucWrite); ucRead = IORD_ALTERA_AVALON_CF_IDE_SECTOR_NUMBER(ide_base); if(ucWrite != ucRead) { iGood = 0; printf("IDE_initialize(): error: verify fail: wrote 0x%X, read 0x%X\n", ucWrite, ucRead); } } if(iGood) { if(IDE_getVerbosity()) { printf("IDE_initialize(): wrote and verified %d values successfully.\n", ucWrite); } } else { printf("IDE_initialize(): error: failed register write/readback test.\n"); return -1;" the programme executes until "IOWR_ALTERA_AVALON_CF_IDE_CTL(ctl_base, ALTERA_AVALON_CF_IDE_CTL_IRQ_EN_MSK);" ,then stop. but when i mask " alt_irq_register(ide_irq, 0, IDETrapHandler);" ,it can continuously execute. and I don't know how to set the power_ from the cf_0 pin in sopc