i understand that FATFs is a 3rd party, open source resource but i also know that TI will likely handle it a little differently
i have a project that i am running on the LCDK, and i have it based on the MMCSD FATfs project. i am afraid the documentation doesn't fill me in like i would prefer.
my first question is: how does PSP_blkmediaFATfsRegister(MMC_INST_ID, PSP_MMCSD_SAMPLE_DRIVE); register the FATFS system with the SD card? in the 6748 is the SD card ALWAYS driver ID 1? is the "drive" number always 1 for the CD card or can that be anything?
i am trying to figure out how to create a directory, and more importantly, how the directory structure works on this.
my first question has to do with directory structure. when i add in the string to access a file how does it look? i understand it has to start with "fat:"drive number": but after that do i use slashes? i saw that you should use "\\" to prevent special characters from making it in. if i want to create a folder "folder" and i made a file called "file.txt" would it look like "fat:1:\\folder\\file.txt"?
if i stick the SD card in a windows 7 computer would it recognize the file system?
so after the format i am trying to make a directory: f_mkdir("fat:1:\\folder") i also tried f_mkdir("folder") and this always results in a return value of 12, which translates to FR_NOT_ENABLED which means "Work area for the logical drive has not been registered by f_mount function" (this was quite the pain to find by the way). so i seem to need to do an f_mount on my SD card, right? i guess i would have imagined that registering the CD card with the FATFS file system would have done this for me (since in the help for FATFS it says it "registers" the drive to a mount # which i thought it already did). so this leads to the question of what is a "FATFS *" type? i am guessing it is a pointer to a FATFS file system root. do i have to create one? is that a file global variable i have to keep track of? once i create one do i have to create one every time i boot my project? is this a value that i keep in nonvolatile memory? can i "find" a FATFS once i make one or does registering a drive find one that was already there once before? if i don't need to make one and PSP_blkmediaFATfsRegister does the register for me, what am i doing wrong to make a directory?
i am sure i will have more questions once i get further into it.