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

adapt a ble example to run on an nRF52840 dongle.

i have been able to make progress with this - so that now

  - having updated nrfconnect and it's applications i have  successfully loaded the preexisting hex file for ble_app_blinky onto the dongle, and it is running fine. when i rebuilt, using version 6.1.1 of the 140 softdevice and try to write the hex file to the dongle   i am asked to specify which SoftDevice is required by nrfconnect -  for S140 there are only two version 6.0.0 and 6.1.0 -  but i am using  6.1.1 but i have not yet been able to find a table giving the hex handle to use with each softdevice, and nrfconnect seems to be requiring the hex handle.

i think i just need this hex handle to be able to run modified applications - thanks

my original question was below, but i think you can ignore it...

i would like to adapt a ble example (with soft device)  from the nordic sdk examples to run on an nRF52840 dongle. I am trying the ble_ap_blinky_pca10059_s140. I am using nRF Connect to program the dongle and Segger Studio Nordic Edition to generate the hex file. nRF Connect will not allow me to write the generated hex file, and i am guessing  it's because it does not have the mbr present. Is there a way to verify this and if necessary get the mbr included during the build (i have added MBR_Present to the preprocessor definitions as a guess). I have been using the v. useful nRF52840 Dongle Programming Tutorial for guidance.

many thanks

  • Hi. 

    We do have a nRF52840 Dongle programming tutorial that you can take a look at. 

    https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial 

    This should provide you with the information you need. If you still have further questions, please let me know. 

    Best regards, 
    Joakim

  • oh sorry, i keep typing too soon! - i have located the S.140 6.1.1's ID in it's release notes, as suggested in your tutorial, apologies for not reading the tutorial carefully enough first time round.  The ID is 0xB6

    I recompiled the ble_app_blinky_pca10059_s140 example, just to make sure that this will still load and run, before I start to make changes to the code

    The original hex, that comes with the examples,  loads and runs OK.

    when I try to load the recompiled version, made with segger studio and v.15 of the SDK which comes with S.140 v6.1.1 in it's components, nrfconnect requests 'please select the softdevice reuired by the application firmware' it does not list 140 6.1.1 so I type in the ID 0x00b6

    I now get error messages:

    the long error message at the end of the log is

    DFU failed: Error message for known extended error code from DFU target: The array of supported SoftDevices for the update does not contain the FWID of the current SoftDevice.

    i also made a hex file for the ble_app_blinky_c (i.e. central) using the modifications in your tutorial, to convert the make process for pca10056 to that for pca10059, the rsulting hex file gave the same errors when i tried to load itwith nrfconnet.

    please could you suggest what i'm doing wrong,

    with many thanks, again

    ruth

  • hi joakim,

    ah ha - i've progressed.

    i must apologise for not reading the tutorial carefully enough, in my haste. I re-read it this morning and realised my mistake was not loading the hex of the softdevice as well.

    as it says "You must add the SoftDevice hex in addition to the application hex file before you press "Write" in cases where the Dongle currently does not have any SoftDevice or if the SoftDevice version does not match the requirement of your application. "  !!!

    I added the softdevice hex and the application loaded onto the dongle successfully.

    so, thanks for the tutorial - note to self 'read the documentation carefully' !!

    and thanks for your support

    very embarrassed

    ruth

  • Ah, I'm glad to hear that you were able to solve it!

    Happens to us all! Good luck with your project, and be sure to let us know if you have any further questions.

    Best regards,
    Joakim

Related