This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Memory regions of nRF52 linker script

I'm faced with a curious problem.

The examples of nRF52 SDK 0.9.2 have linker sciprt like this:

/* Linker script to configure memory regions. */

SEARCH_DIR(.)
GROUP(-lgcc -lc -lnosys)

MEMORY
{
  FLASH (rx) : ORIGIN = 0x0, LENGTH = 0x80000
  RAM (rwx) :  ORIGIN = 0x20000000, LENGTH = 0x8000
}

INCLUDE "nrf5x_common.ld"

Or like this with SoftDevice:

/* Linker script to configure memory regions. */

SEARCH_DIR(.)
GROUP(-lgcc -lc -lnosys)

MEMORY
{
  FLASH (rx) : ORIGIN = 0x1f000, LENGTH = 0x61000
  RAM (rwx) :  ORIGIN = 0x20002800, LENGTH = 0x5800
}

INCLUDE "nrf5x_common.ld"

The RAM length of these linker scripts are all 0x8000, i.e. 32 KB. But nRF52832 has 64 KB RAM. Why they differ from the specification? Can I modify the length of them to 0x10000 (64 KB)?

Related