Dynamic memory allocation

Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
Last seen: 1 year 4 months ago
Joined: 2020-09-15 11:29
Dynamic memory allocation


I want to use dynamic memory allocation for reading the ICM426 SPI ACCELAROMETER sensor data.

I coudn't find any functions for creating memory dynamically, can you please provide the data for creating memory dynamically.


Thanks and Regards,

Vishal kumar.

Last seen: 2 months 2 weeks ago
Joined: 2018-02-08 11:03
Hi Vishalkumar,

Hi Vishalkumar,

For memory allocation you can use the OS_MALLOC_* and for memory de-allocation the OS_FREE_*. Please check the osal.h that provides wrappers of the FreeRTOS API for the following RTOS primitives.

Thanks, PM_Dialog