Some STM32 devices have on-board usb allowing to flash firmware using dfu. This can often be more convenient than connecting an st-link device, since these dfu capable boards do not generally come equipped with an on-board st-link. A dfu task should be added to support this method of updating application firmware.