Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

FreeRTOS+FAT implementation without malloc

Posted by kammce on January 31, 2019

Is there a version or method of using FreeRTOS+FAT without requiring malloc? Is there a static version of this library?


FreeRTOS+FAT implementation without malloc

Posted by heinbali01 on February 1, 2019

I'm afraid that FreeRTOS+FAT depends on dynamic allocation.

It does not call pvPortMalloc() directly, in stead it lets you define ffconfigMALLOC():

~~~

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'. */ ... } FFCreationParameterst; ~~~

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.


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS v10.2.0 is available for immediate download. MIT licensed, and including RISC-V and ARMv8-M (Cortex-M33) demos.

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Cadence Tensilica Cortes

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Mediatek

Renesas

RISC-V

SiFIve RISC-V

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner