esp-rs / esp-flasher-stub

Rust implementation of flasher stub located in esptool
Apache License 2.0
17 stars 10 forks source link

Add esp32 support #3

Closed MaValki closed 1 year ago

MaValki commented 1 year ago

This MR adds support for ESP32. Adding another target as well as switching to latest esp-hal made for significant changes, therefore I decided to merge it directly into main branch as opposed to dev branch. Comments were incorporated to this branch, except for using heapless::Deque instead of heapless::spsc::Queue, due to performance reasons on esp32c3 (rustc 1.64.0-nightly).

MaValki commented 1 year ago

In order to compile both feature and target has to be used:

 cargo build --features esp32 --target xtensa-esp32-none-elf --release

If anyone happen to know how to specify target in .cargo/config.toml based on provided feature, please share.

MaValki commented 1 year ago

@DNedic @jessebraham @jessebraham PTAL