How to concretize start address of heap in RAM

Hello!

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

Please help!

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

Thank you for your replay, so what meaning keeps configAPPLICATION_ALLOCATED_HEAP then?

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.

Thanks a lot!
Can you advice what way is preferred in my case?(when I have got internal RAM only)

Leave configAPPLICATION_ALLOCATED_HEAP undefined - this should work in your case. Let us know if you face any problem.

Thanks! Ill do it then