pub fn update_firmware(
    usb_device: &mut UsbBackend,
    current_firmware_version: Option<&str>,
    firmware: &Option<Vec<u8>>,
    progress: &dyn ProgressIndicator,
    force: bool,
    usb_vid: u16,
    usb_pid: u16
) -> Result<Option<Box<dyn Annotate>>>
Expand description

Helper method to perform flash programming using ST’s DfuSe variant of the DFU protocol. This method is used both by the Hyperdebug and the HyperdebugDfu structs.