Skip to content
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

JTAG flashing error on 1.9.0 (VSC-1540) #1368

Closed
1 task done
herna opened this issue Dec 16, 2024 · 14 comments · Fixed by #1382
Closed
1 task done

JTAG flashing error on 1.9.0 (VSC-1540) #1368

herna opened this issue Dec 16, 2024 · 14 comments · Fixed by #1382
Assignees
Labels
bug-report Bug Report from users on Github (don't use this tag manually, its supposed to be used via the issue)

Comments

@herna
Copy link

herna commented Dec 16, 2024

OS

Windows

Operating System version

Windows 10

Visual Studio Code version

1.96

ESP-IDF version

5.3.2

Python version

3.11

Doctor command output

doctor.txt

Extension

esp_idf_vsc_ext.log

Description

I have an ESP-PROG connected to ESP32

I can't flash through JTAG unless ESP32 is in "boot" mode and UART0 connected.

Even if you try to flash ESP32 through JTAG, it seems version 1.9.0 of the extension tries to use UART connection somehow no matter what. The extension says at the end "flash through JTAG" but as I said, UART connection must be available and device in boot mode.

I just downgraded to version 1.8.1 and everything works as expected, I am able to use JTAG without UART connection.

There are other users with this problem: https://esp32.com/viewtopic.php?f=40&t=43461

Debug Message

debug.txt

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@herna herna added the bug-report Bug Report from users on Github (don't use this tag manually, its supposed to be used via the issue) label Dec 16, 2024
@github-actions github-actions bot changed the title JTAG flashing error on 1.9.0 JTAG flashing error on 1.9.0 (VSC-1540) Dec 16, 2024
@radurentea radurentea self-assigned this Dec 18, 2024
Copy link

github-actions bot commented Jan 3, 2025

This issue has been marked as stale since there are no activities, and this will be closed in 5 days if there are no further activities

@github-actions github-actions bot added the stale Stale PR or Issue label Jan 3, 2025
@github-actions github-actions bot closed this as completed Jan 8, 2025
@radurentea radurentea added ongoing Ongoing Issue or PR, this label will be used for issue or PR which is to be excluded by stale bot and removed stale Stale PR or Issue labels Jan 8, 2025
@radurentea radurentea reopened this Jan 8, 2025
@radurentea
Copy link
Collaborator

Hi @herna,

Could you try this version and let me know if it fixes the issue for you?

Download the artifacts from this pull request:
You can test these changes by installing this VSIX by click menu View -> Command Palette..., type Install from VSIX and then select downloaded esp-idf-extension.vsix file to install the extension.

@herna
Copy link
Author

herna commented Jan 8, 2025

Hello @radurentea,

Yes, working fine now.

Thank you.

@mert-yurt
Copy link

Hi,
I have the same problem. I can debug and flash by UART but I cant by JTAG. It was properly working last week with JTAG. I dont know what did it happen. This is my entire output;

Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:26)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html

[/Flash]
[OpenOCD]
Info : accepting 'tcl' connection on tcp/6666
Info : dropped 'tcl' connection

Info : accepting 'tcl' connection on tcp/6666

Flashing "c:/HW_test1/build/bootloader/bootloader.bin" at 0x1000

** program_esp input args <0x1000 verify> **

Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg:
0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)

Info : [esp32.cpu0] requesting target halt and executing a soft reset

Info : [esp32.cpu0] Debug controller was reset.

Info : [esp32.cpu0] Core was reset.

Info : [esp32.cpu0] Target halted, PC=0x500000CF, debug_reason=00000000

Info : [esp32.cpu0] Reset cause (3) - (Software core reset)

Info : [esp32.cpu1] requesting target halt and executing
a soft reset

Info : [esp32.cpu0] Core was reset.

Info : [esp32.cpu0] Target halted, PC=0x40000400, debug_
reason=00000000
Info : [esp32.cpu1] De
bug controller was reset.
Info : [esp32.cpu1] Core was reset.

