![ST FP-SNS-FLIGHT1 User Manual Download Page 11](http://html.mh-extra.com/html/st/fp-sns-flight1/fp-sns-flight1_user-manual_1355659011.webp)
UM2026
FP-SNS-FLIGHT1 software
description
DocID029047 Rev 4
11/50
Figure 3: FP-SNS-FLIGHT1 Flash structure
2.5
The boot process
The FP-SNS-FLIGHT1 cannot be flashed at the beginning of the Flash memory (address
0x08000000); therefore it is compiled to run from the beginning of the second Flash region
(0x08004000).
To enable this behavior, the vector table offset has been set in Src/system_stm32f4xx.c
(for STM32F401) and Src/system_stm32l4xx.c (for STM32L476) thus: #define
VECT_TAB_OFFSET 0x4000.
The linker script has also been changed.
For example, the linker script for SP-SNS-FLIGHT1 running on STM32F401RE and
compiled using IAR Embedded Workbench for ARM is:
define symbol __ICFEDIT_intvec_start__ = 0x08004000;
/*-Memory Regions-*/
define symbol __ICFEDIT_region_ROM_start__ = 0x08004000;
define symbol __ICFEDIT_region_ROM_end__ = 0x0803FFFF;
define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;