-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with running gdb on esp32 Wrover Dev Kit (OCD-196) #64
Comments
HEre is output from console:
Attached -d3 debug output. using board/esp32-wrover.cfg:
I also could not debug - output is here: |
Which program is running in the ESP32 when you are trying this? It seems like the target responds initially but then stops responding, which might indicate that the program running on the ESP32 reconfigures JTAG pins for some other purpose. Could you please try flashing "blink" example from ESP-IDF and then starting OpenOCD?
Regarding the config file, you should use esp32-wrover.cfg if your WROVER-KIT board has a WROVER module. Some early WROVER-KIT boards have been produced with WROOM module, for these |
@igrr yes you are right I havent flashed blink firmware while doing that test. It could be that pins are used for other functions. Will retest with blink firmware and report how it goes. |
With blink.c instead my Server.cpp I get this:
|
@zhivko What app do you debug? According to your log you write |
It is same problem with blink app.
How can I check that |
Is it possible that double backslash is not correctly understood by eclipse or reported from xtensa-esp32-elf-gdb.exe ? Reported as double backslash instead of single one? Do I need to specify source lookup in eclipse somwhere? |
If I enter info sources in console of xtensass-esp32-elf-gdb.exe I dont get blink.c to be included. I get:
|
To illustrate issue here is recorded video. |
@zhivko Have yoou programmed bootloader and partition table into flash? Could you do it using |
Yes of course - I also tried that and without
doesn't help |
I have no problem with your config and blink example.
Could you try my binaries? Does blink example run normally without debugger after flashing it with 'make flash'? It should blink with RGB LED or LCD screen depending on example GPIO pin config. |
Could you send me your blink project? |
Your example works - green led is flashing - what pin number is it?
I will use same led pin number in my example, to see if my example is working with the same pin number as in your example.
|
Hmm, HW connections seem to be OK.
Pin number 2 |
Can we set up remote debug session? For example via TeamViewer? It seems to be faster. Also I need to check GDB from command line. |
Of course at 17:30 CET?
On 29 Nov 2018 15:46, "Alexey Gerenkov" <notifications@github.com> wrote:
Can we set up remote debug session? For example via TeamViewer?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#64 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADhKBq-q9cpBhPLdNQBCtg5ykkT0g_LLks5uz_NOgaJpZM4YvGHM>
.
|
Ok. Send me the session ID and pin code to alexey at espressif.com |
Actually the problem in the image built using |
@zhivko Could you please upload the .elf file produced by eclipse_make.py (the one which results in infinite reset loop)? |
Here it is. |
Anything new on this topic? |
I was also seeing the Core/Debug reset messages after switching from one type of dev board to another. I had to alter: MenuConfig -> Components -> ESP-32 Specific -> Main XTAL frequency. I changed from from "Autodetect" to a specific frequency (in my case is was 40 Mhz) sdkconfig snippet
HTH |
+1 having the same issue details of my current setup are as espressif/esp-idf#4601 with compiler esp-2019r2 |
Closed due to inactivity. |
Environment
Development Kit: ESP32-Wrover-Kit
esp-idf-v release/v3.2
openocd-esp32-win32-0.10.0-esp32-20181105.zip
Development Env: Command line
Operating System: Windows 10 64bit
Problem Description
OpenOcd not started correctly - not possible to connect to it with xtensa-esp32-elf-gdb
Make and flash the program
Run OpenOCD
Run xtensa-esp32-elf-gdb
You get:
Expected Behavior
Flash the program, then run OpenOCD, then run the xtensa gdb and hardware debugging should work.
I.e. xtensa-esp32-elf-gdb should be able to connect to openocd.
Actual Behavior
xtensa-esp32-elf-gdb could not connect
Steps to reproduce
Using a ESP32WroverKit with built-in JTAG and JTAG jumpers in place as in https://docs.espressif.com/projects/esp-idf/en/latest/get-started/get-started-wrover-kit.html, follow the Espressif instructions to debug with JTAG in Windows to the letter, build and flash one of the IDF examples (for example blink), and you should see that dbg does not work.
The text was updated successfully, but these errors were encountered: