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 Traffic_Light has the wrong compiler (Read 2102 times)
Abbott HMG
Junior Member
**
Offline


Posts: 56
Location: Bedford, NY, USA
Joined: May 10th, 2019
Traffic_Light has the wrong compiler
Dec 5th, 2019 at 1:16am
Print Post  
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: 56
Location: Bedford, NY, USA
Joined: May 10th, 2019
Re: Traffic_Light has the wrong compiler
Reply #1 - Dec 5th, 2019 at 1:56am
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


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

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Traffic_Light has the wrong compiler
Reply #3 - Dec 5th, 2019 at 4:45pm
Print Post  
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: 56
Location: Bedford, NY, USA
Joined: May 10th, 2019
Re: Traffic_Light has the wrong compiler
Reply #4 - Dec 17th, 2019 at 6:07pm
Print Post  
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
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: Traffic_Light has the wrong compiler
Reply #5 - Dec 17th, 2019 at 7:01pm
Print Post  
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: 56
Location: Bedford, NY, USA
Joined: May 10th, 2019
Re: Traffic_Light has the wrong compiler
Reply #6 - Dec 18th, 2019 at 11:43am
Print Post  
Thanks.
I'm in much better shape now.
Abbott
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


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