debugging with FT2232H | gdbinit Error

User avatar
arunbm123
Posts: 96
Joined: Fri Feb 23, 2018 5:36 am

debugging with FT2232H | gdbinit Error

Postby arunbm123 » Fri Mar 29, 2019 12:54 pm

hello friends,

I am using FT2232H board for debugging.

i followed the steps https://docs.espressif.com/projects/esp ... mmand-line
3.When launching a debugger, you will need to provide couple of configuration parameters and commands. Instead of entering them one by one in command line, create a configuration file and name it gdbinit:
target remote :3333
set remote hardware-watchpoint-limit 2
mon reset halt
flushregs
thb app_main
c
When I execute xtensa-esp32-elf-gdb -x gdbinit build/blink.elf

I am getting error gdbinit:1: Error in sourced command file:
Please see below.....

Code: Select all

$ xtensa-esp32-elf-gdb -x gdbinit  build/blink.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/blink.elf...done.
gdbinit:1: Error in sourced command file:
Remote connection closed
(gdb)



User avatar
arunbm123
Posts: 96
Joined: Fri Feb 23, 2018 5:36 am

Re: debugging with FT2232H | gdbinit Error

Postby arunbm123 » Fri Mar 29, 2019 1:11 pm

hello ,

When I start openocd with

bin/openocd -s share/openocd/scripts -f interface/ftdi/esp32_devkitj_v1.cfg -f board/esp-wroom-32.cfg
I am getting

Code: Select all

Error: Target not halted
Error: auto_probe failed
Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'.
Error: attempted 'gdb' connection rejected

Who is online

Users browsing this forum: Google [Bot] and 102 guests