--initial commit

This commit is contained in:
Mysteo91
2023-06-30 13:08:42 +03:00
parent 4ebfb46aac
commit f50f2d687e
244 changed files with 212234 additions and 14885 deletions

View File

@@ -34,6 +34,7 @@
/* Entry Point */
ENTRY(Reset_Handler)
INCLUDE memory_map.inc
/* Highest address of the user mode stack */
_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
@@ -44,8 +45,9 @@ _Min_Stack_Size = 0x400; /* required amount of stack */
/* Memories definition */
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 36K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 128K
RAM (xrw) : ORIGIN = 0x200000C0, LENGTH = 36K - 192
BOOT_PROG_FLASH_AREA(rx) : ORIGIN = _flash_boot_address , LENGTH = _flash_boot_size
FLASH_SUPPORTING_AREA(rx) : ORIGIN = _flash_supporting_area_address , LENGTH = _flash_supporting_area_size
}
/* Sections */
@@ -57,7 +59,7 @@ SECTIONS
. = ALIGN(4);
KEEP(*(.isr_vector)) /* Startup code */
. = ALIGN(4);
} >FLASH
} >BOOT_PROG_FLASH_AREA
/* The program code and other data into "FLASH" Rom type memory */
.text :
@@ -74,7 +76,7 @@ SECTIONS
. = ALIGN(4);
_etext = .; /* define a global symbols at end of code */
} >FLASH
} >BOOT_PROG_FLASH_AREA
/* Constant data into "FLASH" Rom type memory */
.rodata :
@@ -83,13 +85,13 @@ SECTIONS
*(.rodata) /* .rodata sections (constants, strings, etc.) */
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
. = ALIGN(4);
} >FLASH
} >BOOT_PROG_FLASH_AREA
.ARM.extab : {
. = ALIGN(4);
*(.ARM.extab* .gnu.linkonce.armextab.*)
. = ALIGN(4);
} >FLASH
} >BOOT_PROG_FLASH_AREA
.ARM : {
. = ALIGN(4);
@@ -97,7 +99,7 @@ SECTIONS
*(.ARM.exidx*)
__exidx_end = .;
. = ALIGN(4);
} >FLASH
} >BOOT_PROG_FLASH_AREA
.preinit_array :
{
@@ -106,7 +108,7 @@ SECTIONS
KEEP (*(.preinit_array*))
PROVIDE_HIDDEN (__preinit_array_end = .);
. = ALIGN(4);
} >FLASH
} >BOOT_PROG_FLASH_AREA
.init_array :
{
@@ -116,7 +118,7 @@ SECTIONS
KEEP (*(.init_array*))
PROVIDE_HIDDEN (__init_array_end = .);
. = ALIGN(4);
} >FLASH
} >BOOT_PROG_FLASH_AREA
.fini_array :
{
@@ -126,7 +128,7 @@ SECTIONS
KEEP (*(.fini_array*))
PROVIDE_HIDDEN (__fini_array_end = .);
. = ALIGN(4);
} >FLASH
} >BOOT_PROG_FLASH_AREA
/* Used by the startup to initialize data */
_sidata = LOADADDR(.data);
@@ -144,7 +146,7 @@ SECTIONS
. = ALIGN(4);
_edata = .; /* define a global symbol at data end */
} >RAM AT> FLASH
} >RAM AT> BOOT_PROG_FLASH_AREA
/* Uninitialized data section into "RAM" Ram type memory */
. = ALIGN(4);