From e3188e315a761681534f90acdf5ef1a4f0e3fad4 Mon Sep 17 00:00:00 2001 From: Jonny Austin Date: Sat, 17 Mar 2018 02:37:09 +0000 Subject: [PATCH] Add SoftDevice values for S130v1 These values are determined from http://infocenter.nordicsemi.com/pdf/S130_SDS_v1.0.pdf pg 41 It appears using S130v2 would allow even lower memory consumption This is for use in conjunction with the bbc-microbot-classic-gcc-s130 target, which also needs a fix before it will work. --- inc/core/MicroBitConfig.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/inc/core/MicroBitConfig.h b/inc/core/MicroBitConfig.h index e6df68c..0ece583 100644 --- a/inc/core/MicroBitConfig.h +++ b/inc/core/MicroBitConfig.h @@ -49,13 +49,21 @@ DEALINGS IN THE SOFTWARE. // The end address of memory normally reserved for Soft Device. #ifndef MICROBIT_SD_LIMIT +#ifdef TARGET_MCU_NRF51_16K_S130 +#define MICROBIT_SD_LIMIT 0x20002800 +#else #define MICROBIT_SD_LIMIT 0x20002000 #endif +#endif // The physical address in memory of the Soft Device GATT table. #ifndef MICROBIT_SD_GATT_TABLE_START +#ifdef TARGET_MCU_NRF51_16K_S130 +#define MICROBIT_SD_GATT_TABLE_START 0x20002200 +#else #define MICROBIT_SD_GATT_TABLE_START 0x20001900 #endif +#endif // Physical address of the top of the system stack (on mbed-classic this is the top of SRAM) #ifndef CORTEX_M0_STACK_BASE