use shared linker config

This commit is contained in:
Matthew Kennedy 2020-12-08 23:32:54 -08:00
parent 8d9f2b44ad
commit d7b6ee1422
3 changed files with 5 additions and 65 deletions

View File

@ -14,40 +14,9 @@
limitations under the License. limitations under the License.
*/ */
/*INCLUDE wideband_layout.ld*/ INCLUDE wideband_layout.ld
/*
* STM32F042x6 memory setup.
*/
blsize = 10k;
MEMORY
{
blflash (rx) : org = 0x08000000, len = blsize
appflash (rx) : org = 0x08000000 + blsize, len = 32k - blsize
flash1 (rx) : org = 0x00000000, len = 0
flash2 (rx) : org = 0x00000000, len = 0
flash3 (rx) : org = 0x00000000, len = 0
flash4 (rx) : org = 0x00000000, len = 0
flash5 (rx) : org = 0x00000000, len = 0
flash6 (rx) : org = 0x00000000, len = 0
flash7 (rx) : org = 0x00000000, len = 0
ram_vectors (wx) : org = 0x20000000, len = 256
ram0 (wx) : org = 0x20000200, len = 6k - 256
ram1 (wx) : org = 0x00000000, len = 0
ram2 (wx) : org = 0x00000000, len = 0
ram3 (wx) : org = 0x00000000, len = 0
ram4 (wx) : org = 0x00000000, len = 0
ram5 (wx) : org = 0x00000000, len = 0
ram6 (wx) : org = 0x00000000, len = 0
ram7 (wx) : org = 0x00000000, len = 0
}
__appflash_start__ = ORIGIN(appflash);
__ram_vectors_start__ = ORIGIN(ram_vectors);
__ram_vectors_size__ = LENGTH(ram_vectors);
/* bootloader goes in blflash */
REGION_ALIAS("flash0", blflash); REGION_ALIAS("flash0", blflash);
/* For each data/text section two region are defined, a virtual region /* For each data/text section two region are defined, a virtual region

View File

@ -14,38 +14,9 @@
limitations under the License. limitations under the License.
*/ */
/*INCLUDE wideband_layout.ld*/ INCLUDE wideband_layout.ld
blsize = 10k;
MEMORY
{
blflash (rx) : org = 0x08000000, len = blsize
appflash (rx) : org = 0x08000000 + blsize, len = 32k - blsize
flash1 (rx) : org = 0x00000000, len = 0
flash2 (rx) : org = 0x00000000, len = 0
flash3 (rx) : org = 0x00000000, len = 0
flash4 (rx) : org = 0x00000000, len = 0
flash5 (rx) : org = 0x00000000, len = 0
flash6 (rx) : org = 0x00000000, len = 0
flash7 (rx) : org = 0x00000000, len = 0
ram_vectors (wx) : org = 0x20000000, len = 256
ram0 (wx) : org = 0x20000200, len = 6k - 256
ram1 (wx) : org = 0x00000000, len = 0
ram2 (wx) : org = 0x00000000, len = 0
ram3 (wx) : org = 0x00000000, len = 0
ram4 (wx) : org = 0x00000000, len = 0
ram5 (wx) : org = 0x00000000, len = 0
ram6 (wx) : org = 0x00000000, len = 0
ram7 (wx) : org = 0x00000000, len = 0
}
__appflash_start__ = ORIGIN(appflash);
__ram_vectors_start__ = ORIGIN(ram_vectors);
__ram_vectors_size__ = LENGTH(ram_vectors);
/* App goes in appflash region */
REGION_ALIAS("flash0", appflash); REGION_ALIAS("flash0", appflash);
/* For each data/text section two region are defined, a virtual region /* For each data/text section two region are defined, a virtual region

View File

@ -2,7 +2,7 @@
* STM32F042x6 memory setup. * STM32F042x6 memory setup.
*/ */
blsize = 8k; blsize = 10k;
MEMORY MEMORY
{ {