Mercurial > public > ostc4
diff BootLoader/CPU1-F429_boot.ld @ 1016:0dd92e9b70a2 BootloaderOstc5
Bootloader use compressed fonts:
The previous Bootloader was larger than 128k => not fitting into the first sectors of the second flash bank. Most memory is occupied by the two fonts in use. In order to make the bootloader small enough for the bootloader update function the fonts need to be compressed. To avoid code changes in visualization functions the compressed fonts are decompressed into RAM and then used in the same way as before.
| author | Ideenmodellierer |
|---|---|
| date | Wed, 28 May 2025 17:20:44 +0200 |
| parents | 4ef0511c6665 |
| children |
line wrap: on
line diff
--- a/BootLoader/CPU1-F429_boot.ld Tue May 06 21:56:03 2025 +0200 +++ b/BootLoader/CPU1-F429_boot.ld Wed May 28 17:20:44 2025 +0200 @@ -48,7 +48,7 @@ /***************************** Memory Definition ****************************/ MEMORY { - ROM_BOOT (rx) : ORIGIN = 0x08000000, LENGTH = 0x00040000 /* 256K */ + ROM_BOOT (rx) : ORIGIN = 0x08000000, LENGTH = 0x00020000 /* 128K */ ROM (rx) : ORIGIN = 0x08040000, LENGTH = 0x00090000 /* 576K */ UPPER(rx) : ORIGIN = 0x08132000, LENGTH = 0xAE270 /* 713K */ RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 192K @@ -113,13 +113,6 @@ *libm.a:*(*) } >ROM_BOOT - .rodata : - { - . = ALIGN(4); - *(.rodata) /* .rodata sections (constants, strings, etc.) */ - *(.rodata*) /* .rodata* sections (constants, strings, etc.) */ - . = ALIGN(4); - } >ROM_BOOT /********************** Constant data into ROM memory *********************/ @@ -205,12 +198,18 @@ _etext = .; /* define a global symbols at end of code */ } >ROM_BOOT - + .rodata : + { + . = ALIGN(4); + *(.rodata) /* .rodata sections (constants, strings, etc.) */ + *(.rodata*) /* .rodata* sections (constants, strings, etc.) */ + . = ALIGN(4); + } >ROM_BOOT /* Define Known Address for Each Font */ /* Flash Sector 23 is protected (bootloader font + image) => use end of sector 22 */ -.lower_fonts 0x08016000 : { +.lower_fonts 0x0801F000 : { *(.lower_fonts.image_data_*) *(.lower_fonts.*) *(.upper_fonts.image_data_FontT48*)
