Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Impossible to compile grbl 1.1f with VisualMicro (Read 374 times)
mdps
Junior Member
**
Offline



Posts: 7
Spain
Re: Impossible to compile grbl 1.1f with VisualMicro
Reply #6 - May 11th, 2017 at 5:00pm
 
Hi, sorry for the delay i've been out for a while Smiley 

I tried in release mode a it compile well, thanks very much is all i need!
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 7841
United Kingdom
Re: Impossible to compile grbl 1.1f with VisualMicro
Reply #5 - May 8th, 2017 at 9:14pm
 
Ignore previous post. I just tried using SoftwareSerial with GRBL and it doesn't like that either.

If you can find a way to write different types of data to the serial port that might be a good start.

We need to be able to print variables to the port.

Serial.print("hello world")
Serial.print(string)
Serial.print(float)
Serial.print(int)

Alternatively if you have a board that supports hardware debugging we can use that instead. Which board are you using?
Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 7841
United Kingdom
Re: Impossible to compile grbl 1.1f with VisualMicro
Reply #4 - May 8th, 2017 at 8:51pm
 
I've looked at this and based on your report I think it is safe to assume that the normal arduino serial commands can not be used.

However, you should be able to use the SoftwareSerial option for Visual Micro debug. SoftwareSerial uses PinChange interrupts so should not be affected by timer1. This assumes you have one or two spare digital pins and some memory.

1) Make sure you switch on "vMicro>Debugger>Full Speed Debugging". GRBL seems to be very time critical so you want the debugger causing as little interruption as possible. Which projects that are time critical you will have to be careful about what debug features you use. For example the digital and analog pin viewers read the pins which can take some millis

2) Use the visual micro debugging with other ports and pins document that explains how to configure software serial.

In essence you tell visual micro to use SoftwareSerial and the Tx and Rx pins. If you only have debug trace messages and watch expressions then you only need the rx pin, if you want break and variables update during debug you also need to set the tx pin.

Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 7841
United Kingdom
Re: Impossible to compile grbl 1.1f with VisualMicro
Reply #3 - May 8th, 2017 at 8:30pm
 
Great thanks.

Does the board support any type of standard Arduino Serial.print()

For example:-

Serial.println()
Serial1.println()
SerialUSB.print()

Back to top
 
WWW  
IP Logged
 
romycp
Newbies
*
Offline



Posts: 1
Re: Impossible to compile grbl 1.1f with VisualMicro
Reply #2 - May 8th, 2017 at 8:27pm
 
Hello!
I have the same problem.
Yes, in Release Version verything works fine, but I want to debugg the Code.
I found, that there is a Problem with Timer0 that is used in my Code und in the wiring.h file.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 7841
United Kingdom
Re: Impossible to compile grbl 1.1f with VisualMicro
Reply #1 - Apr 20th, 2017 at 9:46am
 
Hi,,

If you switch the tool bar from Debug to Release does it compile okay?
Back to top
 
WWW  
IP Logged
 
mdps
Junior Member
**
Offline



Posts: 7
Spain
Impossible to compile grbl 1.1f with VisualMicro
Apr 20th, 2017 at 9:35am
 
Hello,

I'm, trying to compile grbl 1.1f with VisualMicro and VS2015 (https://github.com/gnea/grbl/wiki) but it is not possible, i can do it with Arduino 1.8.1 IDE with no problems.

I'm using the example grblUpload and the error i'm getting is:

Code:
Error compiling for board Arduino/Genuino Uno
Debug build failed for project 'grbl_1_1f_vs'

wiring.c.o (symbol from plugin)*: In function __vector_16
(.text+0x0)*: multiple definition of __vector_16
stepper.c.o (symbol from plugin)*: (.text+0x0): first defined here

collect2.exe*: error: ld returned 1 exit status
 



Thanks for your help!
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print