Altera_Forum
Honored Contributor
19 years agoCompact Flash Card
Hi ecos community,
I have a Nios dev board (Stratix edition) running an eCos application that logs data onto a Compact Flash card. My application runs well, but I am trying to improve it in the way it deals with the Compact Flash card. I would like my application to be able to get info on the CF card, ie card size, card maker, free space etc. I suspect the CF driver does not support this at present, but if it does I would like to know how. Also, the CF driver supports interrupt driven card insertion functionality for card initialization, but on my board this does not work, as far as I can tell no interrupt is generated when a card is inserted. If anyone has experience in this area I would like to hear about it. More detail follows... From the API the following code should allow access to CF info: error = cyg_io_lookup("/dev/cfa/1",&cf_handle); // get handle to CF error = cyg_io_get_config(&cf_handle,0,xbuf,&len); but the function alt_avalon_cf_get_config in altera_avalon_cf.c is just an empty stub, however the line of execution never appears to reach this code. Is there anyone else out there using CF cards? Peter