Porting nRF52840 DK code to nRF52805

I have written BTLE code that works on the nRF52840 DK using SoftDevice s140. I have ported this code to work on the nRF51 DK and nrf51822 MCU using SoftDevice s130. I use SoftDevice only for flash writes and BTLE. I would like to know what it would take to port this code to the nRF52805 MCU? What SoftDevice should I use (would like the latest supported)?

Parents Reply Children
  • It builds but I don't have an nRF52 DK. I also downloaded the SDK for the nRF52 DK and I simply moved my directory into the examples directory of the updated SDK. It built an ran on my nRF52840 DK without a single modification. (The new SDK is only the latest update of the one I have currently - there have been no other updates in between. There are some experimental projects using board pca10056 with s112 (I don't know if there was an s113 - those were VERY rare). Supposedly that will run on the nRF52805.

    Basically what I am trying to figure out is the extent of the code modifications I will need to make. So far, from what I use, moving down to s112 from s140 only eliminates one feature (the extended length negotiation),

  • from what I use, moving down to s112 from s140 only eliminates one feature (the extended length negotiation

    If you need DLE, then check also s113. S113 does have it, while s112 doesn't.

  • I am sorry that I don't know what DLE is. I just found an experimental package for board pca10056 using s113 (not s112). I made a copy of the directory, renamed it, and replaced my main files with it's main file and added all my other source an h-files (leaving sdk_config.h alone) and it built. I have not run it on my nRF52840 DK. But it was a project that used a SoftDevice compatible with the nRF52805 using a board I have. So it's a start. 

    I do not understand what half of the items in the sdk_config.h file mean or do. I would give anything to find good documentation about it. For most stuff I don't know what to keep (1) and what to toss out (0). I don't know if I need GATT support or not or GATT Queue (using only SoftDevice and not the BTLE SDK.

    What is the difference between pca10056 and pca10056e? Can I use the nRF52840 DK to run a pca10056e project?

  • I am sorry that I don't know what DLE is

    You said moving to s112 eliminated "extended length negotiation". I assumed you meant the link layer Data Packet Length Extension (DLE).

  • Okay, that's what DLE means. Yes it did, but I am not dependent upon it. But now that I know that's what the difference is and since the nRF52805 supports s113, I can make use of it.

    In any case I built the s112 version of my project using the pca10056e option and it built and ran. Could I flash an nRF52805 MCU with the generated HEX file?

Related