pub fn download_file(
session: &mut Session,
path: impl AsRef<Path>,
format: impl Into<Format>,
) -> Result<(), FileDownloadError>
Expand description
Downloads a file of given format
at path
to the flash of the target given in session
.
This will ensure that memory boundaries 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.