Crate espflash

source ·
Expand description

A library and application for flashing Espressif devices over Serial

§As an application

espflash can be installed using cargo install, and additionally supports installation via cargo-binstall:

$ cargo install espflash
$ cargo binstall espflash

§As a library

espflash can also be used as a library:

espflash = { version = "2.1", default-features = false }

We add default-features here to disable the cli feature, which is enabled by default. Its important to note that the cli module does not provide SemVer guarantees. You likely will not need any of these types or functions in your application so there’s no use pulling in the extra dependencies.

Modules§

  • clicli
    Types and functions for the command-line interface
  • Commands to work with a flasher stub running on a target device
  • connectionserialport
    Establish a connection with a target device
  • ELF (Executable and Linkable Format) file operations
  • Library and application errors
  • Write a binary application to a target device
  • ESP-IDF application binary image format
  • Logging utilities
  • Flashable target devices
  • Check for updates