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 ?
  1. cargo install espup
  2. git clone https://github.com/esp-rs/esp-idf-hal
  3. cd esp-idf-hal
  1. $ cargo espflash board-info
  2. [2023-10-12T12:56:16Z INFO ] Serial port: '/dev/ttyUSB0'
  3. [2023-10-12T12:56:16Z INFO ] Connecting...
  4. [2023-10-12T12:56:16Z INFO ] Using flash stub
  5. Chip type:         esp32 (revision v3.1)
  6. Crystal frequency: 40MHz
  7. Flash size:        4MB
  8. Features:          WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
  9. MAC address:       08:d1:f9:xx:xx:xx
  1. $ cargo espflash flash --example=blinky --monitor
  2. [2023-10-12T12:59:54Z INFO ] Serial port: '/dev/ttyUSB0'
  3. [2023-10-12T12:59:54Z INFO ] Connecting...
  4. [2023-10-12T12:59:54Z INFO ] Using flash stub
  5. Error: cargo_espflash::no_target
  6.  
  7.   × Failed to build project
  8.   ╰─▶ No target specified in cargo configuration
  9.   help: Specify the target in `.cargo/config.toml`, the esp32 support the following targets: xtensa-esp32-none-elf, xtensa-esp32-espidf
  10.  
  1. $ cat .cargo/config.toml
  2. [target.'cfg(any(target_arch = "riscv32", target_arch = "xtensa"))']
  3. runner = "espflash flash --monitor"
  4.  
  5. [target.xtensa-esp32-none-elf]
  6. linker = "ldproxy"
  7.  
  8. [target.xtensa-esp32-espidf]
  9. linker = "ldproxy"
  10.  
  11. [target.xtensa-esp32s2-espidf]
  12. linker = "ldproxy"
  13.  
  14. [target.xtensa-esp32s3-espidf]
  15. linker = "ldproxy"
  16.  
  17. [target.riscv32imc-esp-espidf]
  18. linker = "ldproxy"
  19.  
  20. [target.riscv32imac-esp-espidf]
  21. linker = "ldproxy"
  22.  
  23. [env]
  24. ESP_IDF_SDKCONFIG_DEFAULTS = ".github/configs/sdkconfig.defaults"
  25.  
  26. [unstable]
  27. build-std = ["std", "panic_abort"]
  28. build-std-features = ["panic_immediate_abort"]
  29.  

Who is online

Users browsing this forum: Bing [Bot] and 162 guests