-->
Page 1 of 1

Compiling with esp-open-sdk and gdbstub. Help!

PostPosted: Thu Apr 14, 2016 6:55 am
by smh
So my project compiles fine with the esp-open-sdk aand I'm trying to include the gdbstub from Espressif - https://github.com/espressif/esp-gdbstub - but I'm having a bit of trouble.

I've done the following:
    - cloned the gdbstub repo to the root of my project
    - changed the directory name from esp-gdbstub to gdbstub
Makefile
    - added 'gdbstub' to the subdirs (EXTRA_INCDIR)
    - added '-ggdb' to the linker flags (LDFLAGS)
gdbstub/gdbstub-cfg.h
    - changed the freertos define to 0 (not using that)
user_main.c
    - added '#include <../gdbstub/gdbstub.h>'
    - added 'gdbstub_init();' somewhere inside user_init()

When I (try to) compile I get the following:
build/app.a(user_main.o):(.text+0x20): undefined reference to `gdbstub_init'
build/app.a(user_main.o):(.text+0x44): undefined reference to `gdbstub_init'

So it doesn't know what the gdbstub_init() func is?

Help appreciated!!

Re: Compiling with esp-open-sdk and gdbstub. Help!

PostPosted: Sat Aug 06, 2016 7:11 am
by ankitsohliya
Hi, I have the same issue. If anyone find the solution please update it.

thanks