2017-08-18 07:53 AM
I would like to use the flash memory for store some data. For this reason I need to assure that some flash memory will be free.
##stm32-l02017-08-18 08:00 AM
Not using it, but GNU/GCC describes this in the linker script, so would imagine there's that, or dialogs or settings for the Target you can adjust.
2017-08-18 01:02 PM
As Clive said, the linker of any toolchain has a text file describing the microcontroller various memory segments (RAM, CCRAM, Flash, etc...).
One way is to modify the file to reserve a specific segment for your data.
Other ways can be to add a bin file describing the 'reserved data default values' at link time with base address: If this option is available, it can be found in the linker compilation options or project linker settings.
Last way would be to create in a C file the default values and use a possible #pragma to put this const data (if flash) in a specific start address.
2017-08-21 03:45 AM
Thank you very much for your answers!
I understand what here is proposed. Nevertheless I do not exactly how to perform such configuration or even where to find such a file.
Does anyone has experience making such configuration?