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

What do I need to do to get a sample program in the SDK to advertise?

Hello,

I have just purchased the nRF51 Development Kit and I am having extreme difficulty getting any of the sample programs to function.

There are the specifications at this point:

IDE uVision V5.24.2.0

SDK nRF5_SDK_11.0.0

nrf SoftDevice s130_nrf51_2.0.0

Device arm_startup_nrf51.s(startup)

For example, I have loaded the project in this path: examples/ble_peripheral/ble_app_template/pca10028/arm5_no_packs/ble_app_template_s130_pca10028

I can build the project, flash it, and start a debug session and set a breakpoint and see it reach the breakpoint, so I know that the device is working. From looking at the code in the main routine, it should at very least advertise the DEVICE_NAME , however, a scanning app on my Android phone does not see this device.

I have performed various internet searches, and tried everything I could think of and although I have not tried all the example programs, none of the ones I have tried have advertised the DEVICE_NAME.

Your assistance would be very much appreciated.

Sincerely, Brian Fleming

Parents
  • Hi again Brian.

    Yes, you are correct. I forgot to mention that you can also drag-and-drop the hex file to the removable drive that appears.
    But as the pre-compiled hex file is working, we can rule out any HW issues.

    You haven't made any modifications to the examples you are testing?
    My guess would be that the softdevice is not being downloaded to your DK.
    The softdevice can be found as a hex-file in the SDK;
    sdk_root/components/softdevice/s130/hex

    This file doesn't need to be built or modified, you can simply flash it directly to your DK.
    This can be done by using nRFGo Studio, like I mentioned in my comment. nRFGo Studio is a software solution provided by Nordic Semiconductor and can be used for programming nRF5x devices through SEGGER J-LinkRegistered. After the softdevice is on your board, you can flash your application.

    You should take a look at our tutorials page here on devzone.
    There we have a Getting started with the nRF51 or nRF52 Development Kit tutorial that I'm sure will be helpful.

    Note; I will get a notification when you reply here on devzone, so there is no need to send an e-mail.

    Best regards,
    Joakim.

  • Ok, I'm glad you sort of got it to work.
    So you can see your device advertising now?
    If you don't have any more questions at this point, I'd appreciate it if you could close the case by marking the answer as correct.
    You are of course welcome to post another question at a later point if you face any more problems.
    Cheers.

  • Hello, yes it is advertising because I can see it as an available BLE device on the phone. The website seems to have changed because I can not see where I can indicate that this question has been answered correctly.

Reply Children
No Data
Related