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 ...
Search found 10 matches
- Thu Nov 18, 2021 8:54 am
- Forum: ESP-IDF
- Topic: Unable to connect J-Link JTAG to ESP32
- Replies: 5
- Views: 7593
- Thu Nov 18, 2021 6:14 am
- Forum: ESP-IDF
- Topic: Unable to connect J-Link JTAG to ESP32
- Replies: 5
- Views: 7593
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 ...
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 ...
- Wed Nov 17, 2021 8:03 am
- Forum: ESP-IDF
- Topic: Unable to connect J-Link JTAG to ESP32
- Replies: 5
- Views: 7593
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 ...
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 ...
- Wed Nov 17, 2021 7:30 am
- Forum: ESP-IDF
- Topic: Unable to connect J-Link JTAG to ESP32
- Replies: 5
- Views: 7593
Re: Unable to connect J-Link JTAG to ESP32
I edited the esp-wroom-32.cfg file to include
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.
Code: Select all
adapter_khz 1000I have no clue on why this keeps happening.
If anyone can help me, it would be great.
- Tue Nov 16, 2021 12:00 pm
- Forum: ESP-IDF
- Topic: Unable to connect J-Link JTAG to ESP32
- Replies: 5
- Views: 7593
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 ...
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 ...
- 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: 10101
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 ...
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 ...
- Tue Nov 16, 2021 10:51 am
- Forum: IDEs for ESP-IDF
- Topic: ESP-Prog debugger cannot start
- Replies: 5
- Views: 21886
Re: ESP-Prog debugger cannot start
I too get the same error.
- 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: 1989
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;
}
Cross initialization was avoided by following the tip in the link above:
switch(k)
{
case 1:
{
int t = 4;
}
break;
default:
break;
}
- 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: 10101
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 ...
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 ...
- 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: 1989
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 ...
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 ...