diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e06f8c..bf41430 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,7 +127,7 @@ set(CMAKE_EXE_LINKER_FLAGS "-specs=nano.specs -specs=nosys.specs -Wl,--gc-sectio set(TARGET_LDSCRIPT_BLANK_AA "${NRF5_SDK_ROOT}/components/toolchain/gcc/nrf51_xxaa.ld") # Blank device set(TARGET_LDSCRIPT_BLANK_AC "${NRF5_SDK_ROOT}/components/toolchain/gcc/nrf51_xxac.ld") # Blank device with additional 16KB SRAM set(TARGET_LDSCRIPT_SD_AA "${CMAKE_SOURCE_DIR}/components/toolchain/gcc/nrf51_xxaa_sd.ld") # With SoftDevice -set(TARGET_LDSCRIPT_SD_AC "${CMAKE_SOURCE_DIR}/components/toolchain/gcc/nrf51_xxaa_sd.ld") # With SoftDevice and additional 16KB SRAM +set(TARGET_LDSCRIPT_SD_AC "${CMAKE_SOURCE_DIR}/components/toolchain/gcc/nrf51_xxac_sd.ld") # With SoftDevice and additional 16KB SRAM # Add shared includes, defines and libs include_directories(${TARGET_C_INCLUDES}) diff --git a/components/toolchain/gcc/nrf51_xxaa_sd.ld b/components/toolchain/gcc/nrf51_xxaa_sd.ld index 9db9211..a3ec327 100644 --- a/components/toolchain/gcc/nrf51_xxaa_sd.ld +++ b/components/toolchain/gcc/nrf51_xxaa_sd.ld @@ -6,7 +6,7 @@ GROUP(-lgcc -lc -lnosys) MEMORY { FLASH (rx) : ORIGIN = 0x0001B000, LENGTH = 0x25000 - RAM (rwx) : ORIGIN = 0x200013C8, LENGTH = 0x6C38 + RAM (rwx) : ORIGIN = 0x200013C8, LENGTH = 0x2C38 } diff --git a/components/toolchain/gcc/nrf51_xxac_sd.ld b/components/toolchain/gcc/nrf51_xxac_sd.ld index 5f0dacf..9db9211 100644 --- a/components/toolchain/gcc/nrf51_xxac_sd.ld +++ b/components/toolchain/gcc/nrf51_xxac_sd.ld @@ -6,7 +6,7 @@ GROUP(-lgcc -lc -lnosys) MEMORY { FLASH (rx) : ORIGIN = 0x0001B000, LENGTH = 0x25000 - RAM (rwx) : ORIGIN = 0x200013C8, LENGTH = 0x8000 + RAM (rwx) : ORIGIN = 0x200013C8, LENGTH = 0x6C38 }