Heap 5 for discontiguous ram, RTOS hard faulting
I am currently using a FreeRTOS example project with the stmwL55, but instead of the defaulted heap 4, I am selected heap 5 in the ioc to utilize RAM2 for the 28kb. I have used the suggested example of how to initialize the heap before task creation.
HeapRegion_t xHeapRegions[] =
{
{ ( uint8_t * ) 0x20000000UL, 32768 }, //<< Defines a block of 0x8000 bytes starting at address 0x20000000
{ ( uint8_t * ) 0x20009000UL, 20480 }, //<< Defines a block of 0x4000 bytes starting at address of 0x20009000
{ NULL, 0 } //<< Terminates the array.
};
However, the program hard faults when the program gets to prvPortStartFirstTask(). The build analyzer shows that my RAM1 only has 50% usage and RAM2 is at 0% so I am not sure what else I have to do for my memory to actually be used.

