Skip to content

Commit 258b642

Browse files
committed
Changed template variables to match STMF40x
1 parent 8f4d461 commit 258b642

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

arm/cortexm.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -835,12 +835,16 @@ def __init__(self):
835835
'nucleo_f401re': {'STM32_Main_Clock_Frequency': '168_000_000',
836836
'STM32_HSE_Clock_Frequency': '8_000_000',
837837
'STM32_FLASH_Latency': '5',
838-
'STM32_SRAM_Size': '96K'},
838+
'STM32_Linker_RAM_Size': '96K'
839+
'STM32_Linker_Flash_Size': '512K',
840+
'STM32_Linker_CCM_Size': '64K'},
839841

840842
'nucleo_f411re': {'STM32_Main_Clock_Frequency': '168_000_000',
841843
'STM32_HSE_Clock_Frequency': '8_000_000',
842844
'STM32_FLASH_Latency': '5',
843-
'STM32_SRAM_Size': '128K'},
845+
'STM32_Linker_RAM_Size': '128K'
846+
'STM32_Linker_Flash_Size': '512K',
847+
'STM32_Linker_CCM_Size': '64K'},
844848

845849
'feather_stm32f405': {'STM32_Main_Clock_Frequency': '168_000_000',
846850
'STM32_HSE_Clock_Frequency': '12_000_000',

arm/stm32/stm32f4x1/memory-map.ld.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636

3737
MEMORY
3838
{
39-
flash (rx) : ORIGIN = 0x08000000, LENGTH = 512K
40-
sram12 (rwx) : ORIGIN = 0x20000000, LENGTH = "${STM32_SRAM_Size}"
41-
ccm (rw) : ORIGIN = 0x10000000, LENGTH = 64K
39+
flash (rx) : ORIGIN = 0x08000000, LENGTH = "${STM32_Linker_Flash_Size}"
40+
sram12 (rwx) : ORIGIN = 0x20000000, LENGTH = "${STM32_Linker_RAM_Size}"
41+
ccm (rw) : ORIGIN = 0x10000000, LENGTH = "${STM32_Linker_CCM_Size}"
4242
}
4343

4444
REGION_ALIAS("sram_tx", sram12)

0 commit comments

Comments
 (0)