Page 1 of 1

ESP-WROOM-32 DEVKIT

Posted: Mon Aug 09, 2021 1:33 pm
by surajnagulamalyala
Hi Team,

Presently am working on ESP-WROOM-32 devkit, am trying to understand the ESP-IDF environment, I have came across SDK examples provided by ESPRESSIF and am using one of the example i.e Blinky as i flashed code successfully but am unable to debug the code, It is showing the below error.


Open On-Chip Debugger v0.10.0-esp32-20210401 (2021-04-01-15:46)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 20000 kHz

Started by GNU MCU Eclipse
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
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 '*'


Could you resolve my issue ASAP....

1.Is these ESP-IDF is better for debugging and developing of I2C and BLE, WIFI stack ?
2.I have a confusion regarding ESP-IDF and VS code, Is both IDE's for developing IOT or ESP-IDF can be added as an extension for developing c-code in VS code editor.
3. Which IDE could be better for development & easy debugging ? suggest me the best ..!


Thanks & regards
N,Suraj.

Re: ESP-WROOM-32 DEVKIT

Posted: Mon Aug 09, 2021 2:01 pm
by ESP_Sprite
What hardware are you using? You need some kind of JTAG adapter (or a devboard with one integrated) to use OpenOCD.

Re: ESP-WROOM-32 DEVKIT

Posted: Mon Aug 09, 2021 4:01 pm
by surajnagulamalyala
Hi,

Am not using any external debugger like JTAG, I just connected ESP32 devkit (ESP-WROOM-32 module) using serial USB connector and debugging using GDB debugger with ESP-IDF provided, Is it possible to debug or Is there any procedure for debugging in other way.

Please explain in detail of debugging process ?
1.What is the best IDE for development of IOT using C(language)
2.Is there any extension to be added for VS code editors ?

please tell me the procedure for flashing and debugging and documents if possible..

Thanks & regards
N,Suraj.

Re: ESP-WROOM-32 DEVKIT

Posted: Tue Aug 10, 2021 1:05 am
by ESP_Sprite
You're still not saying what devkit you're using (module != devkit) so I'm assuming you're talking about a DevkitC or something. Those devboards only have an USB-to-serial converter on board; for JTAG debugging you'll need to hook them up to a JTAG adapter. We have the ESP-Prog board you could use for that, but in general any JTAG adapter that works with OpenOCD and is not specific to one chip will do (J-Link, FT2232-based adapters, ...).

Can't help you on the rest of your questions, though.

Re: ESP-WROOM-32 DEVKIT

Posted: Tue Aug 10, 2021 6:01 am
by surajnagulamalyala
Hi Team,

Am using ESP-32S devkit, with module as ESP-WROOM-32 with chipset ESP32-D0WDQ6

1. Let me know the JTAG adapter is nothing but Segger 20/6 pin adapter right ? yes we have that JTAG/JLINK, but not using yet..

2. So please let me know usage of JTAG for debugging in ESP-32S, Is it compulsory for debugging and answer my above questions mentioned ASAP......


Thanks & regards
N,Suraj

Re: ESP-WROOM-32 DEVKIT

Posted: Tue Aug 10, 2021 11:27 am
by ns1668
1.Is these ESP-IDF is better for debugging and developing of I2C and BLE, WIFI stack ?

Is it better for debugging and developing.... compared to what?
I think you are getting confused.
ESP-IDF (espressif integrated development framework) contains a variety of software for programming of espressif modules/chips.
This includes tools for compiling, testing, serial communications including programming and flashing. And, it includes the actual software components that you can use to develop your applications (a software API for the ESP hardware).

2.I have a confusion regarding ESP-IDF and VS code, Is both IDE's for developing IOT or ESP-IDF can be added as an extension for developing c-code in VS code editor.

VS-Code is just a text editor, you could use notepad, or eclipse, or VIM or many other tools to edit your code.
VS-code has a plugin from espressif which installs the esp-idf and gets a development environment setup, this makes vs-code a simple IDE.

ESP-IDF is not an IDE, it does have tools (like I stated previously), but you cannot edit your code with it.

3. Which IDE could be better for development & easy debugging ? suggest me the best ..!
Again, it sounds like you aren't quite sure what each of these different tools/packages actually do.

[ESP-IDF] - basic software components and tools for the espressif chips
[VSCode] - a text editor that you can add extensions too, the ESP-IDF extension will install ESP-IDF and give you some basic functionality for building.

[Debugging] - this can be done in a variety of ways. ESP uses JTAG but not all ESP-32 devkits have a JTAG interface on the PCB.
https://docs.espressif.com/projects/esp ... ebugging/#

Good luck