Welcome! Log In Create A New Profile

Advanced

Errors with Arduino

Posted by csteriov 
Errors with Arduino
July 28, 2014 02:54PM
Hello all, I seem to be having issues uploading my firmware to my Melzi 2.0 board. Specifically it continues to say HIGH was not declared in this scope. Followed by:

Sd2Card.cpp: In member function 'void Sd2Card::chipSelectHigh()':
Sd2Card.cpp:146: error: 'HIGH' was not declared in this scope
Sd2Card.cpp:146: error: 'digitalWrite' was not declared in this scope
Sd2Card.cpp: In member function 'void Sd2Card::chipSelectLow()':
Sd2Card.cpp:150: error: 'LOW' was not declared in this scope
Sd2Card.cpp:150: error: 'digitalWrite' was not declared in this scope
Sd2Card.cpp: In member function 'uint8_t Sd2Card::init(uint8_t, uint8_t)':
Sd2Card.cpp:217: error: 'millis' was not declared in this scope
Sd2Card.cpp:221: error: 'OUTPUT' was not declared in this scope
Sd2Card.cpp:221: error: 'pinMode' was not declared in this scope
Sd2Card.cpp:223: error: 'INPUT' was not declared in this scope
Sd2Card.cpp: In member function 'uint8_t Sd2Card::waitNotBusy(uint16_t)':
Sd2Card.cpp:472: error: 'millis' was not declared in this scope
Sd2Card.cpp: In member function 'uint8_t Sd2Card::waitStartBlock()':
Sd2Card.cpp:482: error: 'millis' was not declared in this scope

I am using Arduino 1.0.4. Can someone please help!

Sorry if I posted this issue in the wrong location.

Regards,
Chris
Re: Errors with Arduino
July 28, 2014 05:37PM
Problem and solution discussed in this thread.

Can I ask what version of Marlin you're using? A later version may rectify the problem.


[3DKarma.com] - suppliers of quality, affordable 3D printer kits and filament for the UK market.
Re: Errors with Arduino
July 28, 2014 05:58PM
I am using sprinter.
Re: Errors with Arduino
July 28, 2014 06:01PM
Maybe I should be using Marlin firmware instead?
Sorry, only registered users may post in this forum.

Click here to login