Info : [esp32.cpu1] Target halted, PC=0x40000400, debug_reason=00000000

Info : [esp32.cpu1] Reset cause (14) - (CPU1 reset
by CPU0)

Info : [esp32.cpu0] Reset cause (3) - (Software core reset)

** Programming Started **

** Flashing Failed **
-1

[/OpenOCD]
[Flash]
Failed to flash the device (JTag), please try again [got response: '-1', expecting: '0']
Flash has finished. You can monitor with ESP-IDF: Monitor your device command

Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:26)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html

Info : accepting 'tcl' connection on tcp/6666
Info : dropped 'tcl' connection

Info : accepting 'tcl' connection on tcp/6666

Flashing "c:/HW_test1/build/bootloader/bootloader.bin" at 0x1000
** program_esp input args <0x1000 verify> **

Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/
device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)

Warn : [esp32.cpu1] Unexpected OCD_ID = 00000000

Info : [esp32.cpu0] requesting target halt and executing a soft reset

Info : [esp32.cpu0] Target halted, PC=0x4000940E, debug_reason=00000
000

Info : [esp32.cpu0] Debug controller was reset.

Info : [esp32.cpu0] Core was reset.

Info : [esp32.cpu0] Target halted, PC=0x500000CF, debug_reaso
n=00000000

Info : [esp32.cpu0] Reset cause (3) - (Software core reset)

❌ Info : [esp32.cpu1] requesting target halt and executing a soft reset
Error: Target not examined yet

Info : [esp32.cpu0] Core was reset.

Info : [esp32.cpu0] Target halted, PC=0x40000400, debug_reason=00000000

Info : [esp32.cpu1] Debug controller was
reset.

Info : [esp32.cpu1] Core was reset.

Info : [esp32.cpu1] Target halted, PC=0x40000400, debug_reason=00000000

Info : [esp32.cpu1] Reset cause
(14) - (CPU1 reset by CPU0)

Info : [esp32.cpu0] Reset cause (3) - (Software core reset)

** Programming Started **

** Flashing Failed **
-1

[/OpenOCD]
[Flash]
Failed to flash the device (JTag), please try again [got response: '-1', expecting: '0']
Flash has finished. You can monitor with ESP-IDF: Monitor your device command

Does anyone have any ideas about this problem?

@radurentea
Copy link
Collaborator

Hi @mert-yurt,

This is a problem introduces with the 1.9.0 release, which was fixed in the following PR #1382.
Right now, you have two options: You can either download the .vsix file following the instructions bellow, or use the 1.8.1 release of the extension from https://github.com/espressif/vscode-esp-idf-extension/releases

Download the artifacts from this pull request: You can test these changes by installing this VSIX by click menu View -> Command Palette..., type Install from VSIX and then select downloaded esp-idf-extension.vsix file to install the extension.

If you go with the fix, please let me know if it fixes your JTAG issue. Thank you!

Copy link

Thanks for using our extension! 🚀

Your feedback matters! Could you take a moment to rate it on the marketplace? A positive rating helps other developers discover our tools and motivates us to keep improving.

⭐ Rate ESP-IDF Extension: https://marketplace.visualstudio.com/items?itemName=espressif.esp-idf-extension&ssr=false#review-details

Your support means a lot to our development team!

@mert-yurt
Copy link

hi @radurentea ,
Thanks for your answering,

I downloaded the VSIX file and I tried to the flashing. this is my output;

[OpenOCD]
Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:26)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 2

jtag

Info : Listening on port 6666 for tcl connections

Info : Listening on port 4444 for telnet connections

Info : clock speed 1000 kHz

Info : JTAG tap: esp32
.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)

Info : [esp32.cpu0] Examination succeed

Info : [esp32.cpu1] Examination succeed

Info : starting gdb server for esp32.cpu0 on 3333
Info : Listening on port 3333 for gdb connections

