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.