Author Topic: ESP32 and JTAG debugging under Windows  (Read 1105 times)

0 Members and 1 Guest are viewing this topic.

Offline prutserTopic starter

  • Regular Contributor
  • *
  • Posts: 68
  • Country: nl
ESP32 and JTAG debugging under Windows
« on: February 22, 2021, 09:24:30 pm »
I have an ESP32 with the Espressif JTAG interface and try to get debugging worging using Windows (Lyra-T board with WROVER)

Tried it with VSCODE using Espressif plugin, tried it using Eclipse. Both without luck, JTAG detects the device, but openOCD and GDB seem not to like each other.
I do not know if I am facing an hardware issue (seems unlikely to me, since device is detected reliably).

I wonder if there are any people here who actually use an ESP32 with Windows/JTAG and can confirm that it it least it can work.

Any info woul be appreciated.


 

Offline I wanted a rude username

  • Frequent Contributor
  • **
  • Posts: 632
  • Country: au
  • ... but this username is also acceptable.
Re: ESP32 and JTAG debugging under Windows
« Reply #1 on: February 24, 2021, 08:40:03 am »
I couldn't get it working with an official Espressif dev board, talked to another embedded guy who also hadn't been able to get it working, and later another guy who couldn't get it working contacted me later to see if I'd got it working, which I hadn't.

We must all be doing something wrong ... there's no way the hardware could be broken, right?  ;D
 

Offline balage

  • Regular Contributor
  • *
  • Posts: 163
  • Country: hu
Re: ESP32 and JTAG debugging under Windows
« Reply #2 on: February 24, 2021, 12:03:38 pm »
Are you using the Espressif IDF? Have you made it working?

I can't say anything about the JTAG because I couldn't even make the IDF working.
 

Offline I wanted a rude username

  • Frequent Contributor
  • **
  • Posts: 632
  • Country: au
  • ... but this username is also acceptable.
Re: ESP32 and JTAG debugging under Windows
« Reply #3 on: February 28, 2021, 04:37:25 am »
ESP-IDF works ... but even though PlatformIO supposedly provides its own copy, to get extra functionality like idf.py you may need to also install ESP-IDF separately, following Espressif's guide. Note that this will download and install stuff from Espressif's servers, not just Github ... so probably a good idea to build this development environment in a container (good practice anyway because it lets you keep older copies for when you need to revisit old projects).
 

Offline prutserTopic starter

  • Regular Contributor
  • *
  • Posts: 68
  • Country: nl
Re: ESP32 and JTAG debugging under Windows
« Reply #4 on: March 03, 2021, 07:18:55 pm »
The ESP IDF I got working. Installed it using the visual studio code plugin (Windows) and I was able to build one of the example projects and flash it.

I am using an official Espressif dev board, an Espressif JTAG adapter and I have not been able to get it working. And it seems I am not the only one.
Even a simple command line approach (start openOCD then start GDB) did not work. Open OCD detects the device, so JTAG works and there it ends.

Behaviour seems unpredictable. It looks to me that the open OCD and GDB from Espressif do not match, or are still very buggy.  I could not find anyone confirming this, neither denying it. So far when asking around I only hear people having trouble using the JTAG with ESP, but could not find anyone who confirm it works. (except some Linux users maybe) 
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf