On our current port to a custom STM32L4 board, we intend to utilizes a 64k byte portion of the internal flash for AWE's file system. The following call results in a return code of FAILURE:
#define FILE_SYSTEM_START 0x080E0000 /* first address of awe 64k chunk of flash*/
#define FLASH_MEMORY_END_PLUS_1 0x080F0000 /* end of flash AVAILABLE TO AWE */
#define ERASEABLE_BLOCKSIZE 0x0800 /* Our L4 erases in 2k byte chunks */
rtn = InitFlashFileSystem(FLASH_MEMORY_END_PLUS_1,
I inferred the (apparently inappropriate) parameters and prior conditions from the L4 Discovery BSP and our running F4 port. Any guesses what I need to correct?
Thanks in advance,