4 releases

0.1.3 Aug 2, 2021
0.1.2 Oct 2, 2020
0.1.1 Sep 19, 2020
0.1.0 Sep 15, 2020
Download history 16/week @ 2021-05-30 20/week @ 2021-06-06 17/week @ 2021-06-13 18/week @ 2021-06-20 22/week @ 2021-06-27 23/week @ 2021-07-04 17/week @ 2021-07-11 19/week @ 2021-07-18 20/week @ 2021-07-25 64/week @ 2021-08-01 38/week @ 2021-08-08 37/week @ 2021-08-15 10/week @ 2021-08-22 14/week @ 2021-08-29 25/week @ 2021-09-05 13/week @ 2021-09-12

80 downloads per month
Used in cargo-espflash

GPL-2.0 license

88KB
1.5K SLoC

espflash

ESP8266 and ESP32 serial flasher library and CLI application.

asciicast

Usage

$ espflash [--board-info] [--ram] <path to serial> <path to elf image>

When the --ram option is specified, the provided ELF image will be loaded into ram and executed without touching the flash.

When the --board-info is specified, instead of flashing anything, the chip type and flash size will be printed.

Config

You can also specify the serial port by setting it in the config file located at ~/.config/espflash/espflash.toml or linux or %APPDATA%/esp/espflash/espflash.toml on windows.

[connection]
serial = "/dev/ttyUSB0"

As cargo runner

You can also use espflash as a cargo runner by setting

[target.'cfg(all(target_arch = "xtensa", target_os = "none"))']
runner = "espflash --ram /dev/ttyUSB0"

in your .cargo/config, which then allows you to run your project using xargo run.

License

Licensed under the GNU General Public License Version 2. See LICENSE for more details.

Dependencies

~8.5MB
~177K SLoC