OTA on nrf52840 via button mode.

I want to test OTA in button mode. I have configured the button in DFU project. Now I upload the files in my device in the following pattern:-

1)Bootloader hex file

2)Softdevice file

3)Firmware file.

Now I switch off the device and turn it on again.

After turning on I observed that the device directly enters into bootloader mode without pressing the button. Why does it happen? It should enter the bootloader mode while I press the DFU button while power on. Please help me with it. It directly goes into bootloader mode without even pressing button.

Parents
  • Hi

    This is discussed in this case.

    Essentially, if you program the application without using the bootloader the bootloader won't know that there is a valid application there. 

    If you still can't get it to work after reading through the old case let me know, and I will do my best to help. 

    Best regards
    Torbjørn 

  • Thank you for your response. I read the post which you shared. So basically I will have to mergehex all files and then create a package and do OTA. 

    The command used for merging will be as follows:- 

    mergehex --merge s140_nrf52_7.2.0_softdevice.hex ble300.hex nrf52840_xxaa_s140.hex --output out.hex

    Here in the above command

    bootloader file - nrf52840_xxaa_s140.hex

    softdevice file - s140_nrf52_7.2.0_softdevice.hex

    application file - ble300.hex

    and the output after merging will be out.hex.

    please correct me if I am wrong. Also do I have to change any settings of loaction or just merging will help?

Reply
  • Thank you for your response. I read the post which you shared. So basically I will have to mergehex all files and then create a package and do OTA. 

    The command used for merging will be as follows:- 

    mergehex --merge s140_nrf52_7.2.0_softdevice.hex ble300.hex nrf52840_xxaa_s140.hex --output out.hex

    Here in the above command

    bootloader file - nrf52840_xxaa_s140.hex

    softdevice file - s140_nrf52_7.2.0_softdevice.hex

    application file - ble300.hex

    and the output after merging will be out.hex.

    please correct me if I am wrong. Also do I have to change any settings of loaction or just merging will help?

Children
Related