Greetings,
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,
ERASEABLE_BLOCKSIZE,
FILE_SYSTEM_START));
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,
Steve.
8:19pm
Try making FLASH_MEMORY_END_PLUS_1 be the total size in bytes of your flash memory, not just what is available for the flash file system.
9:25am
err... I mean I used:
#define FLASH_MEMORY_END_PLUS_1 0x08100000 /* end of flash */
for the test you requested... (still failed).
4:59pm
I believe I understand my issue - The L4 we are using is constrained to making flash writes in 8 byte chunks and, as of yet, I have not figured out how to similarly constrain AWE in its use of flash. I will pose this question via a new topic (if a can't find the answer via searching etc.).