Ive got MCU without flash and have to write code in RAM and allocate C heap in RAM, stack, and FreeRTOS heap in the same region of RAM(256KB).
Cause of that I need to demarcate the heaps at least
As I know, to do that, I have configAPPLICATION_ALLOCATED_HEAP define but I dont know how can I applicate it in my case
You could leave the allocation of a heap to one of FreeRTOS provided memory managers.
Internally it’s just a byte array of the specified heap size usually in .bss section i.e. RAM.
See e.g. heap_4.c
At least flexibility. For instance some MCUs have multiple physical RAMs. One might want to put the FreeRTOS heap into a specific RAM bank. This custom setup has to be provided by application code.