Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12606 Discussions

CompactFlash Card Test problem.

Altera_Forum
Honored Contributor II
1,126 Views

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&#39;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
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
200 Views

Hi All, 

 

I have solved my problem.  

Here I want to say that if you use cf card and appear the problem above, pls use Jesse&#39;method in hardware and Andrew&#39;s method in software. They are both helpful. 

 

Thank you, 

LiangYi
0 Kudos
Reply