I tried to develop our own CompactFlash driver on MCF5485EvB, I have the CPLD code and I can successfully read out the CPLD hardware and software revision and signture. I can also read/write the CompactFlash ATA register but after I issue IDENTIFY DEVICE command, the data returned is not correct I could not find the CompactFlash signture there and other information, all the 512 bytes data contains the same data pattern. I also try to use the sample code in the linux BSP CompactFlash driver but there is no progress.
Who has successfully make their own CompactFlash driver on this board? could you give me some tips, for example, CS5 timing settings or ATA register read/write rountine?
Thanks in advance.
|