title: How to define the start address of the heap in RAM
body: <p>I am using a STM32L432KC microcontroller which has two separate internal RAM regions (SRAM1 is 48kB, SRAM2 is 16kB). The memory ranges are not adjacent, so it is not possible to use them as a single block of 64kB.</p>
  
  <p>In the default linker script all data incl. heap and stack are located in SRAM1, whereas SRAM2 is unused. Now I want to locate the heap and stack in SRAM2. However, fail to understand how to tell the linker where the heap is supposed be located.</p>
  
  <p>I found a statement "The HEAP is allocated after the BSS segment" and I found some hints that the heap starts at the "end" symbol. Isn't there an explicit symbol for the linker to locate the heap?</p>
  
  <p>I found a symbol "__malloc_sbrk_start" in the map file, but this appears to be something different (Google didnt help). </p>