Can't seem to add files to the flash memory as the button to add them is grayed out.
I assume it is necessary to call InitFlashFileSystem() but where is this function located ?
Any other reason why it would be disabled ?
Thanks in advance
David
AWE_OPTIMIZE_FOR_SPACE
AWE_FW_SLOW_CODE
BOOL awe_pltInitFlashFileSystem(void)
{
g_filesystem_info.m_FlashDeviceDWords = FLASH_MEMORY_SIZE_IN_WORDS;
return InitFlashFileSystem(FLASH_MEMORY_SIZE_IN_BYTES,
ERASEABLE_BLOCKSIZE,
FILE_SYSTEM_START_OFFSET);
} // End awe_pltInitFlashFileSystem
5:35pm
Hi David,
One reason for this button to be grayed out is that you have no more memory available on your target. Note that the Flash Manager uses a very primitive file system, so if you update a file it gets rewritten to an entirely new sector of memory while the old file remains. If you have updated files in flash multiple times then you may have to erase your target and reload everything.
If this does not help, please respond with information about what target you are connecting to, which version of Audio Weaver you are using, and what BSP your loading.
Thank you,
-Axel
7:31am
Hi Axel
Just revisiting this issue. When I include the call to InitFlashFileSystem() in the function above I am getting the unresolved linker error.
Which module or library is this function located ? When I do a search for it I cannot locate it ! What am I missing here ?
Regards
David
1:12pm
Hi David,
Yes InitFlashFileSystem() should be called to configure flash for Flash Memory Manager. This method is available in CFramework.dlb. There is only one reason for unresolved error and that is the library CFramework.dlb might be compiled without Flash File System support. Could you please provide the following details for quick support?
-> Which target BSP are you using?
-> What is the Audio Weaver version?
Thanks.
BR,
MM
10:16pm
Hi MM
The current configuration is:-
Audio Weaver Build 5.16.B04
AudioWeaver_21489_EZKit.zip dated 17-Dec-2016
I am essentially using the code from the ADI_21489_EZKit build.
In an earlier version the InitFlashFileSystem() was located in FlashFileSystem.c but this doesn't seem to be present in this build.
Regards
David
10:48am
Hi David,
Sorry for the delay in reply. I've verified that the BSP, AudioWeaver_21489_EZKit.zip has Flash File System support. Flash File manager window in AWE Server is normal. i.e. "Add file..." is enabled and all the Flash File System controls are working. Could you please confirm that the link error is happening on EZKit BSP or on custom HW?
Best Regards,
Madhan
4:58am
Hi Madhan
OK I see where I have made the mistake. By calling the c routine from within a cpp file ! Because of name mangling of course the linker cannot find the function. Doh !! Next time I should pay more attention to the details from the linker !
On another related note is it possible to extract the name of the currently running Audioweaver file ? Is this information available ? Would be a nice touch if it was ;)
Kind Regards
David