recently purchased the m2. we are trying to update the firmware. we had to install the duo board on our IDE. then we chose the programming port. and uploaded 1.26 of the firmware. we received error message : avr/io .h. we have tried various combinations of ports and boards, double checked the file was unzipped.
forums told us that the firmware may come pre loaded. but we are having trouble getting any sketch uploaded. when we try and do a hard reset of the board we get error message below:
:Arduino: 1.8.13 (Mac OS X), Board: “Arduino Due (Programming Port)”
In file included from sketch/Maslow.h:40:0,
from sketch/Axis.cpp:19:
RingBuffer.h:21:11: error: redefinition of ‘class RingBuffer’
class RingBuffer{
^
In file included from /Users/mudafuckinbizznasty/Library/Arduino15/packages/arduino/hardware/sam/1.6.12/cores/arduino/UARTClass.h:23:0,
from /Users/mudafuckinbizznasty/Library/Arduino15/packages/arduino/hardware/sam/1.6.12/variants/arduino_due_x/variant.h:38,
from /Users/mudafuckinbizznasty/Library/Arduino15/packages/arduino/hardware/sam/1.6.12/cores/arduino/Arduino.h:201,
from sketch/Maslow.h:26,
from sketch/Axis.cpp:19:
RingBuffer.h:30:7: error: previous definition of ‘class RingBuffer’
class RingBuffer
^
In file included from sketch/Maslow.h:40:0,
from sketch/GCode.cpp:21:
RingBuffer.h:21:11: error: redefinition of ‘class RingBuffer’
class RingBuffer{
^
In file included from /Users/mudafuckinbizznasty/Library/Arduino15/packages/arduino/hardware/sam/1.6.12/cores/arduino/UARTClass.h:23:0,
from /Users/mudafuckinbizznasty/Library/Arduino15/packages/arduino/hardware/sam/1.6.12/variants/arduino_due_x/variant.h:38,
from /Users/mudafuckinbizznasty/Library/Arduino15/packages/arduino/hardware/sam/1.6.12/cores/arduino/Arduino.h:201,
from sketch/Maslow.h:26,
from sketch/GCode.cpp:21:
RingBuffer.h:30:7: error: previous definition of ‘class RingBuffer’
class RingBuffer
^
sketch/GCode.cpp: In function ‘void initGCode()’:
GCode.cpp:32:21: error: ‘class RingBuffer’ has no member named ‘empty’
incSerialBuffer.empty();
^
sketch/GCode.cpp: In function ‘void readSerialCommands()’:
GCode.cpp:64:54: error: ‘class RingBuffer’ has no member named ‘write’
int bufferOverflow = incSerialBuffer.write©; //gets one byte from serial buffer, writes it to the internal ring buffer
^
In file included from sketch/Maslow.h:40:0,
from sketch/Motion.cpp:17:
RingBuffer.h:21:11: error: redefinition of ‘class RingBuffer’
class RingBuffer{
^
etc…
Please Help. what are we missing? anything would be helpful!
Thank you.