Closed ds2k5 closed 10 months ago
Hi @ds2k5 . Spooky is buildable as Bare metal, just enter the directory with Kaluga and use cargo build --release
.
Details: https://github.com/georgik/esp32-spooky-maze-game#build-for-esp32-s2-kaluga-v13
From the Cargo.toml, I assume that you're trying to build Rust std + code from Spooky. This is interesting combination and you'll need to modify the code to suite the std model with ESP-IDF which is produced by the template.
BTW: Bare metal template is here: https://github.com/esp-rs/esp-template
You're getting error, because compiler is trying to build target for your local computer, instead of xtensa target.
You can select esp toolchain and by adding +esp
parameter on command line and ideally specify --target
. Other option is to include these files:
If you'd like to see mix of std and Spooky, there is experimental branch here: Where code written as ESP-IDF application using Spooky core as a component and LVGL to render the screen. Right now it has very limited functionality, but you can get idea how the integration could work: https://github.com/georgik/esp32-spooky-maze-game/tree/feature/esp32-s3-lcd-ev-board Folder: esp32-s3-lcd-ev-board.
No response, closing the issue. Feel free to reopen with more data.
Hello, what did I wrong ? Wanna build for a: esp32-2432s028r ( Chip is ESP32-D0WD-V3 (revision v3.1) ) Using Debian 12 (x86_64)
$ cargo generate --git https://github.com/esp-rs/esp-idf-template cargo ( choose esp32 ) $ . ~/export-esp.sh $ use the the file from: https://github.com/georgik/esp32-spooky-maze-game/blob/main/esp32-s2-kaluga/src/main.rs $ cargo check
Cargo.toml