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

Example codes for nRF51822 doesn't work except via mbed compiler

Hello everyone,

I have problems with my nRF51822. I think it is related to the starting memory address of softdevice. I attach 2 nRFgo's screenshots.

I have programmed my pca10001 board using Keil uVision 5 with:

  • blinky_example and it works (no softdevice was used here)
  • ble_app_hrs example and S110 SoftDevice and it doesn't work (two .hex files, one for the software and the other one for the softdevice).

image description

after that I used the online compiler from mbed.org and compiled the BLE_HeartRate example which contains the example and the S110 SoftDevice in just one .hex file and IT WORKED.

image description

If you see both screenshots you can see appreciate the softdevice memory address beginning are different.

Do you think this can be the cause of the error ? How can I change that memory address in Keil ?

Edit:

I installed the newest SDK: nRF51_SDK_8.0.0_5fc2c3a.zip and I'm using now the last SD: s110_nrf51822_7.1.0_softdevice.hex and it continues without working.

nRFgo screenshot:

image description

Edit2:

SD 8.0.0 flashed:

image description

Edit 3:

Target settings:

image description

Parents
  • There are many versions of the SoftDevice and the SDK. You must choose the ones that are compatible with each other and the chip revision. Have a look at the compatibility matrix here: www.nordicsemi.com/.../99084712

    Memory location 0x14000 is used by SoftDevice 6.x and and 0x16000 is used by SoftDevice 7.x. If you want to change the application start addresses in keil so they correspond with the SD, you can go to Options in Keil, and change the start addresses under the C/C++ fan. To see the IRAM and IROM start addresses have a look in the SD specification.

  • I have edited my post. I did what you said: install the last SDK and last SD and it is still not working. Where is the problem ? What I always do is: first I flash the application and then I flash the SD

Reply Children
No Data
Related