Info : [esp32.cpu0] Target halted, PC=0x400093DB, debug_reason=00000000

Info : [esp32.cpu0] Reset cause (3) - (Software core reset)

Info : Set GDB target to 'esp32.cpu0'

Info : [esp32.cpu1] Target halted, PC=0x400076DD, debug_reason=00000000

Info : [esp32.cpu1] Reset cause (14) - (CPU1 reset by CPU0)

Info : accepting 'tcl' connection on tcp/6666
Info : dropped 'tcl' connection

Info : accepting 'tcl' connection on tcp/6666

Flashing "c:/Users/../
esp/project/HW_test1/build/bootloader/bootloader.bin" at 0x1000
** program_esp input args <0x1000 verify> **

Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica),
part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)

Info : [esp32.cpu0] requesting target halt and executing a soft reset

Info : [esp32.cpu0] Debug controller was reset.

Info : [esp32.cpu0] Core was reset.

Info : [esp32.cpu0] Target halted, PC=0x500000CF, debug_reason=00000000

Info : [esp32.cpu0] Reset cause (3) - (Software core reset)

Info : [esp32.cpu1] requesting target halt and executing a soft rese
t

Info : [esp32.cpu0] Core was reset.

Info : [esp32.cpu0] Target halted, PC=0x40000400, debug_reason=00000000

Info : [esp32.cpu1] Debug controller w
as reset.
Info : [esp32.cpu1] Core was reset.

Info : [esp32.cpu1] Target halted, PC=0x40000400, debug_reason=00000000

Info : [esp32.cpu1] Reset cause (14
) - (CPU1 reset by CPU0)

Info : [esp32.cpu0] Reset cause (3) - (Software core reset)

** Programming Started **
** Flash
ing Failed **
-1

[/OpenOCD]
[Flash]
Failed to flash the device (JTag), please try again [got response: '-1', expecting: '0']

Actually it looks very normal I really dont know why its falling the Flashig Failed.

After that I tried at the Debug mode. I'm leaving the debug output below..

[/Flash]
[Debug Adapter]
DEBUG_ADAPTER_STARTED
2025-01-20 16:09:12,457 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STARTED
DEBUG_ADAPTER_READY2CONNECT
2025-01-20 16:09:12,460 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_READY2CONNECT

[/Debug Adapter]
[OpenOCD]
Info : accepting 'gdb' connection on tcp/3333

Warn : No symbols for FreeRTOS
!

Info : [esp32.cpu0] Target halted, PC=0x400BE6
5A, debug_reason=00000001

Info : Flash mapping 0: 0x10020 -> 0x3f400020, 37 KB
Info : Flash mapping 1: 0x20020 -> 0x400d0020, 77 KB

Info : [esp32.cpu0] Target halted, PC=0x400BE65A, debug_reason=00000001

Info : Auto-detected flash bank 'esp32.cpu0.flash' size 4096 KB
Info : Using fla
sh bank 'esp32.cpu0.flash' size 4096 KB

Info : [esp32.cpu0] Target halted, PC=0x400BE65A, debug_reason=00000001

Info : Flash mapping 0: 0x10020 -> 0x3f400020, 37 KB
Info : Flash mapping 1: 0x20020 -> 0x400d0020, 77
KB
Info : Using flash bank 'esp32.cpu0.irom' size 80 KB

Info : [esp32.cpu0] Target halted, PC=0x400BE65A, debug_reason=00000001

Info : Flash mapping 0: 0x10020 -> 0x3f400020, 37 KB
Info : Flash mapping 1: 0x20020 -> 0x400d002
0, 77 KB
Info : Using flash bank 'esp32.cpu0.drom' size 40 KB
Info : New GDB Connection: 1, Target esp32.cpu0, state: halted

Warn : Prefer GDB command "target extended-remot
e :3333" instead of "target remote :3333"

Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)

Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)

Info : [esp32.cpu0] requesting target halt and executing a soft reset

