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

Uploading ble_app_beacon to nRF51822 Beacon Kit

Hi,

I'm trying to load the ble_app_beacon application under C:\Nordic Semiconductor\nRF51822 Beacon v1.1.0\Source Code\nrf51_beacon\ble_app_beacon\pca20006\s110\arm_build to the Beacon Kit using the nRF51 DK. I can compile the Keil project under this folder fine, but when I only load nrf51822_beacon_app.hex to the beacon (with no softdevice, using program application tab on nRF go), the beacon does not advertise.

I had also tried uploading SoftDevice 7.1.0 then uploading nrf51822_beacon_app.hex, but I then got "This has file has data in SoftDevice region" error (This was the first thing I tried).

Could you please tell me what I am doing wrong?

  • Hello. From the error message it sounds like you try to upload the wrong softdevice. For the SDK 7.1 you need to use the softdevice 7.1.0. Are you sure this is the softdevice you upload?

    To upload the nrf51822_beacon_app using nRFgo studio, these steps are required:

    1. Make sure there is no bootloader installed. This can be done by hitting the "Erase all" button.

    2. Program the softdevice. It can be found under "Nordic Semiconductor\nRF51822 Beacon v1.1.0\SoftDevice".

    3. Program the application with the hex file from keil. If it still does not advertise you could try to upload the precompiled app, found under "Nordic Semiconductor\nRF51822 Beacon v1.1.0\Precompiled hex" and see if it advertise then.

    The led on the nRF51822 is blinking purple every 5 seconds when it is advertising.

  • It works with softdevice 7.1.0 and the precompiled hex, but not with the application hex file that I get after compiling the project (I get the "This has file has data in SoftDevice region" error). I still haven't been able to figure out why this is happening. Could someone please give me suggestions?

  • You must be building with the wrong parameters for the code start if you're getting that message.

    Softdevice 7.1.0 requires user code to start at 0x16000, what do you have your code start set to?

  • @rols Thank you very much for your response. I didn't change anything in the sample project and I'm not sure where that value set. Could you tell me where I should be looking at?

  • I don't know what you're building with (as in IDE) and I don't have the project code so I can't really say. There's stuff in the manual about changing the build address, if it's Keil is something like IROM1 or .. not sure. Search for IROM1 in the forums, there's information there and some screenshots of Keil.

Related