idf.py dfu-flash says "No such option: --path"

Bugzee
Posts: 2
Joined: Fri Apr 04, 2025 5:23 am

idf.py dfu-flash says "No such option: --path"

Postby Bugzee » Fri Apr 04, 2025 6:46 am

Hi,

A newbie here using:
Windows 11
VS Code: 1.98.2 (latest at this time)
ESP-IDF: V5.4.1
ESP-IDF Extension for VS Code: 1.9.1
Board: ESP32-S3-Nano - https://www.waveshare.com/wiki/ESP32-S3-Nano

I'm trying to upload the blink sample to my ESP32-S3-Nano using DFU and the VS extenstion. I'm not running any manual commands. Build is fine too.

But I get the message as follows after I click the "Flash device" at the bottom toolbar:

Code: Select all

[1/4] C:\WINDOWS\system32\cmd.exe /C "cd /D D:\ESPProjects\test2\build\esp-idf\esptool.../test2/build/partition_table/partition-table.bin D:/ESPProjects/test2/build/test2.bin" 
test2.bin binary size 0x39b60 bytes. Smallest app partition is 0x100000 bytes. 0xc64a0 bytes (77%) free.
[2/4] Performing build step for 'bootloader'
[1/1] C:\WINDOWS\system32\cmd.exe /C "cd /D D:\ESPProjects\test2\build\bootloader\esp-idf\esptool_py && D:\expressif\.espressif\python_env\idf5.4_py3.11_env\Scripts\python.exe D:/expressif/esp/v5.4.1/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 D:/ESPProjects/test2/build/bootloader/bootloader.bin"
Bootloader binary size 0x5220 bytes. 0x2de0 bytes (36%) free.
[4/4] Completed 'bootloader'

 *  Executing task: D:\expressif\.espressif\python_env\idf5.4_py3.11_env\Scripts\python.exe D:\expressif\esp\v5.4.1\esp-idf\tools\mkdfu.py write -o d:\ESPProjects\test2\build\dfu.bin --json d:\ESPProjects\test2\build\flasher_args.json --pid 9 

Adding flash chip parameters file with flash_size = 2MB
Adding bootloader\bootloader.bin at 0x0
Adding partition_table\partition-table.bin at 0x8000
Adding test2.bin at 0x10000
"d:\ESPProjects\test2\build\dfu.bin" has been written. You may proceed with DFU flashing.

 *  Executing task: D:\expressif\.espressif\python_env\idf5.4_py3.11_env\Scripts\python.exe D:\expressif\esp\v5.4.1\esp-idf\tools\idf.py dfu-flash --path 1-7 

Usage: idf.py dfu-flash [OPTIONS]
Try 'idf.py dfu-flash --help' for help.

Error: No such option: --path

 *  The terminal process "D:\expressif\.espressif\python_env\idf5.4_py3.11_env\Scripts\python.exe 'D:\expressif\esp\v5.4.1\esp-idf\tools\idf.py', 'dfu-flash', '--path', '1-7'" terminated with exit code: 2. 
Note that:
I can upload to my ESP32-S3-WROOM-1 using the UART method just fine.
I can upload a simple blink using Arduino and DFU. Only VS Code with ESP-IDF is giving me the trouble.

Jimboy
Posts: 5
Joined: Sat Apr 24, 2021 11:38 am

Re: idf.py dfu-flash says "No such option: --path"

Postby Jimboy » Sat Aug 09, 2025 3:53 pm

did you resolve this issue, I have the same

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 6 guests