Skip to content

V4 esp8266 gdbstub did not work , now it does... #593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
freeck opened this issue Dec 7, 2016 · 16 comments
Closed

V4 esp8266 gdbstub did not work , now it does... #593

freeck opened this issue Dec 7, 2016 · 16 comments

Comments

@freeck
Copy link

freeck commented Dec 7, 2016

Gdbstub combined with "Platform and Boards" (esp8266) version 2.0 and higher did not work.
It seems that the latest uart-functions compared to the older version (esp8266->1.6.5-947-g39819f0) behave differently.
So the workaround is to use boards.txt version "1.6.5-947-g39819f0".

@jantje
Copy link
Member

jantje commented Dec 7, 2016

Thanks for the input :-)

@jantje
Copy link
Member

jantje commented Jan 5, 2017

@freeck Did you get this to work with the newer versions already?

@freeck
Copy link
Author

freeck commented Jan 5, 2017

I reported this issue at esp8266/Arduino#2663
But unfortunately no response yet.
For the time being I keep using bsp v1.6 , and use the latest libraries from v2.3, that works fine for me until now....
Any suggestions how to tackle this issue would be welcome....

@jantje
Copy link
Member

jantje commented Jan 5, 2017

If I understand this is a issue for my hardware repository to state that only 1.6.5 is supported

@freeck
Copy link
Author

freeck commented Jan 5, 2017

Yes, correct.

When I get some inspiration I will digg into this problem once again, although this issue seems to be not an high priority one as nobody responses...

@jantje
Copy link
Member

jantje commented Jan 5, 2017

That is one of the disadvantages of being a early bird ;-)

@jantje jantje closed this as completed May 25, 2017
@freeck
Copy link
Author

freeck commented Jun 5, 2017

Finally got some inspiration. Version 2.3 is working now (for 90%).
I overlooked a statement in my version of file gdbstub-cfg.h
#ifndef GDBSTUB_CTRLC_BREAK
#define GDBSTUB_CTRLC_BREAK 0 // this was set to 1 in version of release V1.6 and worked fine so far.
#endif_
" Is working for 90%" means that there is still a (minor) issue: the console output (ets_printf statements) is not redirected to the Eclipse debug console.
It seems that function "os_install_putc1(gdb_semihost_putchar1)" (file gdbstub.c) is not working or is overridden. However the ets_printf messages are sent to the serial port , so with a second serial port of my PC I am able to observe the messages.

@jantje
Copy link
Member

jantje commented Jun 5, 2017

@jantje jantje reopened this Jun 5, 2017
@jantje
Copy link
Member

jantje commented Jun 5, 2017

Some stuff has changed in cdt as well as to default enabled or not in regards to shown debug info.
So that may be a root cause as well

@freeck
Copy link
Author

freeck commented Jun 5, 2017

Sure, set the define to 0.

@jantje
Copy link
Member

jantje commented Jun 5, 2017

Will do when I get home

@freeck
Copy link
Author

freeck commented Oct 10, 2017

This case can be closed , I dont expect the root cause will be solved. There is a workaround (reported earlier in this thread) which is acceptable.

NOTE: Sending too much serial data to the terminal of Sloeber results in an issue reported here https://github.com/Sloeber/arduino-eclipse-plugin/issues/830#issuecomment-335477997.
So I use Realterm to handle the serial data.

@freeck freeck closed this as completed Oct 10, 2017
@jantje
Copy link
Member

jantje commented Oct 12, 2017

I still havn't changed to 0 :-(

@jantje jantje reopened this Oct 12, 2017
@jantje
Copy link
Member

jantje commented Oct 12, 2017

Did a commit for this one

@jantje jantje closed this as completed Oct 12, 2017
@freeck
Copy link
Author

freeck commented Oct 12, 2017

When you get a message in de debugconsole like "...bogus information...." or something like that; check wether the gdbstub is realy installed in your target. You can check this by viewing the output of the serial port of the target: it should, after a reset, send debugmessage $T05#B9
And dont forget to set the buildoptions to -ggdb -Og

@jantje
Copy link
Member

jantje commented Oct 12, 2017

@freeck
Thanks but ... I first need to find my nodemcu as running nodemcu code on a lonin board might be the issue as well :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants