Gooxey / esp32-idf-nix-setup

My "Hello, world!" setup for the esp32 using rust and nix flakes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

esp-idf-nix-template

Entering the development environment

$ nix develop

Important

I have used sudo espflash flash --monitor inside the .cargo/config.toml file because of lacking permissions when flashing the esp. If you encounter any errors or do not need root permissions to flash, remove the sudo.

Errors

NixOS cannot run dynamically linked executables intended for generic linux environments out of the box.

Install nix-ld

Something inside ~/.rustup/toolchains/esp/... is missing

Reinstall the esp-rs toolchain

$ espup uninstall
$ espup install

Credit

Template used:

Binary size optimizations from:

About

My "Hello, world!" setup for the esp32 using rust and nix flakes.


Languages

Language:Nix 80.0%Language:Rust 20.0%