Welcome! Log In Create A New Profile

Advanced

Marlin Configuration

Posted by hooogle 
Marlin Configuration
November 29, 2017 11:38PM
So I've just downloaded the newest version of Marlin and tried to upload to a Sanguino w/ ATmega1284p (16MHz) and have received these errors:

SanityCheck.h:254: error: expected constructor, destructor, or type conversion before '(' token
SanityCheck.h:500: error: expected constructor, destructor, or type conversion before '(' token
SanityCheck.h:559: error: expected constructor, destructor, or type conversion before '(' token
SanityCheck.h:667: error: expected constructor, destructor, or type conversion before '(' token
SanityCheck.h:1140: error: expected constructor, destructor, or type conversion before '(' token
SanityCheck.h:1317: error: expected constructor, destructor, or type conversion before 'float'
SanityCheck.h:1317: error: expected unqualified-id before ',' token
SanityCheck.h:1318: error: expected constructor, destructor, or type conversion before '=' token
SanityCheck.h:1318: error: expected unqualified-id before ',' token
SanityCheck.h:1319: error: expected constructor, destructor, or type conversion before '=' token
SanityCheck.h:1320: error: expected constructor, destructor, or type conversion before '(' token
SanityCheck.h:1321: error: expected constructor, destructor, or type conversion before '(' token
SanityCheck.h:1322: error: expected constructor, destructor, or type conversion before '(' token
SanityCheck.h:1323: error: expected constructor, destructor, or type conversion before '(' token
SanityCheck.h:1324: error: expected constructor, destructor, or type conversion before '(' token
SanityCheck.h:1325: error: expected constructor, destructor, or type conversion before '(' token

I have attached SanityCheck.h for reference
Attachments:
open | download - SanityCheck.h (54 KB)
Re: Marlin Configuration
November 30, 2017 05:08AM
Cant reproduce

latest marlin, latest arduino 1.8.5 Sanguino w/ ATmega1284p (16MHz) installed

compiled no errors

Post your configuration.h
Re: Marlin Configuration
November 30, 2017 07:14PM
Ok so I had Arduino 1.0.5 and 1.6.9 so changing to 1.8.5 seems to have fixed the issue. However now I am getting this:

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
An error occurred while uploading the sketch

I have selected Sanguino w/ ATmega1284 (16MHz) on COM3 (which is all correct) so cannot work out why I am getting this issue.

Note: So it had been working on Arduino 1.0.5 with an older version of Marlin using ATmega1284 however I noticed the board itself said ATmega644P, so I tried with that and still the same issue.

Edited 1 time(s). Last edit at 11/30/2017 07:30PM by hooogle.
Re: Marlin Configuration
November 30, 2017 08:30PM
The upload protocol changes between versions..

find the boards.txt file for the one that would upload (its just text)
and find the new boards.txt file in the new arduino

make the upload setting the same as the old file

eg
it will look something like

atmega1284p.upload.protocol=arduino
atmega1284p.upload.speed=115200

you need to find the correct protocol and upload speed for your bootloader

NB you need to restart the arduino ide if you change a boards.txt file to make it re load it
Re: Marlin Configuration
November 30, 2017 09:54PM
Ok so I have tried that, and still getting the exact same error.

boards.txt is the one being used in Arduino 1.0.5 so:

atmega1284.upload.protocol=stk500
atmega1284.upload.speed=57600

boards.txt is the one that came with the Lauszus GitHub Sanguino package, and this is unmodified, but I have tried changing all of the different boards upload.protocol to stk500 and upload.speed to 57600 and 19200

Update: So it appears that there is two board.txt files in the Sanguino package, one inside the initial sanguino folder, then one inside the avr folder. Which is it that I should be editting?

boards.txt is the one in the avr folder (and upload.speed=57600 as this seemed to be the fix for everyone)

Interestingly there is no avr folder in sanguino used in Arduino 1.0.5

Edited 3 time(s). Last edit at 11/30/2017 11:39PM by hooogle.
Re: Marlin Configuration
December 01, 2017 12:41AM
old arduino only supported avr so no need for a directory. now it supports avr, sam and samd (and probably other processor families too)

The one inside the avr directory is the one you want
Sorry, only registered users may post in this forum.

Click here to login