Added device family to linker generator

This commit is contained in:
Mateusz Myalski
2024-10-07 18:16:41 +02:00
committed by Piotr Esden-Tempski
parent b7fcf025e7
commit 6bcdb117b7
3 changed files with 7 additions and 0 deletions

View File

@@ -26,6 +26,8 @@
# include <libopencm3/stm32/g4/nvic.h> # include <libopencm3/stm32/g4/nvic.h>
#elif defined(STM32H7) #elif defined(STM32H7)
# include <libopencm3/stm32/h7/nvic.h> # include <libopencm3/stm32/h7/nvic.h>
#elif defined(STM32U5)
# include <libopencm3/stm32/u5/nvic.h>
#elif defined(GD32F1X0) #elif defined(GD32F1X0)
# include <libopencm3/gd32/f1x0/nvic.h> # include <libopencm3/gd32/f1x0/nvic.h>

View File

@@ -186,6 +186,8 @@ stm32f7[67][89]?i* stm32f7ccm ROM=2048K RAM=384K CCM=128K
stm32f750* stm32f7ccm ROM=64K RAM=256K CCM=64K stm32f750* stm32f7ccm ROM=64K RAM=256K CCM=64K
stm32f730* stm32f7ccm ROM=64K RAM=192K CCM=64K stm32f730* stm32f7ccm ROM=64K RAM=192K CCM=64K
stm32u5[78]5* stm32u5 ROM=2048K RAM=768K FPU=fpv5-sp-d16
stm32l01??3* stm32l0 ROM=8K RAM=2K stm32l01??3* stm32l0 ROM=8K RAM=2K
stm32l0[12]??4* stm32l0 ROM=16K RAM=2K stm32l0[12]??4* stm32l0 ROM=16K RAM=2K
stm32l03??4* stm32l0 ROM=16K RAM=8K stm32l03??4* stm32l0 ROM=16K RAM=8K
@@ -594,6 +596,7 @@ stm32f7 END ROM_OFF=0x08000000 RAM_OFF=0x20010000 CPU=cortex-m7 FPU=hard-fpv5-sp
stm32l0 END ROM_OFF=0x08000000 RAM_OFF=0x20000000 CPU=cortex-m0plus FPU=soft stm32l0 END ROM_OFF=0x08000000 RAM_OFF=0x20000000 CPU=cortex-m0plus FPU=soft
stm32l1 END ROM_OFF=0x08000000 RAM_OFF=0x20000000 CPU=cortex-m3 FPU=soft stm32l1 END ROM_OFF=0x08000000 RAM_OFF=0x20000000 CPU=cortex-m3 FPU=soft
stm32l4 END ROM_OFF=0x08000000 RAM_OFF=0x20000000 RAM2_OFF=0x10000000 RAM3_OFF=0x20040000 CPU=cortex-m4 FPU=hard-fpv4-sp-d16 stm32l4 END ROM_OFF=0x08000000 RAM_OFF=0x20000000 RAM2_OFF=0x10000000 RAM3_OFF=0x20040000 CPU=cortex-m4 FPU=hard-fpv4-sp-d16
stm32u5 END ROM_OFF=0x08000000 RAM_OFF=0x20000000 RAM2_OFF=0x20030000 RAM3_OFF=0x20040000 RAM4_OFF=0x28000000 CPU=cortex-m33 FPU=hard-fpv5-sp-d16
stm32g0 END ROM_OFF=0x08000000 RAM_OFF=0x20000000 CPU=cortex-m0plus FPU=soft stm32g0 END ROM_OFF=0x08000000 RAM_OFF=0x20000000 CPU=cortex-m0plus FPU=soft
stm32g4 END ROM_OFF=0x08000000 RAM_OFF=0x20000000 CPU=cortex-m4 FPU=hard-fpv4-sp-d16 stm32g4 END ROM_OFF=0x08000000 RAM_OFF=0x20000000 CPU=cortex-m4 FPU=hard-fpv4-sp-d16
stm32h7 END ROM_OFF=0x08000000 ROM2_OFF=0x08100000 RAM_OFF=0x24000000 RAM2_OFF=0x30000000 RAM3_OFF=0x30020000 RAM4_OFF=0x30040000 RAM5_OFF=0x38000000 CCM_OFF=0x20000000 CPU=cortex-m7 FPU=hard-fpv5-d16 stm32h7 END ROM_OFF=0x08000000 ROM2_OFF=0x08100000 RAM_OFF=0x24000000 RAM2_OFF=0x30000000 RAM3_OFF=0x30020000 RAM4_OFF=0x30040000 RAM5_OFF=0x38000000 CCM_OFF=0x20000000 CPU=cortex-m7 FPU=hard-fpv5-d16

View File

@@ -22,6 +22,8 @@
# include "../stm32/g4/vector_nvic.c" # include "../stm32/g4/vector_nvic.c"
#elif defined(STM32H7) #elif defined(STM32H7)
# include "../stm32/h7/vector_nvic.c" # include "../stm32/h7/vector_nvic.c"
#elif defined(STM32U5)
# include "../stm32/u5/vector_nvic.c"
#elif defined(GD32F1X0) #elif defined(GD32F1X0)
# include "../gd32/f1x0/vector_nvic.c" # include "../gd32/f1x0/vector_nvic.c"