Altera_Forum
Honored Contributor
20 years agoCompact Flash and the Fat File System
Does anyone have a sample app that instansiates the compact flash device and mounts it as a flash file system.
According to the docs, I should be able to define the define using: ALTERA_AVALON_CF_INSTANCE( CF_0, cf_0); where cf_o is the name of my SOPC compact flash device. However, this is defined in altera_avalon_cf_devices.c and the macro is not visable in my file. To mount the file system I am calling the following( which fails, -1) err = mount( "/dev/cf_0a/0", "/", "fatfs" ); Any advice would be appriciated.