AnsweredAssumed Answered

STM32F7 DISCO - memory sections

Question asked by Nyix on Aug 24, 2015
Latest reply on Nov 24, 2016 by Nyix
Hi all,

I have a question about the different memory sections. I use a modified version of the demonstration project.

There are 4 memory sections:

This code save the variable to NOR:
#if defined ( __ICCARM__ )
     #pragma location="ExtQSPIFlashSection"

So now my Questions.
1) How do i know where everything else is stored? I think const variables are stored in Flash and everything else in SRAM. But the SRAM-HAL-Header isn't used in this project. So my variables are stored in SDRAM?

2) And what happen if i create a new variable with malloc?

3) There is a function to get the free size of memory?

Thanks everyone!

For ST:
I have 2 wishes for a new Rev. of the STM32F7 DISCO.
- place a empty (header-) connection with a solder bridge to connect a battery for the RTC
- some more empty connections for another ADC (now i can only use ADC 3 over Arduino Pins)
But it's still a great board!