diff --git a/cargo/cargo-generate.toml b/cargo/cargo-generate.toml index d9b6fa8..9c0c5d8 100644 --- a/cargo/cargo-generate.toml +++ b/cargo/cargo-generate.toml @@ -8,7 +8,7 @@ pre = ["pre-script.rhai"] [placeholders.mcu] type = "string" prompt = "Which MCU to target?" -choices = ["esp32", "esp32c3", "esp32s2", "esp32s3", "esp32c6", "esp32c2", "esp32h2"] +choices = ["esp32", "esp32c3", "esp32s2", "esp32s3", "esp32c6", "esp32c2", "esp32h2", "esp32p4"] default = "esp32" [placeholders.defaults] diff --git a/cargo/pre-script.rhai b/cargo/pre-script.rhai index 1578edb..5b0bea0 100644 --- a/cargo/pre-script.rhai +++ b/cargo/pre-script.rhai @@ -25,8 +25,8 @@ let targets = #{ }, esp32c6: #{ arch: "riscv", - rust_target: "riscv32imc-esp-espidf", - gcc_target: "risvc32-esp-elf", + rust_target: "riscv32imac-esp-espidf", + gcc_target: "riscv32-esp-elf", wokwi_board: "board-esp32-c6-devkitm-1", }, esp32c2: #{ @@ -40,7 +40,13 @@ let targets = #{ rust_target: "riscv32imc-esp-espidf", gcc_target: "risvc32-esp-elf", wokwi_board: "board-esp32-c6-devkitm-1", - } + }, + esp32p4: #{ + arch: "riscv", + rust_target: "riscv32imac-esp-espidf", + gcc_target: "riscv32-esp-elf", + wokwi_board: "board-esp32-c6-devkitm-1", + }, }; let target = variable::get("mcu");