Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic GDB Debugger (Read 5093 times)
paolo48
Junior Member
**
Offline


Posts: 69
Joined: Dec 22nd, 2015
GDB Debugger
Jan 15th, 2016 at 6:26pm
Print Post  
I have read that one example of Visual Micro GDB integration is available for Arduino Zero!
That is the only board supported?
What about ESP8266 family?
I know that a GDBstub is available for all ESP8266!

I look forward to try to use a GDB debugger on ESP 8266!

Thanks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB Debugger
Reply #1 - Jan 15th, 2016 at 6:47pm
Print Post  
Yes it can do all but zero was first test because it was easy.

I don't have any info about how to configure and run gdb for esp8266. 

If you find links to examples I can take a look.

Thanks
  
Back to top
IP Logged
 
paolo48
Junior Member
**
Offline


Posts: 69
Joined: Dec 22nd, 2015
Re: GDB Debugger
Reply #2 - Jan 16th, 2016 at 8:24am
Print Post  
Have a look to this link:
https://github.com/espressif/esp-gdbstub

I have tested myself the GDBstub using Visual GDB and it works!

If not to complex I can do some test myself. Undecided....just give me  some guidelines!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB Debugger
Reply #3 - Jan 16th, 2016 at 2:45pm
Print Post  
Thanks that is useful. I looked yesterday and it looks like to can work well.

But the thing I am unclear about is how to connect pc to esp for debug.

I notice some mention of usb serial in your example. Did you use serial or connect a JTAG adapter?

« Last Edit: Jan 16th, 2016 at 4:16pm by Tim@Visual Micro »  
Back to top
IP Logged
 
paolo48
Junior Member
**
Offline


Posts: 69
Joined: Dec 22nd, 2015
Re: GDB Debugger
Reply #4 - Jan 16th, 2016 at 4:22pm
Print Post  
It's a serial GDBstub: so is normally connected through the usb port (or can be redirected to TCP IP). No special hw is required!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB Debugger
Reply #5 - Jan 16th, 2016 at 7:35pm
Print Post  
Ok can see that now.

It needs to have an MI facility (Machine Interface). It might work but it would be best of esp8266 installed the built gdb.exe with the tool chain.

If you have some ready to go files that would be great and I can try them but haven't got the time to build and research this right now.

I know Microsoft are also working to improve the underlying debug tool that I am using. So the job might get easier over the next few months.

With the Zero the gdb and scripts are installed with the tool chain. So all I had to do was alter some compile settings slightly.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint