Altera_Forum
Honored Contributor
20 years agoCompactFlash Card Test problem.
Hi All,
I have my own custom board with a compact flash interface. Now I am testing it and have some problem I do not know. Here is my testing process. I use Quartus II 5.0 and Nios eval 5.0 with 8M bytes CompactFlash Card. First, no cf card plugged in. I test cf_power5(it is low voltage) and cf_present_n5(pull high). Then, plug cf card, now cf_power5 is also low and cf_present_n5 become low. Third, I download the software(download from forum site) and test cf_power5(become high level) and switch is given 5V output. According to above, I think the hardware connection seems OK. I run debbug as... and execute the programm step by step(cf_test.c). But, when run <div class='quotetop'>QUOTE </div> --- Quote Start --- /* Register write/readback test */[/b] --- Quote End --- , it displays <div class='quotetop'>QUOTE </div> --- Quote Start --- IDE_initialize(): error: verify fail: wrote 0x1, read 0x0 IDE_initialize(): error: verify fail: wrote 0x2, read 0x0 IDE_initialize(): error: verify fail: wrote 0x3, read 0x0 IDE_initialize(): error: verify fail: wrote 0x4, read 0x0 IDE_initialize(): error: verify fail: wrote 0x5, read 0x0 IDE_initialize(): error: verify fail: wrote 0x6, read 0x0 IDE_initialize(): error: verify fail: wrote 0x7, read 0x0 IDE_initialize(): error: verify fail: wrote 0x8, read 0x0 IDE_initialize(): error: verify fail: wrote 0x9, read 0x0 IDE_initialize(): error: failed register write/readback test. Cannot initialize IDE device.[/b] --- Quote End --- I have searched the forum and followed Jesse's paste. I tie the ATASEL_n to pull-down resistor and add delay after main() of cf_test.c file. But, still verify fail. Can help me? Thank you, LiangYi