[][src]Function probe_rs::flashing::download_file_with_options

pub fn download_file_with_options(
    session: &mut Session,
    path: &Path,
    format: Format,
    options: DownloadOptions<'_>
) -> Result<(), FileDownloadError>

Downloads a file of given format at path to the flash of the target given in session.

This will ensure that memory bounderies are honored and does unlocking, erasing and programming of the flash for you.