Skip to content

Commit

Permalink
remove all references to firmware_version and FLASH_VERSION
Browse files Browse the repository at this point in the history
this was for the old Makefile build, and is not used at all
  • Loading branch information
tridge committed Nov 27, 2024
1 parent 2dcd4d1 commit 3f6c48e
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 85 deletions.
8 changes: 0 additions & 8 deletions Mcu/e230/GD32E230K8_FLASH.ld
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ _Min_Stack_Size = 0x400; /* required amount of stack */
MEMORY
{
FLASH (rx) : ORIGIN = 0x08001000, LENGTH = 27K
FLASH_VERSION (rx) : ORIGIN = 0x08007C00 - 48, LENGTH = 16
FILE_NAME (rx) : ORIGIN = 0x08007C00 - 32, LENGTH = 32
EEPROM (rx) : ORIGIN = 0x08007C00, LENGTH = 1K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 16K
Expand Down Expand Up @@ -84,13 +83,6 @@ SECTIONS
PROVIDE_HIDDEN (__fini_array_end = .);
} >FLASH

.firmware_version :
{
. = ALIGN(4);
KEEP (*(.firmware_info))
. = ALIGN(4);
} >FLASH_VERSION

/* The file name */
.file_name :
{
Expand Down
13 changes: 1 addition & 12 deletions Mcu/f031/STM32F031C6TX_FLASH.ld
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ MEMORY
SRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 192
RAM (xrw) : ORIGIN = 0x200000C0, LENGTH = 4K - 192
FLASH_VECTAB (rx) : ORIGIN = 0x08001000, LENGTH = 192
FLASH_VERSION (rx) : ORIGIN = 0x080010C0, LENGTH = 16
FLASH (rx) : ORIGIN = ORIGIN(FLASH_VERSION) + LENGTH(FLASH_VERSION), LENGTH = 27K - 32 -(LENGTH(FLASH_VECTAB) + LENGTH(FLASH_VERSION))
FLASH (rx) : ORIGIN = ORIGIN(FLASH_VECTAB) + LENGTH(FLASH_VECTAB), LENGTH = 27K - 32 - LENGTH(FLASH_VECTAB)
FILE_NAME (rx) : ORIGIN = 0x08007C00 - 32, LENGTH = 32
EEPROM (rx) : ORIGIN = 0x080007C00, LENGTH = 1K

Expand All @@ -56,16 +55,6 @@ SECTIONS
KEEP(*(.isr_vector)) /* Startup code */
. = ALIGN(4);
} >FLASH_VECTAB

/* The firmware version and name - at a fixed address to make it possible to read it from firmware files. */
.firmware_version :
{
. = ALIGN(4);
KEEP (*(.firmware_info))
. = ALIGN(4);
} >FLASH_VERSION



/* The program code and other data into "FLASH" Rom type memory */
.text :
Expand Down
11 changes: 1 addition & 10 deletions Mcu/f051/STM32F051K6TX_FLASH.ld
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ MEMORY
SRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 192
RAM (xrw) : ORIGIN = 0x200000C0, LENGTH = 8K - 192
FLASH_VECTAB (rx) : ORIGIN = 0x08001000, LENGTH = 192
FLASH_VERSION (rx) : ORIGIN = 0x080010C0, LENGTH = 16
FLASH (rx) : ORIGIN = ORIGIN(FLASH_VERSION) + LENGTH(FLASH_VERSION), LENGTH = 27K - 32 - (LENGTH(FLASH_VECTAB) + LENGTH(FLASH_VERSION))
FLASH (rx) : ORIGIN = ORIGIN(FLASH_VECTAB) + LENGTH(FLASH_VECTAB), LENGTH = 27K - 32 - LENGTH(FLASH_VECTAB)
FILE_NAME (rx) : ORIGIN = 0x08007C00 - 32, LENGTH = 32
EEPROM (rx) : ORIGIN = 0x08007C00, LENGTH = 1K
}
Expand All @@ -57,14 +56,6 @@ SECTIONS
. = ALIGN(4);
} >FLASH_VECTAB

/* The firmware version and name - at a fixed address to make it possible to read it from firmware files. */
.firmware_version :
{
. = ALIGN(4);
KEEP (*(.firmware_info))
. = ALIGN(4);
} >FLASH_VERSION

/* The program code and other data into "FLASH" Rom type memory */
.text :
{
Expand Down
9 changes: 0 additions & 9 deletions Mcu/f415/ldscript.ld
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ MEMORY
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 16K
FLASH (rx) : ORIGIN = 0x08001000, LENGTH = 57K
EEPROM (rx) : ORIGIN = 0x0800f800, LENGTH = 2K
FLASH_VERSION (rx) : ORIGIN = ORIGIN(EEPROM) - 48, LENGTH = 16
FILE_NAME (rx) : ORIGIN = ORIGIN(EEPROM) - 32, LENGTH = 32
}

Expand Down Expand Up @@ -103,14 +102,6 @@ SECTIONS
PROVIDE_HIDDEN (__fini_array_end = .);
} >FLASH

.firmware_version :
{
. = ALIGN(4);
KEEP (*(.firmware_info))
. = ALIGN(4);
} >FLASH_VERSION


