error when running gdbstub_init()

esp03madness
Posts: 8
Joined: Tue Nov 24, 2015 11:42 am

error when running gdbstub_init()

Postby esp03madness » Thu Jan 14, 2016 1:44 pm

I have a hello world project running with debug support. I can do breakpoints, stepping, printf works.

But now, I added support to a more serious project. When running gdbstub_init() in user_init() i get the following output on the uart, and the system hangs.

Code: Select all

<garbage>

SDK version:1.3.0(68c9e7b)
EspMsgMutex created
$T05#b9


If gdbstub_init() is not called, execution proceeds as expected. What could be happening?

esp03madness
Posts: 8
Joined: Tue Nov 24, 2015 11:42 am

Re: error when running gdbstub_init()

Postby esp03madness » Thu Jan 14, 2016 3:39 pm

hahaha! Ok, I feel stupid.

The above happens when instead of launching gdb like this:

Code: Select all

$ xtensa-lx106-elf-gdb -x gdbcmds -b 115200


you connect directly to uart, like before:

Code: Select all

$ minicom -D /dev/ttyUSB0

Who is online

Users browsing this forum: No registered users and 192 guests