Marlin.

6 views
Skip to first unread message

John Brown

unread,
Feb 20, 2020, 1:24:59 PM2/20/20
to tvrep...@googlegroups.com
Help!

I have a small problem that shows all the signs of becoming a big one.

I'm hoping one of you with a long memory may be able to help.

In the early days I was unable to use the full X travel on my Round 2
machine, so I edited the Marlin config file to reduce the max travel.
All well and good for many years of use.

However I now would like to regain full travel, so I hunted out my copy
of Marlin-Master and the appropriate version of Arduino (1.0.4) both
found on a discontinued machine; modified the config.h file to give full
travel ( i.e. 205) and compiled. This gives a lot of errors, C++ seems
to be objecting to some of the syntax in MarlinSerial (which I have not
touched).

Thinking that I had erred in the editing I loaded the code from the
original Marlin-master Zip file and it gives the same results. I don't
remember this effect in 2012?

Were there some errors that could be ignored and I can safely reprogram
the OMC board or am going to dig the hole deeper?

Regards

John Brown.


Errors from unmodified files.

In file included from /Marlin.h:26,
                 from cardreader.cpp:1:
/pins.h:647:3: error: #error Oops! Make sure you have 'Arduino Mega'
selected from the 'Tools -> Boards' menu.
In file included from cardreader.cpp:1:
/Marlin.h:32:25: error: Arduino.h: No such file or directory
In file included from /Marlin.h:38,
                 from cardreader.cpp:1:
MarlinSerial.h:116: error: expected ',' or '...' before '&' token
MarlinSerial.h:116: error: ISO C++ forbids declaration of 'String' with
no type
MarlinSerial.h:135: error: expected ',' or '...' before '&' token
MarlinSerial.h:135: error: ISO C++ forbids declaration of 'String' with
no type
/MarlinSerial.h: In member function 'void MarlinSerial::print(int)':
MarlinSerial.h:118: error: 's' was not declared in this scope
In file included from cardreader.cpp:1:
/Marlin.h: At global scope:
Marlin.h:106: error: variable or field 'manage_inactivity' declared void
Marlin.h:106: error: 'byte' was not declared in this scope


Trevor Moseley

unread,
Feb 20, 2020, 2:14:52 PM2/20/20
to tvrep...@googlegroups.com
Read what you posted with a little more care.
"#error Oops! Make sure you have 'Arduino Mega'
selected from the 'Tools -> Boards' menu."
Arduino settings are not included in any file, you have to manually set them up.

--

---
You received this message because you are subscribed to the Google Groups "TVRepRapUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tvreprapug+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/tvreprapug/391e3d6d-2a26-80a7-523e-af0e8b629dd3%40talktalk.net.

Alex Gibson

unread,
Feb 20, 2020, 2:34:27 PM2/20/20
to tvrep...@googlegroups.com
Hi John,

I'm still actively and regularly updating Marlin on TVRR electronics so should hopefully be able to help you fix or even upgrade to more recent Marlin.

Quick win - which I see Trevor's already pointed out - is the telltale 'Arduino Mega' - we should have board type set to Sanguino. Tools>Boards>Sanguino. This might have to be downloaded and added to your Arduino board profiles...

Cheers,

Alex Gibson

+44 7813 810 765 @alexgibson3d 37 Royal Avenue, Reading RG31 4UR

admg consulting

edumaker limited

• Project management
• Operations & Process improvement
• 3D Printing
--

---
You received this message because you are subscribed to the Google Groups "TVRepRapUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tvreprapug+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/tvreprapug/391e3d6d-2a26-80a7-523e-af0e8b629dd3%40talktalk.net.


--
This email has been checked for viruses by AVG.
https://www.avg.com

John Brown

unread,
Feb 20, 2020, 3:42:45 PM2/20/20
to Alex Gibson, tvrep...@googlegroups.com
Thanks for the comments but I don't think that is the problem.

The board is set to

"OMC with Atmega644 at 20Mhz"

Which I understood was to take care of the hardware settings.

Regards

John Brown.

Alex Gibson

unread,
Feb 20, 2020, 4:05:12 PM2/20/20
to MobiusEn...@talktalk.net, tvrep...@googlegroups.com

Yes that's exactly right. 

This will have been the option on 0022 rather than ‘Sanguino’ – which would be for newer versions of Arduino (OMC is based on Sanguino).

 

 

OK – did you have a previously saved version before you made your edits – can you reopen and compile that?

--

image001.png
Reply all
Reply to author
Forward
0 new messages