Hi,
If I want to create a file using the non-volatile file system(Flash FS), should this work:
HANDLE lhFile = ::CreateFile(_T("\\NOR Flash\\testfile.txt"),
GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ,
NULL,
OPEN_ALWAYS,
FILE_ATTRIBUTE_NORMAL,
NULL);
ASSERT(lhFile != INVALID_HANDLE_VALUE);
Prior to executing the above code
(which fails) , I can see on the device through the Storage Manager that I have the approx 4.2MB partition. The .reg file for the FlashFMD has auto-format on and auto-partition. (Note, formatting from the GUI on the device always fails).
Do I need to do anything else?
Thanks,
/michel