/* The file name */
.file_name :
{
Expand Down
8 changes: 0 additions & 8 deletions Mcu/f421/AT32F421x6_FLASH.ld
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ _Min_Stack_Size = 0x400; /* required amount of stack */
MEMORY
{
FLASH (rx) : ORIGIN = 0x08001000, LENGTH = 27K
FLASH_VERSION (rx) : ORIGIN = 0x08007C00 - 48, LENGTH = 16
FILE_NAME (rx) : ORIGIN = 0x08007C00 - 32, LENGTH = 32
EEPROM (rx) : ORIGIN = 0x08007C00, LENGTH = 1K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 15K
Expand Down Expand Up @@ -111,13 +110,6 @@ SECTIONS
PROVIDE_HIDDEN (__fini_array_end = .);
} >FLASH

.firmware_version :
{
. = ALIGN(4);
KEEP (*(.firmware_info))
. = ALIGN(4);
} >FLASH_VERSION

/* The file name */
.file_name :
{
Expand Down
11 changes: 1 addition & 10 deletions Mcu/g071/STM32G071GBUX_FLASH.ld
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 36K
FLASH_VECTAB (rx) : ORIGIN = 0x08001000, LENGTH = 192
FLASH_VERSION (rx) : ORIGIN = 0x080010C0, LENGTH = 16
FLASH (rx) : ORIGIN = ORIGIN(FLASH_VERSION) + LENGTH(FLASH_VERSION), LENGTH = 62K - 32 - (LENGTH(FLASH_VECTAB) + LENGTH(FLASH_VERSION))
FLASH (rx) : ORIGIN = ORIGIN(FLASH_VECTAB) + LENGTH(FLASH_VECTAB), LENGTH = 62K - 32 - LENGTH(FLASH_VECTAB)
FILE_NAME (rx) : ORIGIN = 0x0800F800 - 32, LENGTH = 32
EEPROM (rx) : ORIGIN = 0x0800F800, LENGTH = 2K
}
Expand All @@ -58,14 +57,6 @@ SECTIONS
. = ALIGN(4);
} >FLASH_VECTAB

/* The firmware version and name - at a fixed address to make it possible to read it from firmware files. */
.firmware_version :
{
. = ALIGN(4);
KEEP (*(.firmware_info))
. = ALIGN(4);
} >FLASH_VERSION

/* The program code and other data into "FLASH" Rom type memory */
.text :
{
Expand Down
13 changes: 2 additions & 11 deletions Mcu/g431/STM32G431_FLASH.ld
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ _Min_Stack_Size = 0x400 ; /* required amount of stack */
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 32K
FLASH_VECTAB (rx) : ORIGIN = 0x08001000, LENGTH = 192
FLASH_VERSION (rx) : ORIGIN = 0x080010C0, LENGTH = 16
FLASH (rx) : ORIGIN = ORIGIN(FLASH_VERSION) + LENGTH(FLASH_VERSION), LENGTH = 62K - 32 - (LENGTH(FLASH_VECTAB) + LENGTH(FLASH_VERSION))
FLASH_VECTAB (rx) : ORIGIN = 0x08001000, LENGTH = 512
FLASH (rx) : ORIGIN = ORIGIN(FLASH_VECTAB) + LENGTH(FLASH_VECTAB), LENGTH = 62K - 32 - LENGTH(FLASH_VECTAB)
FILE_NAME (rx) : ORIGIN = 0x0800F800 - 32, LENGTH = 32
EEPROM (rx) : ORIGIN = 0x0800F800, LENGTH = 2K
}
Expand All @@ -32,14 +31,6 @@ SECTIONS
. = ALIGN(4);
} >FLASH_VECTAB

/* The firmware version and name - at a fixed address to make it possible to read it from firmware files. */
.firmware_version :
{
. = ALIGN(4);
KEEP (*(.firmware_info))
. = ALIGN(4);
} >FLASH_VERSION

/* The program code and other data into "FLASH" Rom type memory */
.text :
{
Expand Down
8 changes: 0 additions & 8 deletions Mcu/l431/ldscript.ld
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ MEMORY
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 64K
FLASH (rx) : ORIGIN = 0x08001000, LENGTH = 57K
EEPROM (rx) : ORIGIN = 0x0800f800, LENGTH = 2K
FLASH_VERSION (rx) : ORIGIN = ORIGIN(EEPROM) - 48, LENGTH = 16
FILE_NAME (rx) : ORIGIN = ORIGIN(EEPROM) - 32, LENGTH = 32
}

Expand Down Expand Up @@ -132,13 +131,6 @@ SECTIONS
. = ALIGN(4);
} >FLASH

.firmware_version :
{
. = ALIGN(4);
KEEP (*(.firmware_info))
. = ALIGN(4);
} >FLASH_VERSION

/* The file name */
.file_name :
{
Expand Down
10 changes: 1 addition & 9 deletions STM32F051K6TX_FLASH.ld
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ MEMORY
SRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 192
RAM (xrw) : ORIGIN = 0x200000C0, LENGTH = 8K - 192
FLASH_VECTAB (rx) : ORIGIN = 0x08001000, LENGTH = 192
FLASH_VERSION (rx) : ORIGIN = 0x080010C0, LENGTH = 14
FLASH (rx) : ORIGIN = ORIGIN(FLASH_VERSION) + LENGTH(FLASH_VERSION), LENGTH = 27K - (LENGTH(FLASH_VECTAB) + LENGTH(FLASH_VERSION))
FLASH (rx) : ORIGIN = ORIGIN(FLASH_VECTAB) + LENGTH(FLASH_VECTAB), LENGTH = 27K - LENGTH(FLASH_VECTAB)
EEPROM (rx) : ORIGIN = 0x080007C00, LENGTH = 1K
}

Expand All @@ -56,13 +55,6 @@ SECTIONS
. = ALIGN(4);
} >FLASH_VECTAB

/* The firmware version and name - at a fixed address to make it possible to read it from firmware files. */
.firmware_version :
{
. = ALIGN(4);
KEEP (*(.firmware_info))
} >FLASH_VERSION

/* The program code and other data into "FLASH" Rom type memory */
.text :
{
Expand Down

0 comments on commit 3f6c48e

Please sign in to comment.