cancel
Showing results for 
Search instead for 
Did you mean: 

Heap size for STM32F101RG

KauneR
Associate III

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

1 REPLY 1
Douglas MILLER
ST Employee

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