AnsweredAssumed Answered

KSDK 1.3 SDHC with FreeRTOS Heap1

Question asked by Jared Evans on Nov 6, 2015
Latest reply on Jan 4, 2016 by isaacavila

Hello all,

 

I am working with KDS 3.0 and Processor Expert linked to KSDK 1.3 to program a FRDM-K64F board. I am also using the FreeRTOS 8.2 and ChaN FATFS included with the KSDK 1.3. In my application, I plan to do long term datalogging and would prefer to use the heap_1 implementation (does not allow memory to be freed) from FreeRTOS to prevent fragmentation over time.

 

When running an SD card write example with the FATFS, the function "SDHC_DRV_IssueRequestBlocking()" is called from the SDHC driver (fsl_sdhc_driver.c) which allocates and frees memory for semaphores, which prevents the heap_1 implementation from being used. Is there any workaround to enable a non-blocking approach or a method to statically allocate the semaphore memory without changing the KSDK files and using FreeRTOS as the OS? If possible, I want to know if anything can work with the Processor Expert and KSDK.

 

Thanks,

 

Jared

Outcomes