Hi all,
I just have an odd problem for two days.
I can't flash the target anymore with the espressif-ide. It tries to flash the MCU through the dfu-utils instead of the classic flash command.
How to come back to the classic flash command through serial?
Also, the compilation and binary creation run smoothly and I can flash without issue through the idf.py -p COM3 flash command in powershell..
Thanks for the help,
Best regards,
Loïc
Target:
ESP32-S3 WROOM1 N4R2 connected through USB-SERIAL-JTAG interface on custom board (work OK for 5 month).
EspressifIDE 2.6.0,
esp-idf-v4.4.2
Eclipse launch configuration arguments:
C:\Espressif\frameworks\esp-idf-v4.4.2\tools\idf.py -p ${serial_port} flash
log compilation :
Building in: D:\firmware\ESP32\projet_test\projet_test_multitest\build
cmake --build . -- -v
[1/4] cmd.exe /C "cd /D D:\firmware\ESP32\ARLO_BAT\projet_test_multitest\build\esp-idf\esptool_py && python C:/Espressif/frameworks/esp-idf-v4.4.2/components/partition_table/check_sizes.py --offset 0x8000 partition --type app D:/firmware/ESP32/ARLO_BAT/projet_test_multitest/build/partition_table/partition-table.bin D:/firmware/ESP32/ARLO_BAT/projet_test_multitest/build/projet_test_multitest.bin"
projet_test_multitest.bin binary size 0xc16d0 bytes. Smallest app partition is 0x100000 bytes. 0x3e930 bytes (24%) free.
[2/4] cmd.exe /C "cd /D D:\firmware\ESP32\projet_test\projet_test_multitest\build\bootloader && C:\Espressif\tools\cmake\3.23.1\bin\cmake.exe --build ."
[1/1] cmd.exe /C "cd /D D:\firmware\ESP32\projet_test\projet_test_multitest\build\bootloader\esp-idf\esptool_py && python C:/Espressif/frameworks/esp-idf-v4.4.2/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 D:/firmware/ESP32/projet_test/projet_test_multitest/build/bootloader/bootloader.bin"
Bootloader binary size 0x56e0 bytes. 0x2920 bytes (32%) free.
C:\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe C:\Espressif\frameworks\esp-idf-v4.4.2\tools\idf.py dfu
[1/4] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D D:\firmware\ESP32\projet_test\projet_test_multitest\build\bootloader\esp-idf\esptool_py && python C:/Espressif/frameworks/esp-idf-v4.4.2/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 D:/firmware/ESP32/projet_test/projet_test_multitest/build/bootloader/bootloader.bin"
Bootloader binary size 0x56e0 bytes. 0x2920 bytes (32%) free.
[1/2] cmd.exe /C "cd /D D:\firmware\ESP32\projet_test\projet_test_multitest\build && python C:/Espressif/frameworks/esp-idf-v4.4.2/tools/mkdfu.py write -o D:/firmware/ESP32/projet_test/projet_test_multitest/build/dfu.bin --json D:/firmware/ESP32/projet_test/projet_test_multitest/build/flasher_args.json --pid 9 --flash-size 4MB"
Adding flash chip parameters file with flash_size = 4MB
Adding bootloader\bootloader.bin at 0x0
Adding partition_table\partition-table.bin at 0x8000
Adding ota_data_initial.bin at 0xd000
Adding projet_test.bin at 0x10000
"D:/firmware/ESP32/projet_test/projet_test_multitest/build/dfu.bin" has been written. You may proceed with DFU flashing.
Executing action: dfu
Running ninja in directory d:\firmware\esp32\projet_test\projet_test_multitest\build
Executing "ninja dfu"...
Done
Build complete (0 errors, 0 warnings): D:\firmware\ESP32\projet_test\projet_test_multitest\build
C:\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe C:\Espressif\frameworks\esp-idf-v4.4.2\tools\idf_size.py D:/firmware/ESP32/projet_test/projet_test/build/projet_test_multitest.map
Total sizes:
Used static IRAM: 95526 bytes ( 266714 remain, 26.4% used)
.text size: 94499 bytes
.vectors size: 1027 bytes
Used stat D/IRAM: 39221 bytes ( 133707 remain, 22.7% used)
.data size: 18133 bytes
.bss size: 21088 bytes
Used Flash size : 685921 bytes
.text : 559191 bytes
.rodata : 126474 bytes
Total image size: 799580 bytes (.bin may be padded larger)
C:\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe C:/Espressif/frameworks/esp-idf-v4.4.2/\components\partition_table\gen_esp32part.py D:\firmware\ESP32\projet_test\projet_test_multitest\build\partition_table\partition-table.bin
Total time taken to build the project: 4 130 ms
Log ninja :
[0/1] cmd.exe /C "cd /D D:\firmware\ESP32\projet_test\projet_test_multitest\build && C:\Espressif\tools\cmake\3.23.1\bin\cmake.exe -D ESP_DFU_BIN="D:/firmware/ESP32/projet_test/projet_test_multitest/build/dfu.bin" -D ESP_DFU_PID="9" -P C:/Espressif/frameworks/esp-idf-v4.4.2/tools/cmake/run_dfu_util.cmake"
Command list: dfu-util;-d;303a:9;-D;D:/firmware/ESP32/projet_test/projet_test_multitest/build/dfu.bin
dfu-util 0.9
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
No DFU capable USB device available
CMake Error at C:/Espressif/frameworks/esp-idf-v4.4.2/tools/cmake/run_dfu_util.cmake:27 (message):
dfu-util failed
FAILED: CMakeFiles/dfu-flash D:/firmware/ESP32/projet_test/projet_test_multitest/build/CMakeFiles/dfu-flash
cmd.exe /C "cd /D D:\firmware\ESP32\projet_test\projet_test_multitest\build && C:\Espressif\tools\cmake\3.23.1\bin\cmake.exe -D ESP_DFU_BIN="D:/firmware/ESP32/projet_test/projet_test_multitest/build/dfu.bin" -D ESP_DFU_PID="9" -P C:/Espressif/frameworks/esp-idf-v4.4.2/tools/cmake/run_dfu_util.cmake"
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
Executing action: dfu-flash
Running ninja in directory d:\firmware\esp32\projet_test\projet_test_multitest\build
Executing "ninja dfu-flash"...
ESP32-S3, ESP-IDE (Eclipse), DFU-utils launched instead of flash command
- ESP_Roland
- Posts: 265
- Joined: Tue Oct 09, 2018 10:28 am
Re: ESP32-S3, ESP-IDE (Eclipse), DFU-utils launched instead of flash command
Have you seen https://github.com/espressif/idf-eclips ... hrough-usb?
The image shows the "Flash over" option.
The image shows the "Flash over" option.
Re: ESP32-S3, ESP-IDE (Eclipse), DFU-utils launched instead of flash command
Hi Roland,
Thank you for your reply.
Unfortunately I don't have this option. I only have a tickbox "Flash over JTAG".
This is certainly due to an old version of ESP-IDE, I have 2.6.0...
Is there any other way to change this setting in the old way? Via cmake or SDKconfig?
Best regards,
Loïc
Thank you for your reply.
Unfortunately I don't have this option. I only have a tickbox "Flash over JTAG".
This is certainly due to an old version of ESP-IDE, I have 2.6.0...
Is there any other way to change this setting in the old way? Via cmake or SDKconfig?
Best regards,
Loïc
Who is online
Users browsing this forum: No registered users and 202 guests