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

blinky dongle by board ,nrf52840.

hi guys!

i'm trining to develop the nrf 52840 devkit in particular for the ble use.

from the documentation i didn't find anythingh about send a message to the dongle from the board in order to blinky the dongle's led.

i also tried to load the ble_pheriferal_blinky example on the board and the central one on  the dongle but it didn't work even if the same thinghs with 2 boards it's ok.

moreover using nrf connect made this unsefull because the dongle was reprogrammed by the application.

so is dongle's led blinky by the board  possible or not?  thanks for you answers!!

  • Hello,

    Did you use the pca10059 project for the dongle?

    If you use the following setup it should work:

    Dongle: SDK15.2.0\examples\ble_peripheral\ble_app_blinky\pca10059\s140\<your favorite compiler>

    When you program the dongle, remember to also program the S140 softdevice while programming the dongle when you use nRF Programmer. It is located in SDK15.2.0\components\softdevice\s140\hex\s140_nrf52_6.1.0_softdevice.hex

    When you program the dongle with both the application and the softdevice with nRF Programmer the green LED should turn on, meaning that it is advertising.

    For the DK:

    Compile the following example:

    SDK15.2.0\examples\ble_central\ble_app_uart_c\pca10056\s140\<your favorite compiler>

    If you use Segger embedded studio to program the DK, it will program the softdevice to your DK together with the application. If you use something else, you must program the softdevice separately. Use the same softdevice that you use on the Dongle.

    When it is programmed you should see LED1 turn on on the DK. This means that it is scanning.

    When they are connected the green LED on the Dongle will change to red, and on the DK LED2 will turn on instead of LED1. When they are connected, the other device will toggle a LED when you press the button on the other device (SW1 on Dongle, and Button1 on DK).

    Best regards,

    Edvin

  • I tried to this but the green led doesn't turn on..only the red one was blinkyng..

     SDK15.2.0\examples\ble_peripheral\ble_app_blinky\pca10059\s140\<your favorite compiler> and

     SDK15.2.0\components\softdevice\s140\hex\s140_nrf52_6.1.0_softdevice.hex

    must to be broggrammed both on the dongle? which one first? anyway nrf_connect programmer give me the error

    ''some of the hex files have overlapping data'':   what could i do now?

  • is only to put the : SDK15.2.0\examples\ble_peripheral\ble_app_blinky\pca10059\s140\<your favorite compiler> on the dongle because there is the softevice yet?

  • I believe the ble_app_blinky hex already has softdevice in the package.

    Program the dongle using the hex file in

    nRF5_SDK_15.2.0\examples\ble_peripheral\ble_app_blinky\hex\ble_app_blinky_pca10059_s140.hex

    Here's a reference picture for how the memory is laid out in nRF Programmer

Related