Welcome! Log In Create A New Profile

Advanced

updating firmware for huxley (sanguinololu, ATmega 1284P) confused smiley

Posted by MaxTex 
updating firmware for huxley (sanguinololu, ATmega 1284P) confused smiley
November 09, 2012 06:22AM
Hi i have a Reprap Pro Huxley.
My old Sanguinololu board crashed. So i bought a new Sanguinololu Rev 1.3a with ATmega 1284P which has a bootloader already and the firmware for mendel on it. Now I tried nearly a day to upload the huxley firmware (https://github.com/reprappro/Marlin). My guide is [reprap.org].

I work with Arduino 1.0.1 and the board files Sanguino-0101r1 (Added support for Arduino 1.0.1)
I selected the right COM port and the board Sanguino W/ ATmega 1284p 16mhz.
Next I open the Sprinter_Sanguinololu.pde file.
Configuration.h looks like this:
_____________________________________
#ifndef CONFIGURATION_H
#define CONFIGURATION_H

// Uncomment ONE of the next three lines - the one for your RepRap machine
#define REPRAPPRO_HUXLEY
//#define REPRAPPRO_MENDEL
//#define REPRAPPRO_WALLACE

// BASIC SETTINGS: select your board type, thermistor type, axis scaling, and endstop configuration

//// The following define selects which electronics board you have. Please choose the one that matches your setup
// MEGA/RAMPS up to 1.2 = 3,
// RAMPS 1.3 = 33
// Gen6 = 5,
// Sanguinololu up to 1.1 = 6
// Sanguinololu 1.2 and above = 62
#define MOTHERBOARD 62
________________________________

should be fine i think...

My jumper is installed. But the problem is that i cant verify the firmware -.-
Error message is:

_________________________________
Sd2Card.cpp: In member function 'void Sd2Card::chipSelectHigh()':
Sd2Card.cpp:145: error: 'HIGH' was not declared in this scope
Sd2Card.cpp:145: error: 'digitalWrite' was not declared in this scope
Sd2Card.cpp: In member function 'void Sd2Card::chipSelectLow()':
Sd2Card.cpp:149: error: 'LOW' was not declared in this scope
Sd2Card.cpp:149: error: 'digitalWrite' was not declared in this scope
Sd2Card.cpp: In member function 'uint8_t Sd2Card::init(uint8_t, uint8_t)':
Sd2Card.cpp:216: error: 'millis' was not declared in this scope
Sd2Card.cpp:220: error: 'OUTPUT' was not declared in this scope
Sd2Card.cpp:220: error: 'pinMode' was not declared in this scope
Sd2Card.cpp:222: error: 'INPUT' was not declared in this scope
Sd2Card.cpp: In member function 'uint8_t Sd2Card::waitNotBusy(uint16_t)':
Sd2Card.cpp:471: error: 'millis' was not declared in this scope
Sd2Card.cpp: In member function 'uint8_t Sd2Card::waitStartBlock()':
Sd2Card.cpp:481: error: 'millis' was not declared in this scope
__________________________

I´m quite a noob in the programming of electronics and I dont know what I need to do now.
The guide doesent say anything about this!



I tried the same with arduino-0023 and the 0.23 board files.
Now I get this error!
_____________________________

In file included from Sprinter_Sanguinololu.cpp:7:
/Configuration.h:271:2: error: #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
_____________________________

Its like a bad dream. I tried everything but ist always ends in crap -.-

I hope somebody can help me.
thx maxtex
Re: updating firmware for huxley (sanguinololu, ATmega 1284P) confused smiley
November 13, 2012 03:38AM
I had problems uploading for ages with my Sanguinolulu (with 1284P). The solution turned out to be using Arduino 23 and downloading the sanguino extensions from : [github.com] and placing these in the arduino hardware folder. You also need to copy the new avrdude file into the hardware/tools folder. That will then allow you to select a "Sanguino with 1284P 16MHz" option on the boards menu and after that everything has been fine
Sorry, only registered users may post in this forum.

Click here to login