When I verify the Repetier-Arduino sketch it stops at hal.h tab and states "digitalWrite has not been declared" at the following point... ::digitalWrite(pin,value); Any help would be very much appreciated. Thanks, Mike
Off the Repetier website forum I downloaded a file to add 4 boards to my Arduino software, as was suggested. It added a Teensy file, a Prinrboard file and then the bootloader for each as well.
I then selected one board and got this error, and then selected and tried the other board but to the same error each time.
I have restarted each time, and have done a power on process as others on this forum have said.
One question, when the Ardunio verify step is running, is it looking to the Printrboard...? Or does that not happen until it is completed the Verify stage and then connects at the Uploader stage...?
I am not sure that I have connection with my Printrboard...since I did have issues before I found the add-on boards for the Teensy and Printrboard boards.
The only COM port that I have showing up as an option is COM 3 and that is what I used.
My printer is a QU-BD Two Up with heated bed. (no comments please ; ) )
I have tried to do connections by unplugging and replugging in my USB to th computer, but it never beeps at all...
Sorry, I forgot the exact compiled message... here it is...One additional point, I tried to verify offline to the Printrboard as well, and the same error message happens...
'::digitalWrite' has not been declared ... come up in the solid Orange box at the bottom
Then the following is also following the message in the lower box ...
In file included from /Repetier.h:264, from Commands.cpp:22: /HAL.h:68:19: error: Print.h: No such file or directory /HAL.h:71:21: error: Arduino.h: No such file or directory In file included from /Repetier.h:264, from Commands.cpp:22: /HAL.h: In static member function 'static void HAL::digitalWrite(uint8_t, uint8_t)': HAL.h:449: error: '::digitalWrite' has not been declared /HAL.h: In static member function 'static uint8_t HAL::digitalRead(uint8_t)': HAL.h:453: error: '::digitalRead' has not been declared /HAL.h: In static member function 'static void HAL::pinMode(uint8_t, uint8_t)': HAL.h:457: error: '::pinMode' has not been declared /HAL.h: In static member function 'static void HAL::delayMicroseconds(unsigned int)': HAL.h:462: error: '::delayMicroseconds' has not been declared /HAL.h: In static member function 'static void HAL::delayMilliseconds(unsigned int)': HAL.h:466: error: '::delay' has not been declared /HAL.h: In static member function 'static void HAL::tone(uint8_t, int)': HAL.h:470: error: '::tone' has not been declared /HAL.h: In static member function 'static void HAL::noTone(uint8_t)': HAL.h:474: error: '::noTone' has not been declared /HAL.h: In static member function 'static void HAL::allowInterrupts()': HAL.h:512: error: 'sei' was not declared in this scope /HAL.h: In static member function 'static void HAL::forbidInterrupts()': HAL.h:516: error: 'cli' was not declared in this scope /HAL.h: In static member function 'static long unsigned int HAL::timeInMilliseconds()': HAL.h:520: error: 'millis' was not declared in this scope /HAL.h: In static member function 'static void HAL::serialSetBaudrate(long int)': HAL.h:528: error: 'Serial' was not declared in this scope /HAL.h: In static member function 'static bool HAL::serialByteAvailable()': HAL.h:532: error: 'Serial' was not declared in this scope /HAL.h: In static member function 'static uint8_t HAL::serialReadByte()': HAL.h:536: error: 'Serial' was not declared in this scope /HAL.h: In static member function 'static void HAL::serialWriteByte(char)': HAL.h:540: error: 'Serial' was not declared in this scope /HAL.h: In static member function 'static void HAL::serialFlush()': HAL.h:544: error: 'Serial' was not declared in this scope /HAL.h: In static member function 'static void HAL::spiInit(uint8_t)': HAL.h:573: error: 'HIGH' was not declared in this scope In file included from /Repetier.h:265, from Commands.cpp:22: /gcode.h: In member function 'float GCode::parseFloatValue(char*)': gcode.h:147: error: 'strtod' was not declared in this scope /gcode.h: In member function 'long int GCode::parseLongValue(char*)': gcode.h:154: error: 'strtol' was not declared in this scope In file included from /Repetier.h:356, from Commands.cpp:22: /Extruder.h: In static member function 'static void Extruder::step()': Extruder.h:107: error: 'HIGH' was not declared in this scope /Extruder.h: In static member function 'static void Extruder::unstep()': Extruder.h:166: error: 'LOW' was not declared in this scope In file included from /Repetier.h:385, from Commands.cpp:22: /Printer.h: In static member function 'static void Printer::endXYZSteps()': Printer.h:535: error: 'LOW' was not declared in this scope Printer.h:536: error: 'LOW' was not declared in this scope Printer.h:537: error: 'LOW' was not declared in this scope In file included from /Repetier.h:386, from Commands.cpp:22: /motion.h: In member function 'void PrintLine::startXStep()': motion.h:501: error: 'HIGH' was not declared in this scope /motion.h: In member function 'void PrintLine::startYStep()': motion.h:541: error: 'HIGH' was not declared in this scope /motion.h: In member function 'void PrintLine::startZStep()': motion.h:577: error: 'HIGH' was not declared in this scope Commands.cpp: In static member function 'static void Commands::setFanSpeed(int, bool)': Commands.cpp:207: error: 'constrain' was not declared in this scope Commands.cpp: In static member function 'static void Commands::executeGCode(GCode*)': Commands.cpp:520: error: 'sqrt' was not declared in this scope Commands.cpp:520: error: 'hypot' was not declared in this scope Commands.cpp:523: error: 'isnan' was not declared in this scope Commands.cpp:567: error: 'hypot' was not declared in this scope Commands.cpp:911: error: 'OUTPUT' was not declared in this scope Commands.cpp:911: error: 'pinMode' was not declared in this scope Commands.cpp:912: error: 'digitalWrite' was not declared in this scope Commands.cpp:913: error: 'analogWrite' was not declared in this scope Commands.cpp:960: error: 'abs' was not declared in this scope Commands.cpp:1048: error: 'fabs' was not declared in this scope
If I understood you correctly you added the names of the boards without installing the core files for that board. What you need to compile for teensy is this
In file included from /Repetier.h:264, from Commands.cpp:22: HAL.h:68: error: Print.h: No such file or directory HAL.h:71: error: Arduino.h: No such file or directory In file included from /Repetier.h:264, from Commands.cpp:22: /HAL.h: In static member function 'static void HAL::digitalWrite(uint8_t, uint8_t)': HAL.h:449: error: '::digitalWrite' has not been declared /HAL.h: In static member function 'static uint8_t HAL::digitalRead(uint8_t)': HAL.h:453: error: '::digitalRead' has not been declared /HAL.h: In static member function 'static void HAL::pinMode(uint8_t, uint8_t)': HAL.h:457: error: '::pinMode' has not been declared /HAL.h: In static member function 'static void HAL::delayMicroseconds(unsigned int)': HAL.h:462: error: '::delayMicroseconds' has not been declared /HAL.h: In static member function 'static void HAL::delayMilliseconds(unsigned int)': HAL.h:466: error: '::delay' has not been declared /HAL.h: In static member function 'static void HAL::tone(uint8_t, int)': HAL.h:470: error: '::tone' has not been declared /HAL.h: In static member function 'static void HAL::noTone(uint8_t)': HAL.h:474: error: '::noTone' has not been declared /HAL.h: In static member function 'static void HAL::allowInterrupts()': HAL.h:512: error: 'sei' was not declared in this scope /HAL.h: In static member function 'static void HAL::forbidInterrupts()': HAL.h:516: error: 'cli' was not declared in this scope /HAL.h: In static member function 'static long unsigned int HAL::timeInMilliseconds()': HAL.h:520: error: 'millis' was not declared in this scope /HAL.h: In static member function 'static void HAL::serialSetBaudrate(long int)': HAL.h:528: error: 'Serial' was not declared in this scope /HAL.h: In static member function 'static bool HAL::serialByteAvailable()': HAL.h:532: error: 'Serial' was not declared in this scope /HAL.h: In static member function 'static uint8_t HAL::serialReadByte()': HAL.h:536: error: 'Serial' was not declared in this scope /HAL.h: In static member function 'static void HAL::serialWriteByte(char)': HAL.h:540: error: 'Serial' was not declared in this scope /HAL.h: In static member function 'static void HAL::serialFlush()': HAL.h:544: error: 'Serial' was not declared in this scope /HAL.h: In static member function 'static void HAL::spiInit(uint8_t)': HAL.h:573: error: 'HIGH' was not declared in this scope In file included from /Repetier.h:265, from Commands.cpp:22: /gcode.h: In member function 'float GCode::parseFloatValue(char*)': gcode.h:147: error: 'strtod' was not declared in this scope /gcode.h: In member function 'long int GCode::parseLongValue(char*)': gcode.h:154: error: 'strtol' was not declared in this scope In file included from /Repetier.h:356, from Commands.cpp:22: /Extruder.h: In static member function 'static void Extruder::step()': Extruder.h:107: error: 'HIGH' was not declared in this scope /Extruder.h: In static member function 'static void Extruder::unstep()': Extruder.h:166: error: 'LOW' was not declared in this scope In file included from /Repetier.h:385, from Commands.cpp:22: /Printer.h: In static member function 'static void Printer::endXYZSteps()': Printer.h:535: error: 'LOW' was not declared in this scope Printer.h:536: error: 'LOW' was not declared in this scope Printer.h:537: error: 'LOW' was not declared in this scope In file included from /Repetier.h:386, from Commands.cpp:22: /motion.h: In member function 'void PrintLine::startXStep()': motion.h:501: error: 'HIGH' was not declared in this scope /motion.h: In member function 'void PrintLine::startYStep()': motion.h:541: error: 'HIGH' was not declared in this scope /motion.h: In member function 'void PrintLine::startZStep()': motion.h:577: error: 'HIGH' was not declared in this scope Commands.cpp: In static member function 'static void Commands::setFanSpeed(int, bool)': Commands.cpp:207: error: 'constrain' was not declared in this scope Commands.cpp: In static member function 'static void Commands::executeGCode(GCode*)': Commands.cpp:520: error: 'sqrt' was not declared in this scope Commands.cpp:520: error: 'hypot' was not declared in this scope Commands.cpp:523: error: 'isnan' was not declared in this scope Commands.cpp:567: error: 'hypot' was not declared in this scope Commands.cpp:911: error: 'OUTPUT' was not declared in this scope Commands.cpp:911: error: 'pinMode' was not declared in this scope Commands.cpp:912: error: 'digitalWrite' was not declared in this scope Commands.cpp:913: error: 'analogWrite' was not declared in this scope Commands.cpp:960: error: 'abs' was not declared in this scope Commands.cpp:1048: error: 'fabs' was not declared in this scope
This was all because I thought that I had to download the Repetier Firmare since I was running Repetier Host. So this issue has been resolved... Thanks
Comments
It added a Teensy file, a Prinrboard file and then the bootloader for each as well.
I then selected one board and got this error, and then selected and tried the other board but to the same error each time.
I have restarted each time, and have done a power on process as others on this forum have said.
One question, when the Ardunio verify step is running, is it looking to the Printrboard...? Or does that not happen until it is completed the Verify stage and then connects at the Uploader stage...?
I am not sure that I have connection with my Printrboard...since I did have issues before I found the add-on boards for the Teensy and Printrboard boards.
The only COM port that I have showing up as an option is COM 3 and that is what I used.
My printer is a QU-BD Two Up with heated bed. (no comments please ; ) )
I have tried to do connections by unplugging and replugging in my USB to th computer, but it never beeps at all...
HELP...
Thanks
'::digitalWrite' has not been declared ... come up in the solid Orange box at the bottom
Then the following is also following the message in the lower box ...
In file included from /Repetier.h:264,
from Commands.cpp:22:
/HAL.h:68:19: error: Print.h: No such file or directory
/HAL.h:71:21: error: Arduino.h: No such file or directory
In file included from /Repetier.h:264,
from Commands.cpp:22:
/HAL.h: In static member function 'static void HAL::digitalWrite(uint8_t, uint8_t)':
HAL.h:449: error: '::digitalWrite' has not been declared
/HAL.h: In static member function 'static uint8_t HAL::digitalRead(uint8_t)':
HAL.h:453: error: '::digitalRead' has not been declared
/HAL.h: In static member function 'static void HAL::pinMode(uint8_t, uint8_t)':
HAL.h:457: error: '::pinMode' has not been declared
/HAL.h: In static member function 'static void HAL::delayMicroseconds(unsigned int)':
HAL.h:462: error: '::delayMicroseconds' has not been declared
/HAL.h: In static member function 'static void HAL::delayMilliseconds(unsigned int)':
HAL.h:466: error: '::delay' has not been declared
/HAL.h: In static member function 'static void HAL::tone(uint8_t, int)':
HAL.h:470: error: '::tone' has not been declared
/HAL.h: In static member function 'static void HAL::noTone(uint8_t)':
HAL.h:474: error: '::noTone' has not been declared
/HAL.h: In static member function 'static void HAL::allowInterrupts()':
HAL.h:512: error: 'sei' was not declared in this scope
/HAL.h: In static member function 'static void HAL::forbidInterrupts()':
HAL.h:516: error: 'cli' was not declared in this scope
/HAL.h: In static member function 'static long unsigned int HAL::timeInMilliseconds()':
HAL.h:520: error: 'millis' was not declared in this scope
/HAL.h: In static member function 'static void HAL::serialSetBaudrate(long int)':
HAL.h:528: error: 'Serial' was not declared in this scope
/HAL.h: In static member function 'static bool HAL::serialByteAvailable()':
HAL.h:532: error: 'Serial' was not declared in this scope
/HAL.h: In static member function 'static uint8_t HAL::serialReadByte()':
HAL.h:536: error: 'Serial' was not declared in this scope
/HAL.h: In static member function 'static void HAL::serialWriteByte(char)':
HAL.h:540: error: 'Serial' was not declared in this scope
/HAL.h: In static member function 'static void HAL::serialFlush()':
HAL.h:544: error: 'Serial' was not declared in this scope
/HAL.h: In static member function 'static void HAL::spiInit(uint8_t)':
HAL.h:573: error: 'HIGH' was not declared in this scope
In file included from /Repetier.h:265,
from Commands.cpp:22:
/gcode.h: In member function 'float GCode::parseFloatValue(char*)':
gcode.h:147: error: 'strtod' was not declared in this scope
/gcode.h: In member function 'long int GCode::parseLongValue(char*)':
gcode.h:154: error: 'strtol' was not declared in this scope
In file included from /Repetier.h:356,
from Commands.cpp:22:
/Extruder.h: In static member function 'static void Extruder::step()':
Extruder.h:107: error: 'HIGH' was not declared in this scope
/Extruder.h: In static member function 'static void Extruder::unstep()':
Extruder.h:166: error: 'LOW' was not declared in this scope
In file included from /Repetier.h:385,
from Commands.cpp:22:
/Printer.h: In static member function 'static void Printer::endXYZSteps()':
Printer.h:535: error: 'LOW' was not declared in this scope
Printer.h:536: error: 'LOW' was not declared in this scope
Printer.h:537: error: 'LOW' was not declared in this scope
In file included from /Repetier.h:386,
from Commands.cpp:22:
/motion.h: In member function 'void PrintLine::startXStep()':
motion.h:501: error: 'HIGH' was not declared in this scope
/motion.h: In member function 'void PrintLine::startYStep()':
motion.h:541: error: 'HIGH' was not declared in this scope
/motion.h: In member function 'void PrintLine::startZStep()':
motion.h:577: error: 'HIGH' was not declared in this scope
Commands.cpp: In static member function 'static void Commands::setFanSpeed(int, bool)':
Commands.cpp:207: error: 'constrain' was not declared in this scope
Commands.cpp: In static member function 'static void Commands::executeGCode(GCode*)':
Commands.cpp:520: error: 'sqrt' was not declared in this scope
Commands.cpp:520: error: 'hypot' was not declared in this scope
Commands.cpp:523: error: 'isnan' was not declared in this scope
Commands.cpp:567: error: 'hypot' was not declared in this scope
Commands.cpp:911: error: 'OUTPUT' was not declared in this scope
Commands.cpp:911: error: 'pinMode' was not declared in this scope
Commands.cpp:912: error: 'digitalWrite' was not declared in this scope
Commands.cpp:913: error: 'analogWrite' was not declared in this scope
Commands.cpp:960: error: 'abs' was not declared in this scope
Commands.cpp:1048: error: 'fabs' was not declared in this scope
I did install the file above and then Verify the file again, but unfortunately it stopped again with the following...
Print.h: No such file or directory
The following is the error stream...
In file included from /Repetier.h:264,
from Commands.cpp:22:
HAL.h:68: error: Print.h: No such file or directory
HAL.h:71: error: Arduino.h: No such file or directory
In file included from /Repetier.h:264,
from Commands.cpp:22:
/HAL.h: In static member function 'static void HAL::digitalWrite(uint8_t, uint8_t)':
HAL.h:449: error: '::digitalWrite' has not been declared
/HAL.h: In static member function 'static uint8_t HAL::digitalRead(uint8_t)':
HAL.h:453: error: '::digitalRead' has not been declared
/HAL.h: In static member function 'static void HAL::pinMode(uint8_t, uint8_t)':
HAL.h:457: error: '::pinMode' has not been declared
/HAL.h: In static member function 'static void HAL::delayMicroseconds(unsigned int)':
HAL.h:462: error: '::delayMicroseconds' has not been declared
/HAL.h: In static member function 'static void HAL::delayMilliseconds(unsigned int)':
HAL.h:466: error: '::delay' has not been declared
/HAL.h: In static member function 'static void HAL::tone(uint8_t, int)':
HAL.h:470: error: '::tone' has not been declared
/HAL.h: In static member function 'static void HAL::noTone(uint8_t)':
HAL.h:474: error: '::noTone' has not been declared
/HAL.h: In static member function 'static void HAL::allowInterrupts()':
HAL.h:512: error: 'sei' was not declared in this scope
/HAL.h: In static member function 'static void HAL::forbidInterrupts()':
HAL.h:516: error: 'cli' was not declared in this scope
/HAL.h: In static member function 'static long unsigned int HAL::timeInMilliseconds()':
HAL.h:520: error: 'millis' was not declared in this scope
/HAL.h: In static member function 'static void HAL::serialSetBaudrate(long int)':
HAL.h:528: error: 'Serial' was not declared in this scope
/HAL.h: In static member function 'static bool HAL::serialByteAvailable()':
HAL.h:532: error: 'Serial' was not declared in this scope
/HAL.h: In static member function 'static uint8_t HAL::serialReadByte()':
HAL.h:536: error: 'Serial' was not declared in this scope
/HAL.h: In static member function 'static void HAL::serialWriteByte(char)':
HAL.h:540: error: 'Serial' was not declared in this scope
/HAL.h: In static member function 'static void HAL::serialFlush()':
HAL.h:544: error: 'Serial' was not declared in this scope
/HAL.h: In static member function 'static void HAL::spiInit(uint8_t)':
HAL.h:573: error: 'HIGH' was not declared in this scope
In file included from /Repetier.h:265,
from Commands.cpp:22:
/gcode.h: In member function 'float GCode::parseFloatValue(char*)':
gcode.h:147: error: 'strtod' was not declared in this scope
/gcode.h: In member function 'long int GCode::parseLongValue(char*)':
gcode.h:154: error: 'strtol' was not declared in this scope
In file included from /Repetier.h:356,
from Commands.cpp:22:
/Extruder.h: In static member function 'static void Extruder::step()':
Extruder.h:107: error: 'HIGH' was not declared in this scope
/Extruder.h: In static member function 'static void Extruder::unstep()':
Extruder.h:166: error: 'LOW' was not declared in this scope
In file included from /Repetier.h:385,
from Commands.cpp:22:
/Printer.h: In static member function 'static void Printer::endXYZSteps()':
Printer.h:535: error: 'LOW' was not declared in this scope
Printer.h:536: error: 'LOW' was not declared in this scope
Printer.h:537: error: 'LOW' was not declared in this scope
In file included from /Repetier.h:386,
from Commands.cpp:22:
/motion.h: In member function 'void PrintLine::startXStep()':
motion.h:501: error: 'HIGH' was not declared in this scope
/motion.h: In member function 'void PrintLine::startYStep()':
motion.h:541: error: 'HIGH' was not declared in this scope
/motion.h: In member function 'void PrintLine::startZStep()':
motion.h:577: error: 'HIGH' was not declared in this scope
Commands.cpp: In static member function 'static void Commands::setFanSpeed(int, bool)':
Commands.cpp:207: error: 'constrain' was not declared in this scope
Commands.cpp: In static member function 'static void Commands::executeGCode(GCode*)':
Commands.cpp:520: error: 'sqrt' was not declared in this scope
Commands.cpp:520: error: 'hypot' was not declared in this scope
Commands.cpp:523: error: 'isnan' was not declared in this scope
Commands.cpp:567: error: 'hypot' was not declared in this scope
Commands.cpp:911: error: 'OUTPUT' was not declared in this scope
Commands.cpp:911: error: 'pinMode' was not declared in this scope
Commands.cpp:912: error: 'digitalWrite' was not declared in this scope
Commands.cpp:913: error: 'analogWrite' was not declared in this scope
Commands.cpp:960: error: 'abs' was not declared in this scope
Commands.cpp:1048: error: 'fabs' was not declared in this scope
So this issue has been resolved... Thanks