mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Merge pull request #1467 from martinbudden/bf_linker_scripts
Fixed up linker scripts in preparation for parameter groups
This commit is contained in:
commit
6f7fc80db6
11 changed files with 74 additions and 43 deletions
|
@ -12,7 +12,9 @@
|
||||||
/* Specify the memory areas. */
|
/* Specify the memory areas. */
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 126K /* last 2kb used for config storage */
|
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 126K
|
||||||
|
FLASH_CONFIG (r) : ORIGIN = 0x0801F800, LENGTH = 2K
|
||||||
|
|
||||||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
|
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
|
||||||
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,9 @@
|
||||||
/* Specify the memory areas. */
|
/* Specify the memory areas. */
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
FLASH (rx) : ORIGIN = 0x08003000, LENGTH = 126K - 0x03000 /* last 2kb used for config storage first 12k for OP Bootloader*/
|
/* First 12K (0x3000 bytes) used for OP Bootloader, last 2K used for config storage */
|
||||||
|
FLASH (rx) : ORIGIN = 0x08003000, LENGTH = 114K
|
||||||
|
FLASH_CONFIG (r) : ORIGIN = 0x0801F800, LENGTH = 2K
|
||||||
|
|
||||||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
|
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
|
||||||
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
||||||
|
|
|
@ -12,7 +12,9 @@
|
||||||
/* Specify the memory areas. */
|
/* Specify the memory areas. */
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 252K /* last 4kb used for config storage */
|
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 252K
|
||||||
|
FLASH_CONFIG (r) : ORIGIN = 0x0803F000, LENGTH = 4K
|
||||||
|
|
||||||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 48K
|
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 48K
|
||||||
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,9 @@
|
||||||
/* Specify the memory areas. */
|
/* Specify the memory areas. */
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 62K /* last 2kb used for config storage */
|
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 62K
|
||||||
|
FLASH_CONFIG (r) : ORIGIN = 0x0800F800, LENGTH = 2K
|
||||||
|
|
||||||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
|
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
|
||||||
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,8 +12,11 @@
|
||||||
/* Specify the memory areas. */
|
/* Specify the memory areas. */
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 126K /* last 2kb used for config storage */
|
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 126K
|
||||||
|
FLASH_CONFIG (r) : ORIGIN = 0x0801F800, LENGTH = 2K
|
||||||
|
|
||||||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 40K
|
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 40K
|
||||||
|
CCM (xrw) : ORIGIN = 0x10000000, LENGTH = 8K
|
||||||
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,11 @@
|
||||||
/* Specify the memory areas. */
|
/* Specify the memory areas. */
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 252K /* last 4kb used for config storage */
|
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 252K
|
||||||
|
FLASH_CONFIG (r) : ORIGIN = 0x0803F000, LENGTH = 4K
|
||||||
|
|
||||||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 40K
|
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 40K
|
||||||
|
CCM (xrw) : ORIGIN = 0x10000000, LENGTH = 8K
|
||||||
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,10 +12,18 @@
|
||||||
/* Entry Point */
|
/* Entry Point */
|
||||||
ENTRY(Reset_Handler)
|
ENTRY(Reset_Handler)
|
||||||
|
|
||||||
|
/*
|
||||||
|
0x08000000 to 0x08100000 1024K full flash,
|
||||||
|
0x08000000 to 0x080FC000 1008K firmware,
|
||||||
|
0x080FC000 to 0x08100000 16K config,
|
||||||
|
*/
|
||||||
|
|
||||||
/* Specify the memory areas */
|
/* Specify the memory areas */
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1M
|
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1008K
|
||||||
|
FLASH_CONFIG (r) : ORIGIN = 0x080FC000, LENGTH = 16K
|
||||||
|
|
||||||
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 128K
|
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 128K
|
||||||
CCM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K
|
CCM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K
|
||||||
BACKUP_SRAM (rwx) : ORIGIN = 0x40024000, LENGTH = 4K
|
BACKUP_SRAM (rwx) : ORIGIN = 0x40024000, LENGTH = 4K
|
||||||
|
|
|
@ -12,20 +12,21 @@
|
||||||
/* Entry Point */
|
/* Entry Point */
|
||||||
ENTRY(Reset_Handler)
|
ENTRY(Reset_Handler)
|
||||||
|
|
||||||
/* Specify the memory areas */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
0x08000000 to 0x08100000 1024kb full flash,
|
0x08000000 to 0x08100000 1024K full flash,
|
||||||
0x08000000 to 0x08020000 128kb OPBL,
|
0x08000000 to 0x08004000 16K OPBL,
|
||||||
0x08020000 to 0x08080000 384kb firmware,
|
0x08004000 to 0x080FC000 992K firmware,
|
||||||
0x08080000 to 0x080A0000 128kb config,
|
0x080FC000 to 0x08100000 16K config,
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* Specify the memory areas */
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
FLASH (rx) : ORIGIN = 0x08020000, LENGTH = 0x000A0000
|
FLASH (rx) : ORIGIN = 0x08004000, LENGTH = 992K
|
||||||
|
FLASH_CONFIG (r): ORIGIN = 0x080FC000, LENGTH = 16K
|
||||||
|
|
||||||
|
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 128K
|
||||||
CCM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K
|
CCM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K
|
||||||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 0x00020000
|
|
||||||
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,16 +13,19 @@
|
||||||
ENTRY(Reset_Handler)
|
ENTRY(Reset_Handler)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
0x08000000 to 0x08080000 512kb full flash,
|
0x08000000 to 0x08080000 512K full flash,
|
||||||
0x08000000 to 0x08060000 384kb firmware,
|
0x08000000 to 0x0807C000 469K firmware,
|
||||||
0x08060000 to 0x08080000 128kb config,
|
0x0807C000 to 0x08080000 16K config,
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Specify the memory areas */
|
/* Specify the memory areas */
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 0x00080000
|
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 496K
|
||||||
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00020000
|
FLASH_CONFIG (r) : ORIGIN = 0x0807C000, LENGTH = 16K
|
||||||
|
|
||||||
|
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 128K
|
||||||
|
CCM (xrw) : ORIGIN = 0x10000000, LENGTH = 64K
|
||||||
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,17 +13,20 @@
|
||||||
ENTRY(Reset_Handler)
|
ENTRY(Reset_Handler)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
0x08000000 to 0x08080000 512kb full flash,
|
0x08000000 to 0x08080000 512K full flash,
|
||||||
0x08000000 to 0x08010000 64kb OPBL,
|
0x08000000 to 0x08004000 16K OPBL,
|
||||||
0x08010000 to 0x08060000 320kb firmware,
|
0x08010000 to 0x0807C000 480K firmware,
|
||||||
0x08060000 to 0x08080000 128kb config,
|
0x0807C000 to 0x08080000 16K config,
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Specify the memory areas */
|
/* Specify the memory areas */
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
FLASH (rx) : ORIGIN = 0x08010000, LENGTH = 0x00070000
|
FLASH (rx) : ORIGIN = 0x08004000, LENGTH = 480K
|
||||||
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00020000
|
FLASH_CONFIG (r) : ORIGIN = 0x0807C000, LENGTH = 16K
|
||||||
|
|
||||||
|
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 128K
|
||||||
|
CCM (xrw) : ORIGIN = 0x10000000, LENGTH = 64K
|
||||||
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,9 @@ ENTRY(Reset_Handler)
|
||||||
/* Specify the memory areas */
|
/* Specify the memory areas */
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1M
|
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1008K
|
||||||
|
FLASH_CONFIG (r) : ORIGIN = 0x080FC000, LENGTH = 16K
|
||||||
|
|
||||||
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 320K
|
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 320K
|
||||||
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue