Is there a version or method of using FreeRTOS+FAT without requiring malloc? Is there a static version of this library?
I'm afraid that FreeRTOS+FAT depends on dynamic allocation.
It does not call
pvPortMalloc() directly, in stead it lets you define
define ffconfigMALLOC( uxSize ) pvPortMalloc( ( uxSize ) )
The cache memory though can be declared statically. See :
typedef struct xFFCREATIONPARAMETERS
uint8t pucCacheMemory; / User provided memory, or use NULL to malloc the cache memory. */
uint32t ulMemorySize; /* Size of the cache memory, must be a multiple of 'ulSectorSize'. */
The creation parameters will be passed to :
FFIOManagert *FFCreateIOManger( FFCreationParameterst *pxParameters, FFError_t *pError )
The cache memory is used as data buffers between driver and disk. Each block of cache is 512 bytes long.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.