May 2020
Intermediate to advanced
496 pages
13h 54m
English
If your application makes regular use of the FreeRTOS heap, then you should strongly consider using the configUSE_MALLOC_FAILED_HOOK configuration and associated hook, vApplicationMallocFailedHook. This hook is called anytime a call to pvMalloc() fails.
The steps for setting this up are the same as in the previous hook:
#define configUSE_MALLOC_FAILED_HOOK 1
void vApplicationMallocFailedHook( void ){ __disable_irq(); while(1);}There are also ...