Flash memory is nonvolatile semiconductor memory: it retains data without power and can be electrically erased and rewritten. In embedded systems, limited Flash capacity puts pressure on firmware size and data layout. section 4.1.1 section 1.1.2
A firmware section has a load memory address (LMA), where its initial contents are stored, and a virtual memory address (VMA), where it resides during execution. Code in .text and read-only data in .rodata generally remain in Flash. Initialized writable data in .data is stored in Flash but copied to RAM before main runs. The .bss section has no Flash load image; startup code zeroes it in RAM. section 4.1.1 section 4.1.3
.data :
{
*(.data .data.*)
} > RAM AT > FLASH
.bss (NOLOAD) :
{
. = ALIGN(8);
*(.bss .bss.*)
} > RAM
}
This linker-script fragment places .data in RAM with its load image in Flash, and reserves .bss in RAM without a load image. section 4.1.3
On Arm Cortex-M, the vector table is commonly placed at the beginning of Flash. Its first entry supplies the initial stack pointer; the second gives the reset handler address. Some microcontrollers alias physical Flash to address 0x00000000 at boot so the processor can find the table there. section 4.1.3 section 4.2.1
Flash aliasing at boot
On STM32 devices, physical Flash may start at 0x08000000. Boot configuration can map it to 0x00000000, where the processor looks for the vector table. section 4.2.1

