Closed nvlsianpu closed 2 years ago
cc @jfischer-no
This issue looks to be a fully zepyr-rtos dependent issue. It can't be fixed in the mcuboot codebase.
This possible bug was recognized faulty. Root reason for not working usb dfu class along with mcuboot was missing of the image in slot-0. Slot-0 must contain a valid image in order to do the swap.
I someone must for some reason provide a device only with bootloader then MCUboot should be build with CONFIG_BOOT_BOOTSTRAP=y
When zephyr dfu class is used (dual-bank mode), it downloads the update image to the image-1 slot. Once download is finished the class driver should call boot_request_upgrade(), but it doesn't which causes the problem.
Zephyr's usb dfu class implementation works fine as an application.
Need to find wheter issue is caused by mcuboot or zephyr