This is a demo project for lv_bevy_ecs
Tested with ESP32 only.
You need four env variables in config.toml and the PATH applied from ~/export-esp.sh
DEP_LV_CONFIG_PATH = { relative = true, value = "." }
LIBCLANG_PATH = "..."
CROSS_COMPILE = "xtensa-esp32-elf"
BINDGEN_EXTRA_CLANG_ARGS = "--sysroot ..."
LIBCLANG_PATH can be found in ~/export-esp.sh
BINDGEN_EXTRA_CLANG_ARGS sysroot can be found with xtensa-esp32-elf-ld --print-sysroot
It can happen that the project does not fit in the default main partition. To fix that you need to generate a partitions.csv with
cargo espflash partition-table -o partitions.csv --to-csv target/xtensa-esp32-espidf/release/partition-table.binand increase the factory partition size.
Then add this to espflash.toml:
[idf]
partition_table = "partitions.csv"To increase upload speed set baudrate = 460800 in espflash.toml