diff --git a/configs/nucleo-f401re/nsh/defconfig b/configs/nucleo-f401re/nsh/defconfig index a77a2e7fb9d..59fa0dbd644 100644 --- a/configs/nucleo-f401re/nsh/defconfig +++ b/configs/nucleo-f401re/nsh/defconfig @@ -221,6 +221,7 @@ CONFIG_ARCH_CHIP_STM32F401RE=y # CONFIG_STM32_STM32F20XX is not set # CONFIG_STM32_STM32F30XX is not set CONFIG_STM32_STM32F40XX=y +CONFIG_STM32_STM32F401=y # CONFIG_STM32_DFU is not set # @@ -370,7 +371,7 @@ CONFIG_BOOT_RUNFROMFLASH=y # Boot Memory Configuration # CONFIG_RAM_START=0x20000000 -CONFIG_RAM_SIZE=262144 +CONFIG_RAM_SIZE=98304 # CONFIG_ARCH_HAVE_SDRAM is not set # diff --git a/configs/nucleo-f401re/nsh/setenv.sh b/configs/nucleo-f401re/nsh/setenv.sh index 552fcf5b2c5..3c1e8b9d62e 100644 --- a/configs/nucleo-f401re/nsh/setenv.sh +++ b/configs/nucleo-f401re/nsh/setenv.sh @@ -51,7 +51,7 @@ fi # toolchain under windows. You will also have to edit this if you install # the CodeSourcery toolchain in any other location #export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin" -export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin +export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin" # This the Cygwin path to the location where I build the buildroot # toolchain. diff --git a/configs/nucleo-f401re/scripts/ld.script b/configs/nucleo-f401re/scripts/ld.script index 01e73d97d4a..aba4b88abac 100644 --- a/configs/nucleo-f401re/scripts/ld.script +++ b/configs/nucleo-f401re/scripts/ld.script @@ -44,8 +44,7 @@ MEMORY { flash (rx) : ORIGIN = 0x08000000, LENGTH = 512K - /* Total: 101 vectors = 404 bytes (0x194) to be reserved in RAM */ - sram (rwx) : ORIGIN = 0x20000000+0x194, LENGTH = (96K-0x194) + sram (rwx) : ORIGIN = 0x20000000, LENGTH = 96K } OUTPUT_ARCH(arm)