Forum Discussion
Altera_Forum
Honored Contributor
21 years agoTo Dennis and Ken,
Could you help with this problem symptom I faced when trying your CF_component zip files (after modifying pinout to work with my ALtera Stratix2 2s60ES board and recompile in Quartus to get my working linux.sof; note my software doesn't have Linux kernel, just your ideutils.c, idemon.c files): -1)(in function IDE_inititalize) these 10 writes/verfies using this command are successful : IOWR_ALTERA_AVALON_CF_IDE_SECTOR_NUMBER(ide_base, ucWrite); -2)the insertion and removal interrupts of the CFcard seem to work OK and reliably -3)but , in your file ideutils.c function "IDE_identifyDevice" , when reading CF register "alternate status register" to poll for DRDY line to be High , this line never goes High which caused the function call "IDE_identifyDevice" to fail. Does this indicate a hardware (eg pinout or CFcard itself) or software problem? Thanks for your help!!! Note: 2 related symptoms are: a) in step 1, the 10 writes/verifies ALSO PASSed even if I DELETED (in function "IDE_initialize") the command to turn ON the MOSFET power to CF : IOWR_ALTERA_AVALON_CF_CTL_CONTROL(ctl_base, ALTERA_AVALON_CF_CTL_STATUS_POWER_MSK); Why is this possible? Do you expect CFcard to work without this Power_on command? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/cool.gif when first run the software(before any write) , DRDY is actually High , but then any write command to CF (eg write to SECTOR_NUMBER register as in step#1) would cause DRDY to stuck low forever