This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Working examples for nRF51822

Hi guys,

first of all here is my setup: https://devzone.nordicsemi.com/f/nordic-q-a/42768/nrf51-52---sdk15---linux-gcc-st-link-v2

It seems like nearly none of the BLE examples of SDK12.3 work on my nRF51822 module. So far I only got the beacon example running succesfully. All other examples (for example experiment ble blinky) seem to crash when starting advertising...

Only thing I changed is the MEMORY section in the linker file:

MEMORY
{
  FLASH (rx) : ORIGIN = 0x1B000, LENGTH = 0x25000
  RAM (rwx) :  ORIGIN = 0x20001870, LENGTH = 0x2790
}

and changing the target in the makefile from nrf51422_xxac to nrf51422_xxaa

Is it to be expected that only the beacon examples works with this module?

Parents Reply
  • Hi,

    The RAM base is probably set to low for blinky example. The default linker config for the blinky example looks like this (for xxAC):

    MEMORY
    {
      FLASH (rx) : ORIGIN = 0x1b000, LENGTH = 0x25000
      RAM (rwx) :  ORIGIN = 0x20001fe8, LENGTH = 0x6018
    }

    And it should be as simple as subtracting the RAM size by  0x4000 to make it work on xxAA (some examples may require more than 16K of RAM):

    MEMORY
    {
      FLASH (rx) : ORIGIN = 0x1b000, LENGTH = 0x25000
      RAM (rwx) :  ORIGIN = 0x20001fe8, LENGTH = 0x2018
    }

Children
No Data
Related