I am trying to configure the heap section on the stm32f411xe board to fix the malloc fail issue, but I am facing difficulty configuring the heap section.Please help the procedure to setup with and without scatter file.
The best way to set heap is to use scatterloading region, named either ARM_LIB_HEAP or ARM_LIB_STACKHEAP (for a combined region).
https://developer.arm.com/documentation/100748/0621/Mapping-Code-and-Data-to-the-Target/Placing-the-stack-and-heap-with-a-scatter-file
Alternatively, you should reimplement the __user_setup_stackheap() function:
https://developer.arm.com/documentation/100748/0621/Embedded-Software-Development/Placing-the-stack-and-heap