I am using some C libraries that internally are using malloc/free for dynamic memory. Is it ok to use the standard C malloc/free if I'm running FreeRTOS on the 1468x? Does the compiler automatically link these to the correct implementations, or should I provide an override that maps them to OS_MALLOC/OS_FREE, similar to what RETARGET does for printf? What is Dialog's recommended method?
Thanks.
Keywords:
Device:
Hi ewilson90,
As far as i am aware the standard malloc and free function can be used and they will be linked properly, but the problem with the standard functions when operating in a free RTOS enviroment is that those functions are not thread safe and they are not deterministic, and that may cause issues to the system, therefore its not recommended. You should change the malloc that your library is using to the free RTOS method of memory allocation.
Thanks MT_dialog