OTA DFU on NORA B1

Hello,

I have a project working on Nora B1, which I am testing on nrf5340DK. It is based on the Peripheral UART Sample, programmed with nfr Connect SDK v1.9.1. Now I need to add the OTA DFU to update the program from the nrf Connect mobile app. I changed the prj.conf and main according to this tutorial

https://getwavecake.com/blog/adding-ota-dfu-to-a-nordic-zephyr-project/

It works perfectly, when I am testing it on the Development Kit, but it does not work at all on the Nora B1. The flash is succesful, but the BLE can't get initialised.

I tried a bit and it seems like the problem is caused by the line

CONFIG_BOOTLOADER_MCUBOOT=y
when I add this to the prj. conf, BLE does not work, even when I did not do any changes in the main.
Is there anything special I should take care about while configuring bootloader on the NoraB1?
Thanks a lot for any answer
  • Hello,

    It is based on the Peripheral UART Sample, programmed with nfr Connect SDK v1.9.1.

    Is there any reason you want to use the older version of the nRF Connect SDK? If not, I recommend switching to the latest stable version, which is v2.6.0. I strongly recommend switching to the newer version, as adding OTA DFU support for NCS v2.5.0 and above is much easier. I haven't gone through the tutorial you have provided, but there is an official tutorial for doing this in our Developer Academy course. See the section DFU for nRF5340 (only works with new SDK versions).

    when I add this to the prj. conf, BLE does not work, even when I did not do any changes in the main.

    Could you brief a little more on this issue like how the BLE crashes? Is it like device stop advertising or is this any connection issue? Have you tested any sample inside the SDK?

     Kind Regards,

    Abhijith

  • Thanks for the answer,

    the reason for the old SDK is that i have done this application some time ago, and now I just need to add the OTA. Thank you for the tip for the Developer Academy Course. I was trying to make it work with the actual SDK v.2.6.0 on nrf5340DK, but I am struggeling with that.

    By the Lesson 8 Excercise 3, which is actually the thing that I need to implement, I always get the Error Message 

    "E: Failed to open flash area ID 2 (image 0 slot 1): -19, cannot continue" via VCOM1 after booting.

    I downloaded the code from the GitHub repository of the Academy, so the code must be Ok, maybe I need to change some settings in VS Code?

    If I could get it working with the new SDK, I will consider overwriting the old program into the SDK 2.6.0.

    Kind Regards

    Jiri

  • Hello,

    It is good to hear that you are considering the new SDK versions.

    Yes, I have seen this error before, but as far as I remember, this error will not affect your DFU process. We are working on this error message internally. Have you tested the whole DFU process?

    Take a look at this old thread, which discusses the same issue.

     Please expect some delay after this response as we are having Easter vacation here in Norway and we are only very few working. Sorry if this creates any inconvenience.

    Kind Regards,

    Abhijith

  • The Problem is, that after this message, I don't get any output anymore from the COM port, and the DK is not advertising.

  • Hello,

    I tried the Developer Academy course sample now, and it is working fine on my side. It's not generating any errors, as you pointed out. Device is advertising properly. See the screenshot below. To which board are you building? Have you changed anything in the sample?


    Please expect the next response only after the 2nd of April, as it is Easter vacation here in Norway.

    Kind Regards,

    Abhijith

Related