diff Common/CPU1-F429.ld @ 569:3508e6dc4f22

Added new section "lower.font": To avoid section overlap caused by the memory needs of the new characters, a new section has been introduced to store the font data behind the code and data sections. The handling is a little bit overengineered but was used to have the same look as the upper section, where a defined structure had to be rebuild to match the output of another compiler. moving the lower section behind the upper would save firmware space but result in the need of a new fontlib version.
author Ideenmodellierer
date Mon, 30 Nov 2020 20:52:49 +0100
parents 27c56f1b1856
children 01f40cb1057e
line wrap: on
line diff
--- a/Common/CPU1-F429.ld	Sun Nov 29 11:41:03 2020 +0100
+++ b/Common/CPU1-F429.ld	Mon Nov 30 20:52:49 2020 +0100
@@ -208,7 +208,15 @@
     /* Define Known Address for Each Font */
     /* Flash Sector 23 is protected (bootloader font + image) => use end of sector 22 */
 
-  
+.lower_fonts 	0x080A0000  : {
+	 *(.lower_fonts.image_data_*)
+	 
+	 *(.lower_fonts.*) 
+} > ROM
+
+.lower_directory : {
+	*(.lower_font_directory*)
+} > ROM
 
 /* TODO: the linker does not seem to work as the one of used for initial bootloader ==> Reconstruct layout to keep it compatible with the first version */
 /* TODO: cleanup during next iteration */