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,

    I went through the project you shared, and I couldn't find any issues there. Is there any error message or log to share? It would be nice if I got any clue as to where the application was crashing. How can you confirm that this application is not working for your module?

    Kind Regards,

    Abhijith

  • Hello Abhijith

    Thank you a lot for the answer,

    as the aplication is working on the Development Kit, I do not have many options to Debug it on the Module. What I checked: The BLE does not advertise, the defined GPIO does not work. When I do not configure CONFIG_BOOTLOADER_MCUBOOT, all this works.

    I suppose that the module does not boot at all, because there is no output (GPIO) at all. Maybe you can give me some advice, how could I find out more information about where exactly the application crashes.

    Kind regards 

    Jiri

  • Hello,

    To narrow down this issue, try adding each configuration and seeing when and which configuration is triggering the issue. For doing this, take a simple sample (may be Hello World), include each configuration one by one, and see the result for each. See if it's the bootloader (MCUBOOT) triggering the issue. 

    Kind Regards,

    Abhijith

  • Hello Abhijith,

    sorry for the late answer, I was out for a few days. I tested it as you suggested and the issue is really the MCUBOOT. Is there actualy any reason, why the NORA B1 can't do this? (Hardware)

    Kind regards

    Jiri

  • Hello,

    Sorry for the late response; I was on vacation for some days.

    I don't know why it's behaving like this, and it's hard for me to reproduce this as I don't have the module you are working with. I am not sure on this, but is this a problem regarding the DC_DC being enabled for the module you are working on? Try disabling the DC_DC inside the prj.config and MCUboot.config.

    CONFIG_BOARD_ENABLE_DCDC=n
    CONFIG_BOARD_ENABLE_DCDC_APP=n
    CONFIG_BOARD_ENABLE_DCDC_NET=n

    Kind Regards,

    Abhijith

Related