Info : [esp32.cpu0] Debug controller was reset.

Info : [esp32.cpu0] Core was reset.

Info : [esp32.cpu0] Target halted, PC=0x500000CF, debug_reason=00000000

Info : [esp32.cpu0] Reset cause (3) - (Software core
reset)

Info : [esp32.cpu1] requesting target halt and execut
ing a soft reset

Info : [esp32.cpu0] Core was reset.

Info : [esp32.cpu0] Target halted, PC=0x40000400, debug_reason=00000000

Info : [esp32.cpu1] Debug controller was reset.

Info : [esp32.cpu1] Core was reset.

Info : [esp32.cpu1] Target halted, PC=0x40000400, debug_reason=00000000

Info : [esp32.cpu1] Reset cause (14) - (CPU1 reset b
y CPU0)

Info : [esp32.cpu0] Reset cause (3) - (Software core reset
)

Info : [esp32.cpu0] Target halted, PC=0x400BE65A, debug_reason=00000001

Info : Flash mapping 0: 0x10020 -> 0x3f400020, 37 KB

Info : Flash mapping 1: 0x20020 -> 0x400d0020, 77 KB
Info : Using flash bank 'esp32.cpu0.irom' size 80 KB

Info : [esp32.cpu0] Target halted, PC=0x400BE65A, debug_reason=00000001

Info : Flash mapping 0: 0x10020 -> 0x3f400020, 37 KB

Info : Flash mapping 1: 0x20020 -> 0x400d0020, 77 KB
Info : Using flash bank 'esp32.cpu0.drom' size 40 KB

Info : [esp32.cpu0] Target halted, PC=0x400BE65A, debug_reason=00000001

Info : Flash mapping 0: 0x10020 -> 0x3f400020, 37 KB

Info : Flash mapping 1: 0x20020 -> 0x400d0020, 77 KB
Info : Using flash bank 'esp32.cpu1.irom' size 80 KB

Info : [esp32.cpu0] Target halted, PC=0x400BE65A, debug_reason=00000001

Info : Flash mapping 0: 0x10020 -> 0x3f400020, 37 KB
In
fo : Flash mapping 1: 0x20020 -> 0x400d0020, 77 KB
Info : Using flash bank 'esp32.cpu1.drom' size 40 KB

Info : dropped 'gdb' conne
ction

Info : accepting 'gdb' connection on tcp/3333

Info : New GDB Connection: 2, Target
esp32.cpu0, state: halted

Info : [esp32.cpu0] Target halt
ed, PC=0x40009087, debug_reason=00000000

Info : Set GDB target to 'esp32.cpu0'

Info : [esp32.cpu1] Target halted, PC=0x400076DD, debug_reason=00000000

Info : dropped 'gdb' connection

[/OpenOCD]
[Debug Adapter]
Exception in thread Thread-1 (_readerthread):
Traceback (most recent call last):
File "threading.py", line 1038, in _bootstrap_inner

Exception in thread Thread-2 (_readerthread):
Traceback (most recent call last):
File "threading.py", line 1038, in _bootstrap_inner

File "threading.py", line 975, in run
File "threading.py", line 975, in run

File "subprocess.py", line 1552, in _readerthread
File "subprocess.py", line 1552, in _readerthread
OSError: [Errno 22] Invalid argument
OSError: [Errno 22] Invalid argument

DEBUG_ADAPTER_STOPPED
2025-01-20 16:09:36,574 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STOPPED

[Stopped] : ESP-IDF Debug Adapter

@radurentea
Copy link
Collaborator

radurentea commented Jan 27, 2025

Hi @mert-yurt,

Hmm... I don't have enough details to troubleshoot properly, but lets try a few things:

If it does work, try again with the new .vsix installer I've provided and if it fails again do the following:

  • In the .vscode folder of you project, add "idf.openOcdDebugLevel": 3 in you settings.json file"
  • Run ESP-IDF: Doctor Command" and provide me with the output.

