I’m trying to create a sector of flash for emulating EEPROM but I cannot figure out how in VisualGDB to define sectors of flash for user data, program data, heap (memory), stack (memory), etc.
Can someone shed some light on this?
I’m using a STM32F407VG (like on the F4 discovery board).
Normally you need to edit the linker script and use the “section” attribute to place code and data into a specific memory. You can read more in this topic. If it does not help, please give us an example of what you are trying to do so that we could give a better suggestion.