Compiling with esp-open-sdk and gdbstub. Help!
Posted: Thu Apr 14, 2016 6:55 am
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:
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!!
I've done the following:
- - cloned the gdbstub repo to the root of my project
- changed the directory name from esp-gdbstub to gdbstub
- - added 'gdbstub' to the subdirs (EXTRA_INCDIR)
- added '-ggdb' to the linker flags (LDFLAGS)
- - changed the freertos define to 0 (not using that)
- - 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!!