Skip to content

Commit

Permalink
STM32H7: Add linker support for STM32H7[2345] families
Browse files Browse the repository at this point in the history
* added: device data for STM32H7[2345] MCUs. CPU spec prefers presence of
  Cortex-M7 core, where Cortex-M7 and Cortex-M4 are both present
  • Loading branch information
ventZl authored and karlp committed Mar 3, 2022
1 parent 9a5a6a2 commit 96ae7ff
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions ld/devices.data
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,18 @@ stm32g4?[34]?b* stm32g4ccm ROM=128K RAM=96K CCM=32K
stm32g4?[34]?c* stm32g4ccm ROM=256K RAM=96K CCM=32K
stm32g4?[34]?e* stm32g4ccm ROM=512K RAM=96K CCM=32K

# For STM32H7 CCM is called D-TCM
stm32h72[35]?e* stm32h7xxxe RAM=128K RAM1=16K RAM2=16K RAM4=16K CCM=128K
stm32h72[35]?g* stm32h7xxxg RAM=128K RAM1=16K RAM2=16K RAM4=16K CCM=128K
stm32h730?b* stm32h7xxxb RAM=128K RAM1=16K RAM2=16K RAM4=16K CCM=128K
stm32h73[35]?g* stm32h7xxxg RAM=128K RAM1=16K RAM2=16K RAM4=16K CCM=128K
stm32h742?i* stm32h7xxxi RAM=384K RAM1=32K RAM2=16K RAM4=64K CCM=128K
stm32h742?g* stm32h74xxg RAM=384K RAM1=32K RAM2=16K RAM4=64K CCM=128K
stm32h74[357]?i* stm32h7xxxi RAM=512K RAM1=128K RAM2=128K RAM3=32K RAM4=64K CCM=128K
stm32h74[357]?g* stm32h74xxg RAM=512K RAM1=128K RAM2=128K RAM3=32K RAM4=64K CCM=128K
stm32h75[357]?i* stm32h7xxxi RAM=512K RAM1=128K RAM2=128K RAM3=32K RAM4=64K CCM=128K
stm32h750?b* stm32h7xxxb RAM=512K RAM1=128K RAM2=128K RAM3=32K RAM4=64K CCM=128K

################################################################################
# the SAM3 chips

Expand Down Expand Up @@ -521,6 +533,13 @@ stm32f7ccm stm32f7 CCM_OFF=0x20000000
stm32g4ccm stm32g4 CCM_OFF=0x10000000
stm32l1eep stm32l1 EEP_OFF=0x08080000

stm32h7xxxb stm32h7 ROM=128K
stm32h7xxxe stm32h7 ROM=512K
# stm32h72xxxg and stm32h73xxxg
stm32h7xxxg stm32h7 ROM=1M
stm32h74xxg stm32h7 ROM=512K ROM1=512K
stm32h7xxxi stm32h7 ROM=1M ROM1=1M

################################################################################
# the SAM3 family groups
sam3xnfc sam3x NFCRAM=4K NFCRAM_OFF=0x20100000
Expand Down Expand Up @@ -554,6 +573,7 @@ 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
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
stm32h7 END ROM_OFF=0x08000000 ROM1_OFF=0x08100000 RAM_OFF=0x24000000 RAM1_OFF=0x30000000 RAM2_OFF=0x30020000 RAM3_OFF=0x30040000 RAM4_OFF=0x38000000 CCM_OFF=0x20000000 CPU=cortex-m7 FPU=hard-fpv5-dp-d16
stm32w END ROM_OFF=0x08000000 RAM_OFF=0x20000000 CPU=cortex-m3 FPU=soft
stm32t END ROM_OFF=0x08000000 RAM_OFF=0x20000000 CPU=cortex-m3 FPU=soft

Expand Down

0 comments on commit 96ae7ff

Please sign in to comment.