Provide empty csp_memfree_hook for freertos when:
dynamic allocation is not enabled
#include <FreeRTOS.h>
#include <task.h>
+__attribute__((weak)) uint32_t csp_memfree_hook(void) {
#if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
-uint32_t csp_memfree_hook(void) {
return (uint32_t)xPortGetFreeHeapSize();
-}
+#else
+ return 0;
#endif
+}