@radurentea radurentea reopened this Jan 27, 2025
@karlp
Copy link

karlp commented Jan 29, 2025

possibly a duplicate of #1413 ?

@mert-yurt
Copy link

hi @radurentea,

I did everything what you said but it still doesn't work. I noticed some things. If I try to debug the device with JTAG after programming it with Serial UART, it fails on the first try but succeeds on the second try. I dont know does it help us for the solve the problem.

this is the first and second debugging;

[/OpenOCD]
[Debug Adapter]
DEBUG_ADAPTER_STARTED
2025-02-17 16:51:13,295 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STARTED
DEBUG_ADAPTER_READY2CONNECT
2025-02-17 16:51:13,300 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_READY2CONNECT

[/Debug Adapter]
[OpenOCD]
Info : accepting 'gdb' connection on tcp/3333

Info : [esp32.cpu0] Target halted, PC=0x40084D96, debug_reason=00000000

Info : Set GDB target to 'esp32.cpu0'

Info : [esp32.cpu1] Target halted, PC=0x40084D96, debug_reason=00000000

Warn : No symbols for FreeRTOS!

Info : [esp32.cpu0] Target halted, PC=0x400BE65A, debug_reason=00000001

Info : Flash mapping 0: 0x10020 -> 0x3f400020, 44 KB
Info : Flash mapping 1: 0x20020 -> 0x400d0020, 91 KB

Info : [esp32.cpu0] Target halted, PC=0x400BE65A, debug_reason=00000001

Info : Auto-detected flash bank 'esp32.cpu0.flas
h' size 4096 KB
Info : Using flash bank 'esp32.cpu0.flash' size 4096 KB

Info : [esp32.cpu0] Target halted, PC=0x400BE65A, debug_reason=00000001

Info : Flash mapping 0: 0x10020 -> 0x3f400020, 44 KB
Info : Flash mapping 1: 0x20020 -> 0x400d0020, 91 KB
Info :
Using flash bank 'esp32.cpu0.irom' size 92 KB

Info : [esp32.cpu0] Target halted, PC=0x400BE65A, debug_reason=00000001

Info : Flash mapping 0: 0x10020 -> 0x3f400020, 44 KB
Info : Flash mapping 1: 0x20020 -> 0x400d0020, 91 KB
Info : Using
❌ flash bank 'esp32.cpu0.drom' size 48 KB
Info : New GDB Connection: 1, Target esp32.cpu0, state: halted
Error: GDB missing ack(2) - assumed good

Info : dropped 'gdb' connection

[/OpenOCD]
[Debug Adapter]
DEBUG_ADAPTER_STOPPED
2025-02-17 16:51:26,933 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STOPPED

[Stopped] : ESP-IDF Debug Adapter
C:\Users\mert.yurt\esp.espressif\tools\openocd-esp32\v0.12.0-esp32-20240318\openocd-esp32\bin\openocd.exe

DEBUG_ADAPTER_STARTED
2025-02-17 16:51:34,376 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STARTED
DEBUG_ADAPTER_READY2CONNECT
2025-02-17 16:51:34,381 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_READY2CONNECT

[/Debug Adapter]
[OpenOCD]
Info : accepting 'gdb' connection on tcp/3333

Warn : No symbols for FreeRTOS!
Info : New GDB Connection:
2, Target esp32.cpu0, state: halted

Warn : Prefer GDB command "target extended-remote :3333" instead of "target remote :3333"

Info : Detected FreeRTOS version: (10.5.1)

Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)

Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)

Info : [esp32.cpu0] requesting target halt and executing a soft reset

Info : [esp32.cpu0] Debug controller was reset.

Info : [esp32.cpu0] Core was reset.

Info : [esp32.cpu0] Target halted, PC=0x500000CF, debug_reason=00000000

Info : [esp32.cpu0] Reset cause (3) - (Software core reset)

Info : [esp32.cpu1] requesting target halt and executing a soft reset

