I am using a MCF5223 Demo Board and the the USB demo projects supplied by Freescale and CMX - particularly the USB Mass Storage Application.
I am using the supplied functions (via the thin-lib.a library) f_open, f_write, and f_close to open, write to, and close files on the USB drive
However, what I would really like to do is to be able to first create a file that doesn't already exist on the drive, and then subsequently write to it. Does anyone know of a way to do this with the CMX library? f_open returns zero if I supply a file name that doesn't exist already, and f_write needs a file pointer supplied by f_open, so I'm sort of at a loss. I've reviewed the available documentation, and I could not find a function that appeared to be suitable for creating files. I've contacted CMX, and they assured me that I could indeed create files, but inofmred me that I should contact Freescale.
Thank you very much for any help.