diff --git a/STM32/boards.txt b/STM32/boards.txt index cb6b54d..2c2a821 100644 --- a/STM32/boards.txt +++ b/STM32/boards.txt @@ -117,8 +117,8 @@ BLACK_F407VE.name=BLACK F407VE (upload: STLink) BLACK_F407VE.vid.0=0x0483 BLACK_F407VE.pid.0=0x5711 -BLACK_F407VE.upload.maximum_size=1048576 -BLACK_F407VE.upload.maximum_data_size=196608 +BLACK_F407VE.upload.maximum_size=524288 +BLACK_F407VE.upload.maximum_data_size=131072 BLACK_F407VE.build.mcu=cortex-m4 BLACK_F407VE.build.core=arduino diff --git a/STM32/variants/BLACK_F407VE/ldscript.ld b/STM32/variants/BLACK_F407VE/ldscript.ld index 5bb1531..2ebf6a1 100644 --- a/STM32/variants/BLACK_F407VE/ldscript.ld +++ b/STM32/variants/BLACK_F407VE/ldscript.ld @@ -2,13 +2,13 @@ ENTRY(Reset_Handler) /* Highest address of the user mode stack */ -_estack = 0x20010000; /* end of RAM */ +_estack = 0x20000000 + 131072; /* end of RAM */ /* Specify the memory areas */ MEMORY { -FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 128K -RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 32K +FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 512K +RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K } /* Define output sections */