diff options
| author | Chris Mason | 2019-05-13 00:13:59 +1000 |
|---|---|---|
| committer | Damien George | 2019-07-01 16:57:20 +1000 |
| commit | 378659209778a1bde24e9b15793087023b02bbd9 (patch) | |
| tree | affeeaba88c44666b441de40aa3d9a42a0ff69f4 /ports/stm32/boards/NUCLEO_L476RG | |
| parent | 9cebead27600f86a73f3326b455dcfcb065afe5f (diff) | |
stm32/boards: Optimise flash and RAM allocation for L4 boards.
Optimisations are:
- Remove FLASH_ISR section since devices with a small flash sector erase
size don't need special FLASH_ISR handling. This reduces flash image by
approx 1.5k.
- Make SRAM2 contiguous with SRAM1 where possible.
- Simplify configuration of 2k RAM buffer used for flash filesystem.
RAM changes with this commit:
- L432: stack 6k -> 10k, bss + heap 42k -> 52k
- L476: stack 16k -> 30k, bss + heap 80k -> 96k
- L496: stack 206k -> 16k, bss + heap 112k -> 302k
Diffstat (limited to 'ports/stm32/boards/NUCLEO_L476RG')
| -rw-r--r-- | ports/stm32/boards/NUCLEO_L476RG/mpconfigboard.mk | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ports/stm32/boards/NUCLEO_L476RG/mpconfigboard.mk b/ports/stm32/boards/NUCLEO_L476RG/mpconfigboard.mk index 38ae5af21..10c69461c 100644 --- a/ports/stm32/boards/NUCLEO_L476RG/mpconfigboard.mk +++ b/ports/stm32/boards/NUCLEO_L476RG/mpconfigboard.mk @@ -1,6 +1,5 @@ MCU_SERIES = l4 CMSIS_MCU = STM32L476xx AF_FILE = boards/stm32l476_af.csv -LD_FILES = boards/stm32l476xg.ld boards/common_ifs.ld -TEXT0_ADDR = 0x08000000 -TEXT1_ADDR = 0x08004000 +LD_FILES = boards/stm32l476xg.ld boards/common_basic.ld +OPENOCD_CONFIG = boards/openocd_stm32l4.cfg |
