Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

How to use Compact Flash in eCos?

Hi. I'm having problems accessing the compact flash card in eCos. I tried a program that mount the filesystem to / and write a file to it. But the program hangs when I try to open a file. I have run the cf_ide_test that comes with the compact flash ip from this forum. The card is recognised properly. I have also tried to run the fileio1.c test program that is in eCos. I get a -1 error when it tries to mount the FAT fs that's on the CF card. I can read and write to and from it in Windows. It's a brand new card, Kingston Elite Pro High Speed 512 MB.

I have read that I need to remove and insert the card again in some cases. I have tried this, but it does not work. Does anyone have some tip to what I might do?

Ole

17 Replies