ESP8266 Developer Zone The Official ESP8266 Forum 2017-09-25T20:13:03+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=6493 2017-09-25T20:13:03+08:00 2017-09-25T20:13:03+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6493&p=16016#p16016 <![CDATA[Re: Can not Debugging esp8266 using esp-gdbstub]]>
Thanks for your advice. I opened issue on https://github.com/espressif/esp-gdbstub/issues/16

Statistics: Posted by Pratik_yadav — Mon Sep 25, 2017 8:13 pm


]]>
2017-09-25T10:50:57+08:00 2017-09-25T10:50:57+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6493&p=16003#p16003 <![CDATA[Re: Can not Debugging esp8266 using esp-gdbstub]]> https://github.com/espressif/esp-gdbstub/issues.

Statistics: Posted by Her Mary — Mon Sep 25, 2017 10:50 am


]]>
2017-09-21T18:55:33+08:00 2017-09-21T18:55:33+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6493&p=15907#p15907 <![CDATA[Can not Debugging esp8266 using esp-gdbstub]]>
I have implement esp-gdbstub as per instruction given in Read-me file.
I have made changes related to gdbstub in my make file is as following:

Code:

CFLAGS = -Og -ggdb



GDBSTUBFILES := $(wildcard ./gdbstub_files/*)GDBOBJFILES = $(subst $(GDBSTUBSRC),$(GDBSTUB_BUILD),$(GDBSTUBSRC:%.S=%.o))
GDBOBJFILES += $(subst $(GDBSTUBSRC),$(GDBSTUB_BUILD),$(GDBSTUBSRC:%.c=%.o))
GDBSTUBSRC = $(filter %.c %.S,$(GDBSTUBFILES))


@-mkdir -p $(GDBSTUB_BUILD)
./gdbstub_build/gdbstub_files/gdbstub-entry.o : ./gdbstub_files/gdbstub-entry.S
@echo "this is inside making of gdbstub-entry.o"
mkdir -p $(dir $@)
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@

./gdbstub_build/gdbstub_files/gdbstub.o : ./gdbstub_files/gdbstub.c
@echo "this is inside making of gdbstub.c"
mkdir -p $(dir $@)
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@




After changing make file I have include "gdbstub.h" in main file and called gdbstub_init().

To test its working i have created task which generate fatal exception.

I compile my project and flash it into esp8266.

and Hit following command as given by "https://blog.attachix.com/live-debugging-with-open-source-tools-programming-for-esp8266-part-4/"

Code:

xtensa-lx106-elf-gdb -b 115200


(gdb) file out/build/app.out

(gdb) set remote hardware-breakpoint-limit 1
(gdb) set remote hardware-watchpoint-limit 1
(gdb) set debug xtensa 4


(gdb) target remote /dev/ttyUSB0



After Hitting last command my terminal gives following output:


Remote debugging using /dev/ttyUSB0
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Bogus trace status reply from target: timeout


Is there anything i am missing?
Please help anyone.

Statistics: Posted by Pratik_yadav — Thu Sep 21, 2017 6:55 pm


]]>