VSCode + Debug with ESP-EYE

aaronp
Posts: 2
Joined: Wed Dec 01, 2021 11:45 am

VSCode + Debug with ESP-EYE

Postby aaronp » Wed Dec 01, 2021 12:07 pm

Hi,

I'm trying to debug the ESP-EYE board with vscode extension, but I'm not sure of how to do it. As far as I know, it can be debugged using the same microUSB connection, so no extra hardware is required.

I'm following this guide https://github.com/espressif/vscode-esp ... bugging.md, but pressing F5 does nothing.

Also, if I try to start OpenOCD manually, it says that:

Code: Select all

❌ Error: no device found❌ 
Error: unable to open ftdi device with vid 0403, pid 6010, description '*', serial '*' at bus location '*'
❌ Error: no device found
❌ Error: unable to open ftdi device with vid 0403, pid 6014, description '*', serial '*' at bus location '*'
Any clue of how to do it?

Thank you

ESP_bignacio
Posts: 229
Joined: Wed May 02, 2018 12:12 pm

Re: VSCode + Debug with ESP-EYE

Postby ESP_bignacio » Thu Dec 02, 2021 8:44 am

This is one of the first issues listed in the openOCD troubleshooting FAQ here:

https://github.com/espressif/openocd-es ... ooting-FAQ

Make sure you are setting the correct serial port in the extension settings (idf.port or idf.portWin in Windows) and configure drivers properly.

aaronp
Posts: 2
Joined: Wed Dec 01, 2021 11:45 am

Re: VSCode + Debug with ESP-EYE

Postby aaronp » Thu Dec 02, 2021 9:49 am

I used the auto-installer to setup everything, and those drivers generated a COM5 port → I could flash properly. The problem is just when debugging.

I tried to change the drivers like in the guide (image attached), but all of them work worse: Not even a COM is generated.

Also, I'm not using ESP-WROVER-KIT but ESP-EYE (not explained there) and the device I get is not FT2232H, so I'm not sure if these steps apply to me. And when following the "generic steps" (https://docs.espressif.com/projects/esp ... -jtag.html) the JTAG pins from the ESP-EYE schematic doesn't seem connected to anywhere
Attachments
2021-12-02.png
Drivers
2021-12-02.png (1.96 MiB) Viewed 12186 times

jamilu
Posts: 1
Joined: Sat Oct 15, 2022 12:37 pm

Re: VSCode + Debug with ESP-EYE

Postby jamilu » Sat Oct 15, 2022 12:55 pm

Hi all

What are the correct openocd parameters for the esp-eye? flash and monitor work. the opneocd gives the following error:
❌ Error: esp_usb_jtag: co[OpenOCD]
could not find or open device!

Thank you for help

ESP_bignacio
Posts: 229
Joined: Wed May 02, 2018 12:12 pm

Re: VSCode + Debug with ESP-EYE

Postby ESP_bignacio » Mon Oct 24, 2022 7:40 am

Have you configure openOCD in the vscode extension ?

Make sure, if you are using Windows, to do the Zadig configuration as shown before or in this forum FAQs.

In the extension, check the debugging tutorial

Who is online

Users browsing this forum: No registered users and 27 guests