That tends to be controlled by the linker control file. If using one of the FreeRTOS heap routines that define a static array for the heap, you will normally need to add an attribute to the definition of that array to put it into a special linker section.
To apply the attribute, you would define configAPPLICATION_ALLOCATED_HEAP to 1 in your FreeRTOSConfig.h, set configTOTAL_HEAP_SIZE to the size you want, and then define ucHeap.