MCUBoot does not load application when using CONFIG_BOOT_SERIAL_WAIT_FOR_DFU

Greetings,

I have worked with the MCUBoot and its Serial Recovery feature with success and recently tried to enable the CONFIG_BOOT_SERIAL_WAIT_FOR_DFU option ( as well as the 

CONFIG_BOOT_SERIAL_WAIT_FOR_DFU_TIMEOUT=5000 option ) with no success as the application is never loaded and the device remains in bootloader mode.
This feature is necessary for us, as our custom board does not have the buttons to enter bootloader mode the typical way using the button & reset.
I am using the nRF52840DK and the sample \v2.1.0\bootloader\mcuboot\samples\zephyr\hello-world .
I have also looked at the proposed solutions in the tickets:
I have also disabled the Mass Storage Device on my nRF52840DK & disabled the logging (RTT).
From what I gather most suggestions are to migrate/update to newer versions of the SDK ( my current version is v2.1.0 ) as it is claimed ( in two of the tickets above ) that there was an issue with this feature which was resolved for newer versions of the SDK. 
Questions: 
1. Could you please confirm the claim that to work with the CONFIG_BOOT_SERIAL_WAIT_FOR_DFU option properly, the SDK has to be updated to a more recent version ( my current version is 2.1.0 ) ?
2. Is there an alternative solution to make this feature work in my existing SDK version (v2.1.0) ?
Thank you and I look forward to hearing from you!
Best regards,
Stavros
Parents Reply
  • Hello Amanda,

    I have successfully run the sample with the modification you mentioned! Thanks a lot! It also works as expected when flashed to the nRF52840DK, it exits bootloader mode after the designated wait time and enters the application.

    Unfortunately, the device (nRF52840DK) seems to still stay in bootloader mode and does not start the application when the CONFIG_BOOT_SERIAL_CDC_ACM is disabled I also tried enabling the CONFIG_BOOT_SERIAL_UART option but it also has the same unexpected behavior and the application never starts (it stays forever in bootloader mode).

    Does the CONFIG_BOOT_SERIAL_WAIT_FOR_DFU feature not work without the CONFIG_BOOT_SERIAL_CDC_ACM with the simple serial UART (non-USB)? Is there some other line in the bootloader that needs to be modified or something similar?

    Thank you for your support and I look forward to hearing from you!

    Best regards,

    Stavros

Children
Related