I am working with FileX on USB Mass Storage on a custom design and having a few problems. To start with, I can navigate folders, create, read and write files on the USBMSC without any issues, but when I try to create a new directory the program hangs after entering fx_directory_create(). Here is an example of the code:
// Get the pointer to FileX Media Control Block for a USB flash device p_media = g_fx_media0_ptr;
// Retrieve the volume name of the opened media from the Data sector fx_return = fx_media_volume_get(p_media, volume, FX_DIRECTORY_SECTOR);
if( fx_return != FX_SUCCESS )break;
fx_return = fx_directory_create(p_media, "factory"); // Create new directory - MY PROGRAM NEVER RETURNS FROM THIS FUNCTION CALL if( fx_return != FX_SUCCESS ) break;
I then tried adding the FileX source to see if I could determine where the function call was breaking. In doing so I created another problem that results in a build failure:
makefile:99: recipe for target 'm908_rcu.elf' failedmake (e=87): The parameter is incorrect.
make: *** [m908_rcu.elf] Error 87
Removing the FileX source again resolves this issue, but I cannot debug the fx_directory_create() problem. I have read that this error is associated with path length, but it is unclear how to resolve it without changing path names.
If anyone has any suggestions for either issue I would greatly appreciate your help.
In reply to Jamie: