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

Download S132 v5.0.0 with SDK's 14.0.0 BLE example

I've been unsuccessfully attempting to download and execute a BLE example on a nRF52832, and I could not succeeded probably due to false alignment of Soft device's and application's memory. I use the following components:

  1. SDK - 14.0.0 ble_app_hrs_c_pca10040_s132_uart example
  2. Soft Device - S130 v5.0.0
  3. nRF52832 PCA 10040
  4. Program and Debug - IAR 7.80.1

Following the documentation on memory resource requirements, the Soft Device should start from address 0x1000 and the application should start from address 0x23000. However, I've examined the s132_nrf52_5.0.0_softdevice.hex file and found that it's data ends up in 0x224A7 address.

The IAR allow to compile and download both components to the nRF52, while during execution the program fails on the first BLE related function - ble_stack_init(). Attempting to program the nRF52 using the nRFgo studio, when first programming the Soft Device it will fail to program the application due to memory overlap.

I've searched the forum for any related problems and found little reference to SDK14.0.0 with S132 and BLE example. If someone encountered with this issue, or has any suggestions please advice me in this matter.

Thanks in advance

  • First off, are you using the S130 or S132 softdevice? Have you tried flashing the s132 softdevice to your nrf52832 instead of S130? Under the downloaded nRF5_SDK_14.0.0 folder, you can find the softdevice under -> Components -> softdevice -> s132 -> hex -> s132_nrf52_5.0.0_softdevice.hex. Try flashing that softdevice to your nrf52832 using nrfStudio & running the example. Then it should work. Hope that helps!

  • Hello Thanks for the response, and sorry for the soft device mix up, I was attempting to program the S132 soft device. After additional attempts I could successfully run the HRS example ble_app_hrs_pca10040_s132 (both he central and the peripheral examples), but not the ble_app_hrs_pca10040_s132_uart example which I was initially attempting. As suggested I programmed the soft device first using the nRFgo studio and then programmed the application. The application MUST be programmed with ROM starting address of 0x23000. The RAM could be adjusted according to the application and the network planning, I set it to 0x20002a58.

    BR

Related