Search found 10 matches

by raja sumant
Thu Nov 18, 2021 8:54 am
Forum: ESP-IDF
Topic: Unable to connect J-Link JTAG to ESP32
Replies: 5
Views: 6088

Re: Unable to connect J-Link JTAG to ESP32

I fixed the issue by following the below steps: Firstly, I changed the adapter frequency to 1 KHz Secondly, I started the openocd server by flashing the code to it and not having exit statement raja@raja-IdeaPad-Gaming-3-15IMH05:~/esp32DevelopmentToolChain/esp-idf/projects/EnergyMeter$ openocd -f in...
by raja sumant
Thu Nov 18, 2021 6:14 am
Forum: ESP-IDF
Topic: Unable to connect J-Link JTAG to ESP32
Replies: 5
Views: 6088

Re: Unable to connect J-Link JTAG to ESP32

Can anyone guide me on the proper way of overriding the openocd command for launching gdbgui ? I tried this: raja@raja-IdeaPad-Gaming-3-15IMH05:~/esp32DevelopmentToolChain/esp-idf/projects/EnergyMeter$ idf.py openocd --openocd-scripts interface/jlink.cfg --openocd-scripts board/esp-wroom-32.cfg gdbg...
by raja sumant
Wed Nov 17, 2021 8:03 am
Forum: ESP-IDF
Topic: Unable to connect J-Link JTAG to ESP32
Replies: 5
Views: 6088

Re: Unable to connect J-Link JTAG to ESP32

I was able to connect the jlink with openocd command and flash it but I am unable to launch the gui debug. Flash: Screenshot from 2021-11-17 13-31-25.png Please suggest if the program got flashed as expected. Connect openocd: Screenshot from 2021-11-17 10-22-52.png However, I am unable to open the g...
by raja sumant
Wed Nov 17, 2021 7:30 am
Forum: ESP-IDF
Topic: Unable to connect J-Link JTAG to ESP32
Replies: 5
Views: 6088

Re: Unable to connect J-Link JTAG to ESP32

I edited the esp-wroom-32.cfg file to include

Code: Select all

adapter_khz 1000
Now the debugger connects but the ESP32 keeps on resetting.

I have no clue on why this keeps happening.

If anyone can help me, it would be great.
by raja sumant
Tue Nov 16, 2021 12:00 pm
Forum: ESP-IDF
Topic: Unable to connect J-Link JTAG to ESP32
Replies: 5
Views: 6088

Unable to connect J-Link JTAG to ESP32

When I ran openocd, I got the following error. raja@raja-IdeaPad-Gaming-3-15IMH05:~/esp32DevelopmentToolChain/esp-idf/projects/EnergyMeter$ openocd -s tcl -f interface/jlink.cfg -f board/esp-wroom-32.cfg Open On-Chip Debugger v0.10.0-esp32-20210902 (2021-09-02-09:38) Licensed under GNU GPL v2 For bu...
by raja sumant
Tue Nov 16, 2021 10:54 am
Forum: IDEs for ESP-IDF
Topic: xtensa-esp32-elf-gdb issue with libpython2.7. | ECLIPSE GDB debugging with JTAG
Replies: 1
Views: 9137

Re: xtensa-esp32-elf-gdb issue with libpython2.7. | ECLIPSE GDB debugging with JTAG

Solved this issue after installing python 2.7 as xtensa gdb currently does not have full support on python 3. Found the solution over here: https://github.com/espressif/esp-idf/issues/5284 Build the toolchain (including GDB) from source, either disabling Python scripting support, or configuring it t...
by raja sumant
Tue Nov 16, 2021 10:51 am
Forum: IDEs for ESP-IDF
Topic: ESP-Prog debugger cannot start
Replies: 5
Views: 20186

Re: ESP-Prog debugger cannot start

I too get the same error.
by raja sumant
Tue Nov 16, 2021 8:25 am
Forum: ESP-IDF
Topic: Need help converting GATT_Server example in ESP-IDF to CPP
Replies: 1
Views: 1715

Re: Need help converting GATT_Server example in ESP-IDF to CPP

I solved this issue by adding break to the case statements.

Cross initialization was avoided by following the tip in the link above:

switch(k)
{
case 1:
{
int t = 4;
}
break;
default:
break;
}
by raja sumant
Tue Nov 16, 2021 8:23 am
Forum: IDEs for ESP-IDF
Topic: xtensa-esp32-elf-gdb issue with libpython2.7. | ECLIPSE GDB debugging with JTAG
Replies: 1
Views: 9137

xtensa-esp32-elf-gdb issue with libpython2.7. | ECLIPSE GDB debugging with JTAG

Hello. I have been trying to debug my application with a JTAG. I configured eclipse for esp-idf and OpenOCD debugging using multiple resources like https://www.youtube.com/watch?v=CbPX3q7LeBc and https://github.com/espressif/idf-eclipse-plugin/blob/master/docs/OpenOCD%20Debugging.md I am now getting...
by raja sumant
Tue Nov 09, 2021 6:51 am
Forum: ESP-IDF
Topic: Need help converting GATT_Server example in ESP-IDF to CPP
Replies: 1
Views: 1715

Need help converting GATT_Server example in ESP-IDF to CPP

I am facing an issue converting gatt_server example to cpp. Steps to replicate the error: Step 1: I copied gatt_server directory to another directory. Step 2: I added extern "C" { void app_main(); } to the gatt_server.c and renamed it gatt_server.cpp Step 3: I built the project as idf.py build. I ge...