Info : [esp32.cpu0] Core was reset.

Info : [esp32.cpu0] Target halted, PC=0x40000400, debug_reason=00000000

Info : [esp32.cpu1] Debug controller was reset.

Info : [esp32.cpu1] Core was reset.

Info : [esp32.cpu1] Target halted, PC=0x40000400, debug_reason=00000000

Info : [esp32.cpu1] Reset cause (14) - (CPU1 reset by CPU0)

Info : [esp32.cpu0] Reset cause (3) - (Software core reset)

Info : [esp32.cpu0] Target halted, PC=0x400BE65A, debug_reason=00000001

Info : Flash mapping 0: 0x10020 -> 0x3f400020, 44 KB
Info : Flash mapping 1: 0x20020 -> 0x400d0020, 91 KB

Info : Using flash bank 'esp32.cpu0.irom' size 92 KB

Info : [esp32.cpu0] Target halted, PC=0x400BE65A, debug_reason=00000001

Info : Flash mapping 0: 0x10020 -> 0x3f400020, 44 KB
Info : F
lash mapping 1: 0x20020 -> 0x400d0020, 91 KB
Info : Using flash bank 'esp32.cpu0.drom' size 48 KB

Info : [esp32.cpu0] Target halted, PC=0x
400BE65A, debug_reason=00000001

Info : Flash mapping 0: 0x10020 -> 0x3f400020, 44 KB
Info : Flash map
ping 1: 0x20020 -> 0x400d0020, 91 KB
Info : Using flash bank 'esp32.cpu1.irom' size 92 KB

Info : [esp32.cpu0] Target halted, PC=0x400BE65A, debug_reason=00000001

Info : Flash mapping 0: 0x10020 -> 0x3f
400020, 44 KB
Info : Flash mapping 1: 0x20020 -> 0x400d0020, 91 KB
Info : Using flash bank 'esp32.cpu1.drom' size 48 KB

Info : dropped 'gdb' connection

Info : accepting 'gdb' connection on tcp/3333

Info : Detected FreeRTOS version: (10.5.1)

Info : New GDB Connection: 3, Target esp32.cpu0, state: halted

Info : [esp32.cpu0] Target halted, PC=0x400D5693, debug_reason=00000001

Info : Set GDB target to 'esp32.cpu0'

Info : [esp32.cpu1] Target halted, PC=0x40084D96, debug_reason=00000000

@mert-yurt
Copy link

Btw this is the "Doctor command" output;

report.txt

@radurentea
Copy link
Collaborator

Hi @mert-yurt,

Thank you for all these information. I'm assuming this is the result after using the .vsix file, right?

The issue appears to be related to the state of the ESP32 after UART programming. The first debug attempt fails because the device might still be in an inconsistent state, but the second attempt succeeds.

After flashing with UART, can you press the reset button from the board, just to see if there are any issues with OpenOCD note resetting the board correctly.

Also, have you tried using the 1.8.1 release version? https://github.com/espressif/vscode-esp-idf-extension/releases
It will help me identify the issue better

@radurentea
Copy link
Collaborator

Hi @mert-yurt,

I will be closing this issue since the initial JTAG issue has been fixed.
Regarding the debug issue, if the above fix doesn't work, nor the latest version of the extenstion, please open a new github issue and link this issue to it.

Thank you!

Copy link

Thanks for using our extension! 🚀

Your feedback matters! Could you take a moment to rate it on the marketplace? A positive rating helps other developers discover our tools and motivates us to keep improving.

⭐ Rate ESP-IDF Extension: https://marketplace.visualstudio.com/items?itemName=espressif.esp-idf-extension&ssr=false#review-details

Your support means a lot to our development team!

@radurentea radurentea removed the ongoing Ongoing Issue or PR, this label will be used for issue or PR which is to be excluded by stale bot label Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Bug Report from users on Github (don't use this tag manually, its supposed to be used via the issue)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants