From f5ac8d69ce752e2d8896ea9a7cc2c62fec7d2e91 Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Tue, 15 May 2018 09:10:05 +0100 Subject: [PATCH] Nordic: Adjust RAM requirements. --- .../TARGET_MCU_NRF52832/device/TOOLCHAIN_ARM_STD/nRF52832.sct | 4 ++-- .../TARGET_MCU_NRF52832/device/TOOLCHAIN_GCC_ARM/NRF52832.ld | 4 ++-- .../TARGET_MCU_NRF52832/device/TOOLCHAIN_IAR/nRF52832.icf | 4 ++-- .../TARGET_MCU_NRF52840/device/TOOLCHAIN_ARM_STD/nRF52840.sct | 4 ++-- .../TARGET_MCU_NRF52840/device/TOOLCHAIN_GCC_ARM/NRF52840.ld | 4 ++-- .../TARGET_MCU_NRF52840/device/TOOLCHAIN_IAR/nRF52840.icf | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/device/TOOLCHAIN_ARM_STD/nRF52832.sct b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/device/TOOLCHAIN_ARM_STD/nRF52832.sct index e69ed0c74f..2bdba912a1 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/device/TOOLCHAIN_ARM_STD/nRF52832.sct +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/device/TOOLCHAIN_ARM_STD/nRF52832.sct @@ -14,8 +14,8 @@ #define MBED_RAM_START 0x20000000 #define MBED_RAM_SIZE 0x10000 #else - #define MBED_RAM_START 0x20003800 - #define MBED_RAM_SIZE 0xC800 + #define MBED_RAM_START 0x200031D0 + #define MBED_RAM_SIZE 0xCE30 #endif #define MBED_RAM0_START MBED_RAM_START diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/device/TOOLCHAIN_GCC_ARM/NRF52832.ld b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/device/TOOLCHAIN_GCC_ARM/NRF52832.ld index fd78080909..0fa07980fc 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/device/TOOLCHAIN_GCC_ARM/NRF52832.ld +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/device/TOOLCHAIN_GCC_ARM/NRF52832.ld @@ -30,8 +30,8 @@ #define MBED_RAM_START 0x20000000 #define MBED_RAM_SIZE 0x10000 #else - #define MBED_RAM_START 0x20003800 - #define MBED_RAM_SIZE 0xC800 + #define MBED_RAM_START 0x200031D0 + #define MBED_RAM_SIZE 0xCE30 #endif #define MBED_RAM0_START MBED_RAM_START diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/device/TOOLCHAIN_IAR/nRF52832.icf b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/device/TOOLCHAIN_IAR/nRF52832.icf index d66a6ab5ab..fd96dc6952 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/device/TOOLCHAIN_IAR/nRF52832.icf +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/device/TOOLCHAIN_IAR/nRF52832.icf @@ -16,8 +16,8 @@ if (MBED_APP_START == 0) { define symbol MBED_RAM_START = 0x20000000; define symbol MBED_RAM_SIZE = 0x10000; } else { - define symbol MBED_RAM_START = 0x20003800; - define symbol MBED_RAM_SIZE = 0xC800; + define symbol MBED_RAM_START = 0x20003188; + define symbol MBED_RAM_SIZE = 0x3CE78; } define symbol MBED_RAM0_START = MBED_RAM_START; diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/device/TOOLCHAIN_ARM_STD/nRF52840.sct b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/device/TOOLCHAIN_ARM_STD/nRF52840.sct index 6849dc2239..8aaa8a42ba 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/device/TOOLCHAIN_ARM_STD/nRF52840.sct +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/device/TOOLCHAIN_ARM_STD/nRF52840.sct @@ -14,8 +14,8 @@ #define MBED_RAM_START 0x20000000 #define MBED_RAM_SIZE 0x40000 #else - #define MBED_RAM_START 0x20003700 - #define MBED_RAM_SIZE 0x3C900 + #define MBED_RAM_START 0x20003188 + #define MBED_RAM_SIZE 0x3CE78 #endif #define MBED_RAM0_START MBED_RAM_START diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/device/TOOLCHAIN_GCC_ARM/NRF52840.ld b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/device/TOOLCHAIN_GCC_ARM/NRF52840.ld index 55f39e9c4f..99b8a4e4dd 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/device/TOOLCHAIN_GCC_ARM/NRF52840.ld +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/device/TOOLCHAIN_GCC_ARM/NRF52840.ld @@ -30,8 +30,8 @@ #define MBED_RAM_START 0x20000000 #define MBED_RAM_SIZE 0x40000 #else - #define MBED_RAM_START 0x20003700 - #define MBED_RAM_SIZE 0x3C900 + #define MBED_RAM_START 0x20003188 + #define MBED_RAM_SIZE 0x3CE78 #endif #define MBED_RAM0_START MBED_RAM_START diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/device/TOOLCHAIN_IAR/nRF52840.icf b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/device/TOOLCHAIN_IAR/nRF52840.icf index 2605356911..95819fe1df 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/device/TOOLCHAIN_IAR/nRF52840.icf +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/device/TOOLCHAIN_IAR/nRF52840.icf @@ -16,8 +16,8 @@ if (MBED_APP_START == 0) { define symbol MBED_RAM_START = 0x20000000; define symbol MBED_RAM_SIZE = 0x40000; } else { - define symbol MBED_RAM_START = 0x20003700; - define symbol MBED_RAM_SIZE = 0x3C900; + define symbol MBED_RAM_START = 0x20003188; + define symbol MBED_RAM_SIZE = 0x3CE78; } define symbol MBED_RAM0_START = MBED_RAM_START;