Hi.
We would like to save data (presets) into Flash memory (currently, we are using a sharc target -- BSP for SC589).
Looking into the AWE framework, we found the Flash file system (AWEFlashFSInstance structure, writeFlashMemoryCallback, etc).
However, we cannot find any documentation for the use of these functions. Is there any available? Is it possible to use the Flash file system from a AWE module? Could you provide any source code example ?
Thank you,
Rodrigo
5:40pm
Hi Rodrigo,
You can store multiple .awb (Audio Weaver Binary) files in the Flash File System that have different preset tunings and then switch AWBs in Flash in runtime using this API call:
INT32 awe_pltExecuteFile(AWEInstance *pAWE, AWEFlashFSInstance *pAWEFlashFSInstance, UINT32 *pFileNameInDWords)
This API requires an AWE instance, a FLASH instance, and a filename. It attempts to load the named AWB into storage from FLASH. For the SC589, the name is packed into 32 bit words. This is because the size of char is 32 bits for the SC589, so packing is involved to get to/from 8 bit bytes.
Thanks,
Michael