-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用VScode ESP-IDF插件烧录程序出现问题 (VSC-1596) #1437
Comments
@gerekon Could you please take a look ? |
@XiaPeng1012 Could you please share the verbose OpenOCD logs. You can append below commands to the and of config script.
|
@XiaPeng1012 Can I ask you to try flashing using command line?
And then attach produced |
@gerekon 您好,我已经按照您的说明进行操作,我现将ocd.log作为附件添加。 |
@erhankur 您好,我已经按照gerkon的方式生成了OpenOCD的 log,现在将生成的日志以附件的形式发送给您。 |
@XiaPeng1012 I don't see the stub logs here. Please add |
@erhankur 抱歉,我可能不知道如何添加 |
You can open your project’s
|
@XiaPeng1012 Could you please try adding
@brianignacio5 @radurentea Is it possible to add this option into the json file? |
@erhankur 很奇怪,现在即使没有这条命令也无法复现该问题,使用Jtag也能烧录成功。 |
Sure we can, I'm just wondering, how can we determine when to add it ? Right now extension sends a fixed TCL command |
@brianignacio5 "idf.jtagFlashCommandExtraArgs" is a good idea. We can keep The full list is here; |
OS
Windows
Operating System version
windows 11
Visual Studio Code version
1.97.2
ESP-IDF version
5.3.2
Python version
3.11.2
Doctor command output
d:\Software\ESP\tools\tools\openocd-esp32\v0.12.0-esp32-20241016\openocd-esp32\bin\openocd.exe
Open On-Chip Debugger v0.12.0-esp32-20241016 (2024-10-16-14:17)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
d:\Software\ESP\tools\tools\openocd-esp32\v0.12.0-esp32-20241016\openocd-esp32\bin\openocd.exe
[OpenOCD]
Open On-Chip Debugger v0.12.0-esp32-20241016 (2024-10-16-14:17)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
Info : only one transport option;
autoselecting 'jtag'
Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1001
Info : esp_usb_jtag: capabilities descriptor set to 0x2000
Info : Listening on port 6666 for tcl conn
ections
Info : Listening on port 4444 for telnet connections
Info : esp_usb_jtag: serial (A0:85:E3:
FD:BE:74)
Info : esp_usb_jtag: Device found. Base speed 40000KHz, div range 1 to 255
Info : clock speed 40000 kHz
Info : JTAG tap: esp32s3.ta
p0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32s3.tap1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : [esp32s3.cpu0] Examinatio
n succeed
Info : [esp32s3.cpu1] Examination succ
eed
Info : [esp32s3.cpu0] starting gdb server on 3333
Info : Listening on port 3333 for gdb connections
Info : [esp32s3.cpu0] Target halted, PC=0x40376207, debug_reason=00000000
Info : [esp32s3.cpu0] Reset ca
use (3) - (Software core reset)
Info : Set GDB target to 'esp32s3.cpu0'
Info : [esp32s3.cpu1] Target halted, PC=0x40000400, debug_reason=00000000
Info : [esp32s3.cpu1] Reset cau
se (3) - (Software core reset)
Info : accepting 'tcl' connection on tcp/6666
Info : dropped 'tcl' connection
Info : accepting 'tcl' connection on tcp/6666
ready
Flashing "e:/Project/2025/Wireless_Tool/wireless_tool/build/bootloader/bootloader.bin" at 0x0
** program_esp input args <0x0 verify> **
Info : JTAG tap: esp32s3.tap0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32s3.tap1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : [esp32s3.cpu0] requesting target halt and execut
ing a soft reset
Info : [esp32s3.cpu0] Debug controller was reset.
Info : [esp32s3.cpu0] Core was reset.
Info : [esp32s3.cpu0] Target halted, PC=0x500000EF
, debug_reason=00000000
Info : [esp32s3.cpu0] Reset cause (3)
Info : [esp32s3.cpu0] Core
was reset.
Info : [esp32s3.cpu0] Target halted, PC
=0x40000400, debug_reason=00000000
Info : [esp32s3.cpu1] Debug controller was res
et.
Info : [esp32s3.cpu1] Core was reset.
Info : [esp32s3.cpu1] Target halted,
PC=0x40000400, debug_reason=00000000
Info : [esp32s3.cpu1] Reset cause (3) - (Software core reset)
Info : [esp32s3.cpu0] Reset cause (3
) - (Software core reset)
** Programming Started **
Info : [esp32s3.cpu0] Target halted, PC=0x4038CB86, deb
ug_reason=00000001
Info : Flash mapping 0: 0x10020 -> 0x3
c0e0020, 212 KB
Info : Flash mapping 1: 0x50020 -> 0x42000020, 867 KB
Info : Auto-detected flash bank 'esp32s3.cpu0.flash' size 16384 KB
Info : Using flash bank 'esp32s3.cpu0.flash' size 16384 KB
❌ Error: timed out while waiting for target halted
Info : [esp32s3.cpu0] T
arget halted, PC=0x40376207, debug_reason=00000000
❌ Error: [esp32s3.cpu0] not halted 0, pc 0x40376207, ps 0x60623
Error: Failed to wait algorithm (-302)!
Error: Algorithm run failed (-302)!
❌ Error: Failed to run flasher stub (-302)!
** Flashing Failed **
-1
[/OpenOCD]
[Flash]
Failed to flash the device (JTag), please try again [got response: '-1', expecting: '0']
Extension
No response
Description
第一次烧录程序正常,在进行第二次程序烧录后烧录异常,使用的VSCode烧录方式为JTAG烧录。

经过测试发现,烧录程序小于某一个大小的时候多次烧录不会出现问题,当程序大小大于某一个范围的时候,多次烧录程序就会异常,在程序烧录异常后,手动擦除程序flash数据后,首次使用jtag方式烧录程序不会出现问题。在JTAG烧录程序发生异常的时候,使用UART烧录方式能够进行正常程序烧录。
Debug Message
NULL
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: