It seems like this has been thrashed any number of times, but not working for me.
Using my own sample app for BLE, just advertising, nothing else happening.
Followed instructions. command line gdb WORKS FINE; both with commands entered by hand & with gdbinit
The only difference between the two is near the bottom; working one reports
Info : Detected debug stubs @ 3ffcd7a0 on core0 of target 'esp32
Failure does NOT have that, and the read fails, etc.
Tried with Eclipse Photon (original) and with Oxygen.
Help....
====== WORKING VERSION; 1st part is openocd piece, 2nd part is gdb
320035357@YY133630 MINGW32 ~/esp/openocd-esp32
$ ./bin/openocd -s share/openocd/scripts -f interface/ftdi/esp32_devkitj_v1.cfg -f board/esp32-wrover.cfg
Open On-Chip Debugger 0.10.0-dev (2018-07-24-09:39)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
none separate
adapter speed: 20000 kHz
esp32 interrupt mask on
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
Info : clock speed 20000 kHz
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
cpu0: Current bits set: BreakIn BreakOut RunStallIn
cpu1: Current bits set: BreakIn BreakOut RunStallIn
Info : accepting 'gdb' connection on tcp/3333
Info : Target halted. PRO_CPU: PC=0x4015A7B2 (active) APP_CPU: PC=0x4015A7B2
Info : Target halted. PRO_CPU: PC=0x4009170E (active) APP_CPU: PC=0x4015A7B2
Info : Flash mapping 0: 0x0 -> 0x0, 0 KB
Info : Flash mapping 1: 0x0 -> 0x0, 0 KB
Info : Target halted. PRO_CPU: PC=0x4009170E (active) APP_CPU: PC=0x4015A7B2
Info : Auto-detected flash size 4096 KB
Info : Using flash size 4096 KB
Info : Target halted. PRO_CPU: PC=0x4009170E (active) APP_CPU: PC=0x4015A7B2
Info : Flash mapping 0: 0x0 -> 0x0, 0 KB
Info : Flash mapping 1: 0x0 -> 0x0, 0 KB
Info : Using flash size 0 KB
Info : Target halted. PRO_CPU: PC=0x4009170E (active) APP_CPU: PC=0x4015A7B2
Info : Flash mapping 0: 0x0 -> 0x0, 0 KB
Info : Flash mapping 1: 0x0 -> 0x0, 0 KB
Info : Using flash size 0 KB
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
cpu0: Current bits set: BreakIn BreakOut RunStallIn
cpu1: Current bits set: BreakIn BreakOut RunStallIn
Info : esp32: Debug controller was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x5000004B (active) APP_CPU: PC=0x00000000
Info : esp32: Core was reset (pwrstat=0x1F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x40000400 (active) APP_CPU: PC=0x40000400
Info : Target halted. PRO_CPU: PC=0x400D6CA8 (active) APP_CPU: PC=0x4015A7B2
Info : Detected debug stubs @ 3ffcd7a0 on core0 of target 'esp32'
-----------
$ xtensa-esp32-elf-gdb -x gdbinit build/ESP-PowerSleep.elf
GNU gdb (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a5) 7.10
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-host_pc-mingw32 --target=xtensa-esp32-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from build/ESP-PowerSleep.elf...done.
0x40000400 in ?? ()
JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
cpu0: Current bits set: BreakIn BreakOut RunStallIn
cpu1: Current bits set: BreakIn BreakOut RunStallIn
esp32: Debug controller was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core was reset (pwrstat=0x5F, after clear 0x0F).
Target halted. PRO_CPU: PC=0x5000004B (active) APP_CPU: PC=0x00000000
esp32: Core was reset (pwrstat=0x1F, after clear 0x0F).
Target halted. PRO_CPU: PC=0x40000400 (active) APP_CPU: PC=0x40000400
Hardware assisted breakpoint 1 at 0x400d6ca8: file C:/msys32/home/320035357/esp/bluetooth/PowerSleep/main/gatts_table_creat_demo.c, line 639.
0x0: 0x00000000
Target halted. PRO_CPU: PC=0x400D6CA8 (active) APP_CPU: PC=0x4015A7B2
[New Thread 1073557848]
[New Thread 1073555948]
[New Thread 1073560260]
[New Thread 1073548456]
[New Thread 1073545624]
[New Thread 1073547068]
[New Thread 1073549588]
[Switching to Thread 1073554048]
Temporary breakpoint 1, app_main ()
at C:/msys32/home/320035357/esp/bluetooth/PowerSleep/main/gatts_table_creat_demo.c:639
639 {
(
========= NOT WORKING
320035357@YY133630 MINGW32 ~/esp/openocd-esp32
$ ./bin/openocd -s share/openocd/scripts -f interface/ftdi/esp32_devkitj_v1.cfg -f board/esp32-wrover.cfg
Open On-Chip Debugger 0.10.0-dev (2018-07-24-09:39)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
none separate
adapter speed: 20000 kHz
esp32 interrupt mask on
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
Info : clock speed 20000 kHz
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
cpu0: Current bits set: BreakIn BreakOut RunStallIn
cpu1: Current bits set: BreakIn BreakOut RunStallIn
Info : accepting 'gdb' connection on tcp/3333
Info : Target halted. PRO_CPU: PC=0x4015A7B2 (active) APP_CPU: PC=0x4015A7B2
Info : Target halted. PRO_CPU: PC=0x4009170E (active) APP_CPU: PC=0x4015A7B2
Info : Flash mapping 0: 0x0 -> 0x0, 0 KB
Info : Flash mapping 1: 0x0 -> 0x0, 0 KB
Info : Target halted. PRO_CPU: PC=0x4009170E (active) APP_CPU: PC=0x4015A7B2
Info : Auto-detected flash size 4096 KB
Info : Using flash size 4096 KB
Info : Target halted. PRO_CPU: PC=0x4009170E (active) APP_CPU: PC=0x4015A7B2
Info : Flash mapping 0: 0x0 -> 0x0, 0 KB
Info : Flash mapping 1: 0x0 -> 0x0, 0 KB
Info : Using flash size 0 KB
Info : Target halted. PRO_CPU: PC=0x4009170E (active) APP_CPU: PC=0x4015A7B2
Info : Flash mapping 0: 0x0 -> 0x0, 0 KB
Info : Flash mapping 1: 0x0 -> 0x0, 0 KB
Info : Using flash size 0 KB
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
cpu0: Current bits set: BreakIn BreakOut RunStallIn
cpu1: Current bits set: BreakIn BreakOut RunStallIn
Info : esp32: Debug controller was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x5000004B (active) APP_CPU: PC=0x00000000
Info : esp32: Core was reset (pwrstat=0x1F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x40000400 (active) APP_CPU: PC=0x40000400
Error: esp32: Faied to read insn (-4)!
Error: esp32: Faied to add SW BP!
Error: can't add breakpoint: resource not available
Info : dropped 'gdb' connection
eclipse + gdb
Re: eclipse + gdb
ping ? I've been on vacation, but see no responses ?
Re: eclipse + gdb
for those who end up here.... make menuconfig had "support for external SRAM" enabled. That caused the issues I was encountering. Once I disabled that, all good.
Who is online
Users browsing this forum: No registered users and 83 guests