espflash - No target specified in cargo configuration - how to fix it ?

35p32fan
Posts: 12
Joined: Wed Oct 11, 2023 1:12 pm

espflash - No target specified in cargo configuration - how to fix it ?

Postby 35p32fan » Thu Oct 12, 2023 1:08 pm

Hi,
using Debian 12 (x86_64)

Device: ESP32-2432S028R

but did not get it work.... what did I wrong ?

Code: Untitled.txt Select all

cargo install espup
git clone https://github.com/esp-rs/esp-idf-hal
cd esp-idf-hal

Code: Untitled.txt Select all

$ cargo espflash board-info
[2023-10-12T12:56:16Z INFO ] Serial port: '/dev/ttyUSB0'
[2023-10-12T12:56:16Z INFO ] Connecting...
[2023-10-12T12:56:16Z INFO ] Using flash stub
Chip type: esp32 (revision v3.1)
Crystal frequency: 40MHz
Flash size: 4MB
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC address: 08:d1:f9:xx:xx:xx

Code: Untitled.txt Select all

$ cargo espflash flash --example=blinky --monitor
[2023-10-12T12:59:54Z INFO ] Serial port: '/dev/ttyUSB0'
[2023-10-12T12:59:54Z INFO ] Connecting...
[2023-10-12T12:59:54Z INFO ] Using flash stub
Error: cargo_espflash::no_target

× Failed to build project
╰─▶ No target specified in cargo configuration
help: Specify the target in `.cargo/config.toml`, the esp32 support the following targets: xtensa-esp32-none-elf, xtensa-esp32-espidf

Code: Untitled.txt Select all

$ cat .cargo/config.toml 
[target.'cfg(any(target_arch = "riscv32", target_arch = "xtensa"))']
runner = "espflash flash --monitor"

[target.xtensa-esp32-none-elf]
linker = "ldproxy"

[target.xtensa-esp32-espidf]
linker = "ldproxy"

[target.xtensa-esp32s2-espidf]
linker = "ldproxy"

[target.xtensa-esp32s3-espidf]
linker = "ldproxy"

[target.riscv32imc-esp-espidf]
linker = "ldproxy"

[target.riscv32imac-esp-espidf]
linker = "ldproxy"

[env]
ESP_IDF_SDKCONFIG_DEFAULTS = ".github/configs/sdkconfig.defaults"

[unstable]
build-std = ["std", "panic_abort"]
build-std-features = ["panic_immediate_abort"]

Who is online

Users browsing this forum: Amazon [Bot] and 2 guests