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

s130 2.0.0 ROM and RAM settings?

Hi,

I am using a 128KB-rom 16KB-ram nrf51822 and trying to run blinky from SDK 11 with softdevice.

If I load nrf51 S130 1.0.0 softdevice, and use the following in my gcc compiling setting: FLASH (rx) : ORIGIN = 0x1c000, LENGTH = 0x4000 RAM (rwx) : ORIGIN = 0x20002800, LENGTH = 0x1800 I was able to run blinky.

After I change to S130 2.0.0 softdevice, and use the following: FLASH (rx) : ORIGIN = 0x1b000, LENGTH = 0x5000 RAM (rwx) : ORIGIN = 0x20002800, LENGTH = 0x1800 blinky does not work any more. I assume the RAM setting is wrong? what should be the correct setting?

Also what is the correct ROM/RAM setting for S130 2.0.0-7.alpha? I can't get blinky to work with this SD either.

Thanks for any help!

  • The ROM and RAM settings looks correct. Which chip version are you using (which module are you using)? Did you reset the chip after programming? ROM/RAM settings for S130 2.0.0-7.alpha is: ROM origin 0x1c000, RAM origin (minimum required memory): 0x1234. Why are you going to use the alpha version? I would strongly recommend using the release version.

  • Thanks Ole - I am using this: NRF51822-QFAB-R7, on a custom PCB board. And I was able to make blinky work with both S130 1.0.0 and S130 2.0.0 now. However my ble_app_beacon still does not work on either of them. I tried to use S130 2.0.0-7.alpha because in the SDK 11 ble_app_beacon example I see it loads this version of softdevice. Does ble_app_beacon work with the release version of SD (S130 2.0.0)?

  • ble_app_beacon from SDK 11 works with SoftDevice S130 v2.0.0 (release version). How do you see that the example loads the alpha version of the SoftDevice (assuming you are not using SDK 11 alpha version)?

    Do you have an external 32kHz crystal on your board? If not the example wont work out of the box. You should create your own boards file (similar to PCA10028.h or PCA20006.h) and if you are going to use internal 32kHz oscillator, change NRF_CLOCK_LFCLKSRC to use .source = NRF_CLOCK_LF_SRC_RC. Also change rc_ctiv (RC calibration interval) and rc_temp_ctiv (RC temperature calibration interval) to your needs (you can read more about them in nrf_sdm.h). The LEDs and buttons pin definitions should also be changed.

  • Has this issue been resolved ?

    I have a similar issue, I can only get the ble_beacon to compile and run on a 16k / 256k, nRF51822 QFAA

    If I try compiling the hrs example, it will only run on my QFAC 32k Ram evaluation board.

    But. reducing the Ram size in the linker file doesn't seem to allow the hrs example to run.

    (My board has the 32khz osc, so the only variable in this seems to be the ram size)

Related