{"id":13672589,"url":"https://github.com/MabezDev/xtensa-rust-quickstart","last_synced_at":"2025-04-27T22:32:27.066Z","repository":{"id":46568445,"uuid":"174038979","full_name":"MabezDev/xtensa-rust-quickstart","owner":"MabezDev","description":"A demo crate for the xtensa uC's (ESP32, ESP8266)","archived":true,"fork":false,"pushed_at":"2022-04-11T10:29:40.000Z","size":1028,"stargazers_count":342,"open_issues_count":0,"forks_count":39,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-23T03:06:44.547Z","etag":null,"topics":["hacktoberfest","hacktoberfest2021"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MabezDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-05T23:57:17.000Z","updated_at":"2025-03-21T20:13:50.000Z","dependencies_parsed_at":"2022-09-23T03:20:24.278Z","dependency_job_id":null,"html_url":"https://github.com/MabezDev/xtensa-rust-quickstart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MabezDev%2Fxtensa-rust-quickstart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MabezDev%2Fxtensa-rust-quickstart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MabezDev%2Fxtensa-rust-quickstart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MabezDev%2Fxtensa-rust-quickstart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MabezDev","download_url":"https://codeload.github.com/MabezDev/xtensa-rust-quickstart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251219601,"owners_count":21554444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","hacktoberfest2021"],"created_at":"2024-08-02T09:01:40.754Z","updated_at":"2025-04-27T22:32:26.790Z","avatar_url":"https://github.com/MabezDev.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"\n# Rust on the xtensa architecture\n\n⚠️ **NOTE**: This repo is now obsolete, there is now a quickstart repo for [bare-metal](https://github.com/esp-rs/esp-template) and a template for [using the standard library](https://github.com/esp-rs/esp-idf-template).\n\nNeed help? Join the esp-rs room on matrix, https://matrix.to/#/#esp-rs:matrix.org.\n\n## Supported chips\n\n|name|arch|rust-target| custom compiler required |\n|-|-|-|-|\n|esp32|Xtensa|`xtensa-esp32-none-elf`| yes |\n|esp8266|Xtensa|`xtensa-esp8266-none-elf`| yes |\n\n## Installing the compiler\n\nFor Xtensa targets a forked compiler must be installed, follow the instructions from [the book](https://esp-rs.github.io/book/getting-started/installing-rust.html).\n\n## Installing tools\n\nCurrently the xtensa targets do not have LLD support. Therefore the GCC toolchain is required for linking.\n\n### xtensa-esp32-elf toolchain for esp32 development\n\nInstructions can be found [on Espressif's web site](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started-legacy/linux-setup.html#toolchain-setup) and the latest tool toolchain can be downloaded from [here](https://github.com/espressif/crosstool-NG/releases).\n\nExtract it to the directory of your choice. Then add the toolchain's bin/ directory to your `$PATH`. For example:\n\n    $ mkdir ~/esp\n    $ tar -xzf ~/Downloads/xtensa-esp32-elf-gcc8_4_0-esp-2020r3-linux-amd64.tar.gz -C ~/esp\n    $ PATH=\"$PATH:$HOME/esp/xtensa-esp32-elf/bin\"\n\nOld instructions can be found [on Espressif's web site](https://docs.espressif.com/projects/esp-idf/en/release-v3.0/get-started/linux-setup.html).\n\n### xtensa-lx106-elf toolchain for esp8266 development\nInstall the xtensa-lx106-elf toolchain from the [espressif web site](https://docs.espressif.com/projects/esp8266-rtos-sdk/en/latest/get-started/linux-setup.html).\n\n```\n$ mkdir ~/esp\n$ tar -xzf ~/Downloads/xtensa-lx106-elf-linux64-1.22.0-100-ge567ec7-5.2.0.tar.gz -C ~/esp\n$ PATH=\"$PATH:$HOME/esp/xtensa-lx106-elf/bin\"\n```\n\n## Cargo Build\n\nSince the introduction of the `build-std` feature of cargo, it is possible to build `core` without any additional tools.\n\n## Flashing\n\nInstall espflash:\n\n```bash\n$ cargo install cargo-espflash\n```\n\nExample for the ESP32, remember to use `target = xtensa-esp32-none-elf` inside `.cargo/config`:\n\n```bash\n$ cargo espflash --chip esp32 --example esp32 --speed 460800 --features=\"xtensa-lx-rt/lx6,xtensa-lx/lx6,esp32-hal\" /dev/ttyUSB0\n```\n\nExample for the ESP8266, remember to use `target = xtensa-esp8266-none-elf` inside `.cargo/config`:\n\n```bash\n$ cargo espflash --chip esp8266 --example esp8266 --features=\"xtensa-lx-rt/lx106 xtensa-lx/lx106 esp8266-hal\" /dev/ttyUSB0\n```\n\n### esptool\n\nThe preferred method of flashing is to use\n[`cargo-espflash`](https://github.com/icewind1991/espflash), but you can use Espressif's `esptool.py` to flash the binaries manually. Esptool is python-based command line tool for flashing Espressif's chips. Full installation instructions are available on [the website](https://github.com/espressif/esptool).\n\n## License\n\nLicensed under either of\n\n- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or\n  http://www.apache.org/licenses/LICENSE-2.0)\n- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMabezDev%2Fxtensa-rust-quickstart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMabezDev%2Fxtensa-rust-quickstart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMabezDev%2Fxtensa-rust-quickstart/lists"}