Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Traffic_Light has the wrong compiler (Read 405 times)
Abbott HMG
Junior Member
**
Offline



Posts: 55
Bedford, NY, USA
Traffic_Light has the wrong compiler
Dec 5th, 2019 at 1:16am
 
Using the GDB debugging tutorial, I get the Traffic_Light has the wrong compiler associated. Intellisence wont work when I start the debugging session. Debugging starts, but the message comes up each time. I used Traffic_Light.sln.
Thanks
Abbott
Back to top
 
 
IP Logged
 
Abbott HMG
Junior Member
**
Offline



Posts: 55
Bedford, NY, USA
Re: Traffic_Light has the wrong compiler
Reply #1 - Dec 5th, 2019 at 1:56am
 
It seems to me this is related to the fact that the sub modules are also ino files. If I change them to cpp, I get compiler erros related to the lights variable.
I'll just continue as is ....
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10555
United Kingdom
Re: Traffic_Light has the wrong compiler
Reply #2 - Dec 5th, 2019 at 11:54am
 
Thanks we will refresh the project. You can create a new arduino project and copy the .ino files into it. Then it will work.

Back to top
« Last Edit: Dec 5th, 2019 at 11:54am by Visual Micro »  
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10555
United Kingdom
Re: Traffic_Light has the wrong compiler
Reply #3 - Dec 5th, 2019 at 4:45pm
 
The project example was created before gdb was available. It has been updated. Please re-get it and should work now.
Back to top
 
WWW  
IP Logged
 
Abbott HMG
Junior Member
**
Offline



Posts: 55
Bedford, NY, USA
Re: Traffic_Light has the wrong compiler
Reply #4 - Dec 17th, 2019 at 6:07pm
 
I downloaded the latest Traffic_Light and still get no breaks at all. I've set an always condition IsTrue 5==5. and unchecked continue. I've attached a screen.
Thanks
Abbott
Back to top
 

Capture_018.PNG (116 KB | )
Capture_018.PNG
 
IP Logged
 
Simon Hopkinson
Administrator
*****
Offline



Posts: 179
Re: Traffic_Light has the wrong compiler
Reply #5 - Dec 17th, 2019 at 7:01pm
 
The tutorial is a generic debug example for both Serial and GDB Debugging, however GDBStubs need a little more configuration:

Docs: https://www.visualmicro.com/page/AVR-Debugging.aspx
Example Library: https://github.com/jdolinay/avr_debug

From Instructions lower down Docs page:
Include the relevant stub.h file at the top of your sketch [from the library above "avr8-stub.h"]
Add the relevant init() call to your setup() [from the library above "debug_init()"]
Add any other calls required [from the library above add "breakpoint()" at top of loop()]

There are links on the docs page above to Instructables, YouTube, Arduino Project Hub which go over this in further detail.




Back to top
 
 
IP Logged
 
Abbott HMG
Junior Member
**
Offline



Posts: 55
Bedford, NY, USA
Re: Traffic_Light has the wrong compiler
Reply #6 - Dec 18th, 2019 at 11:43am
 
Thanks.
I'm in much better shape now.
Abbott
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10555
United Kingdom
Re: Traffic_Light has the wrong compiler
Reply #7 - Dec 19th, 2019 at 8:28pm
 
Off-Topic replies have been moved to this Topic.
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print