๐ค A very simple project template for esp8266 in rust
.
Nice picture! ๐
Attention!
Only pass the test in Ubuntu 22.04
apt update
apt-get install -y git gcc build-essential curl pkg-config
git clone https://github.com/Zakiaatot/esp8266-rust-template
- rust (nightly is better):
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
- xtensa-lx106-elf-gcc (for esp8266 cpu):
mkdir -p ~/esp
cd ~/esp
curl -O https://dl.espressif.com/dl/xtensa-lx106-elf-gcc8_4_0-esp-2020r3-linux-amd64.tar.gz
tar -xzf ./xtensa-lx106-elf-*
export PATH="$PATH:$HOME/esp/xtensa-lx106-elf/bin"
cargo install cargo-binstall
cargo binstall espup
cargo binstall cargo-espflash
espup install
. $HOME/export-esp.sh
or
cargo install espup
cargo install cargo-espflash
espup install
. $HOME/export-esp.sh
cargo build --release
cargo espflash --release --monitor /dev/ttyUSB*