[][src]Function probe_rs::flashing::download_file

pub fn download_file(
    session: &mut Session,
    path: &Path,
    format: Format
) -> 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.

If you are looking for more options, have a look at download_file_with_options.