2024-07-02 06:12 AM
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
2024-07-02 10:41 AM
This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.
2024-12-16 12:30 AM
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