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

s120 dfu bootloader SDK 8.0 SoftDevice 2.0

Hello. Here was the question about S120+DFU and Petter Myhre said that Nordic ready to release the new S120 version with the peripheral mode support, so making DFU OTA will simply.

As far as I know this new version (s120 v.2.0) was released. So now I want to know:

  1. If there is an example for implementation of the S120 + OTA DFU?

  2. If no, what is the nearest SDK8.0 S110 example that I may use to adopt for using with S120? What I should change in it?

  3. I need to use softdevice + DFU OTA bootloader + my application. Can I develop bootloader as standalone project or I must implement it in my application? If first - how to right merge bootloader hex and application hex?

Thanks.

Parents
  • Hi Alev,

    You are correct, the current version of S120 (v2.0) supports peripheral role and you can use the same bootloader on S110 to do DFU, with minor modification:

    • Change the include path to point to the API headers file from S120 instead of S110.
    • Add ble_enable_params.gap_enable_params.role = BLE_GAP_ROLE_PERIPH; into ble_stack_init() to initialize the softdevice to start as peripheral
    • Configure the IRAM1 start address to match with the RAM requirement on S120

    Currently we don't have an official example in the SDK but I attached here the bootloader on SDK v8.0 that is modified to work with S120, please copy it to \SDKv8.0\examples\dfu to compile.

    bootloader_S120_SDK8_0.zip

    3.You can develop the bootloader as standalone project. You will have a separate hex file that you can flash it to the chip after you flash softdevice.

  • Wau! Thank you very much! I'll try this example. Thank you again.

Reply Children
No Data
Related