--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 */
@@ -45,7 +46,7 @@ _Min_Stack_Size = 0x400; /* required amount of stack */
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 36K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 128K
USER_PROG_FLASH_AREA(rx) : ORIGIN = _flash_main_prog_address , LENGTH = _flash_main_prog_size
}
/* Sections */
@@ -57,7 +58,7 @@ SECTIONS
. = ALIGN(4);
KEEP(*(.isr_vector)) /* Startup code */
. = ALIGN(4);
} >FLASH
} >USER_PROG_FLASH_AREA
/* The program code and other data into "FLASH" Rom type memory */
.text :
@@ -74,7 +75,7 @@ SECTIONS
. = ALIGN(4);
_etext = .; /* define a global symbols at end of code */
} >FLASH
} >USER_PROG_FLASH_AREA
/* Constant data into "FLASH" Rom type memory */
.rodata :
@@ -83,13 +84,13 @@ SECTIONS
*(.rodata) /* .rodata sections (constants, strings, etc.) */
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
. = ALIGN(4);
} >FLASH
} >USER_PROG_FLASH_AREA
.ARM.extab : {
. = ALIGN(4);
*(.ARM.extab* .gnu.linkonce.armextab.*)
. = ALIGN(4);
} >FLASH
} >USER_PROG_FLASH_AREA
.ARM : {
. = ALIGN(4);
@@ -97,7 +98,7 @@ SECTIONS
*(.ARM.exidx*)
__exidx_end = .;
. = ALIGN(4);
} >FLASH
} >USER_PROG_FLASH_AREA
.preinit_array :
{
@@ -106,7 +107,7 @@ SECTIONS
KEEP (*(.preinit_array*))
PROVIDE_HIDDEN (__preinit_array_end = .);
. = ALIGN(4);
} >FLASH
} >USER_PROG_FLASH_AREA
.init_array :
{
@@ -116,7 +117,7 @@ SECTIONS
KEEP (*(.init_array*))
PROVIDE_HIDDEN (__init_array_end = .);
. = ALIGN(4);
} >FLASH
} >USER_PROG_FLASH_AREA
.fini_array :
{
@@ -126,7 +127,7 @@ SECTIONS
KEEP (*(.fini_array*))
PROVIDE_HIDDEN (__fini_array_end = .);
. = ALIGN(4);
} >FLASH
} >USER_PROG_FLASH_AREA
/* Used by the startup to initialize data */
_sidata = LOADADDR(.data);
@@ -144,7 +145,7 @@ SECTIONS
. = ALIGN(4);
_edata = .; /* define a global symbol at data end */
} >RAM AT> FLASH
} >RAM AT> USER_PROG_FLASH_AREA
/* Uninitialized data section into "RAM" Ram type memory */
. = ALIGN(4);