Skip to content

๐Ÿ˜‹ A very simple project template for esp8266 in rust.

License

Notifications You must be signed in to change notification settings

Zakiaatot/esp8266-rust-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

esp8266-rust-template

๐Ÿค” A very simple project template for esp8266 in rust.

Nice picture! ๐Ÿ˜

8266

Usage

Attention! Only pass the test in Ubuntu 22.04

Install tools

apt update

apt-get install -y git gcc build-essential curl pkg-config

Clone template

git clone https://github.com/Zakiaatot/esp8266-rust-template

Prepare toolchains

  • 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):

reference

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

Compile

cargo build --release

Flash

cargo espflash --release --monitor /dev/ttyUSB*

Related links

About

๐Ÿ˜‹ A very simple project template for esp8266 in rust.

Resources

License

Stars

Watchers

Forks

Languages