cancel
Showing results for 
Search instead for 
Did you mean: 

I would like to use the external RAM on stm32f10e-eval board

MOtto.2
Associate II

Hi,

is it possible to use the external RAM as a heap. I would like to do malloc and free on it. I was able to set an huge array on it by little modifying the linkerscript, but that is not really handy because than you have to do the mem managing.

Have seen some description, which basically changes the _sbrk file but not able to get it work.

1 REPLY 1

The way ST uses the GNU/GCC compiler it kind of assumes the stack and heap are in the same region, and bound each other. You really don't want the stack in "slow" memory as it impedes everything the processor does.

You'd need to bring up the external RAM, notionally with code in SystemInit(), or called by, that initializes the pins and FSMC, etc. Otherwise the MCU will fault. I might recommend looking at the earlier SPL examples which were contemporaneous with the release of the board.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..