2018-03-27 06:17:48 -04:00
|
|
|
/* Memory layout for internal flash storage configuration:
|
|
|
|
|
|
|
|
FLASH_ISR .isr_vector
|
|
|
|
|
|
|
|
FLASH_TEXT .text
|
|
|
|
FLASH_TEXT .data
|
|
|
|
|
|
|
|
RAM .data
|
|
|
|
RAM .bss
|
|
|
|
RAM .heap
|
|
|
|
RAM .stack
|
|
|
|
*/
|
|
|
|
|
2016-09-21 05:49:45 -04:00
|
|
|
ENTRY(Reset_Handler)
|
|
|
|
|
2022-08-14 18:35:23 -04:00
|
|
|
REGION_ALIAS("FLASH_COMMON", FLASH_TEXT);
|
|
|
|
|
2016-09-21 05:49:45 -04:00
|
|
|
/* define output sections */
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
/* The startup code goes first into FLASH */
|
|
|
|
.isr_vector :
|
|
|
|
{
|
|
|
|
. = ALIGN(4);
|
|
|
|
KEEP(*(.isr_vector)) /* Startup code */
|
|
|
|
|
|
|
|
/* This first flash block is 16K and the isr vectors only take up
|
|
|
|
about 400 bytes. So we pull in a couple of object files to pad it
|
|
|
|
out. */
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
2016-10-04 01:28:48 -04:00
|
|
|
|
|
|
|
/* NOTE: If you update the list of files contained in .isr_vector,
|
|
|
|
then be sure to also update smhal/Makefile where it forcibly
|
|
|
|
builds each of these files with -Os */
|
|
|
|
|
2016-09-21 05:49:45 -04:00
|
|
|
*/ff.o(.text*)
|
2016-10-04 01:28:48 -04:00
|
|
|
*/vfs_fat_*.o(.text*)
|
|
|
|
*/py/formatfloat.o(.text*)
|
|
|
|
*/py/parsenum.o(.text*)
|
|
|
|
*/py/mpprint.o(.text*)
|
2016-09-21 05:49:45 -04:00
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
} >FLASH_ISR
|
2017-07-18 23:12:10 -04:00
|
|
|
|
2022-08-14 18:35:23 -04:00
|
|
|
INCLUDE common_text.ld
|
|
|
|
INCLUDE common_extratext_data_in_flash.ld
|
2020-10-29 08:07:51 -04:00
|
|
|
INCLUDE common_bss_heap_stack.ld
|
2016-09-21 05:49:45 -04:00
|
|
|
}
|