Skip to main content
Explorer
July 2, 2024
Question

Heap size for STM32F101RG

  • July 2, 2024
  • 2 replies
  • 765 views

Hello,

I have a question on how to optimally configure the RAM of the STM32F101RG.

The controller has 1MByte Flash, 80KByte RAM. I need to use most RAM for Heapsize and I configured within Keil IDE under target options/ASM

0xCD00 for Heap size and

0x1000 for Stack size. Totally, the size is much smaller as 80 KByte. But when I try to increase the size for the Heap only a little bit, I get errors like

: No space in execution regions with .ANY selector matching

 

Within scatter file, I configured in this way:

</

LR_IROM1 0x08000000 0x000FA000 { ; load region size_region
ER_IROM1 0x08000000 0x000EA600 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
}
RW_IRAM1 0x20000010 0x00014000 { ; RW data
.ANY (+RW +ZI)
}
}

 

/>

How can I optimally use the 80KBytes of RAM for a large heap?

Thanks in advance!

Best regards,

Regina Kaune

    This topic has been closed for replies.

    2 replies

    ST Employee
    July 2, 2024

    This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.

    Graduate
    December 16, 2024

    Hello @Douglas MILLER 

    I'm using a different processor(STM32H757) and adding software packs(COMSIS RTOSv2, OpenAMP), but this post seems to be the answer to my problem because it's the best way to use RAM for a large heap.

    Could you help me please?

     

    # Post Name : STM32H757 / RTOS / OpenAMP / Memory "._user_heap_stack " Size Saturation

    # Post Link : https://community.st.com/t5/stm32-mcus-embedded-software/stm32h757-rtos-openamp-memory-quot-user-heap-stack-quot-size/m-p/753062