See https://github.com/esp-rs/espflash/pull/974#pullrequestreview-3534486541 and https://github.com/esp-rs/espflash/issues/973