espflash 0.1.1

ESP8266 and ESP32 serial flasher
Documentation
# `espflash`

_ESP8266_ and _ESP32_ serial flasher library and CLI application.

## Usage

```bash
$ 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.

```toml
[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](LICENSE) for more details.