Git Product home page Git Product logo

Comments (1)

Luppie83 avatar Luppie83 commented on June 7, 2024

I have a similar error tring to compile this program for the arduino mega 2560.
Its made for the teensy but i hope its possible to modify it for the mega2560.

anybody have a clue if its doable ? What should be modified or what direction to look to get it compiling?

i already tried manually insert the servo.h and other missing libraries but it only makes it worse?

`Processing megaatmega2560 (platform: atmelavr; board: megaatmega2560; framework: arduino)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/megaatmega2560.html
PLATFORM: Atmel AVR > Arduino Mega or Mega 2560 ATmega2560 (Mega 2560)
HARDWARE: ATMEGA2560 16MHz 8KB RAM (248KB Flash)
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 92 compatible libraries
Scanning dependencies...
Dependency Graph
|-- 1.3.6
| |--
| |-- 1.0
|-- 1.2.9
| |--
| |-- 1.3.6
| | |--
| | |-- 1.0
| |-- 1.0
|--
|--
|--
|-- 1.0
Compiling .pioenvs\megaatmega2560\src\EEPromStorage.cpp.o
Compiling .pioenvs\megaatmega2560\src\IOLogic.cpp.o
Compiling .pioenvs\megaatmega2560\src\Kinematic.cpp.o
Compiling .pioenvs\megaatmega2560\src\Logger.cpp.o
Compiling .pioenvs\megaatmega2560\src\MRCPParser.cpp.o
Compiling .pioenvs\megaatmega2560\src\MRILParser.cpp.o
Compiling .pioenvs\megaatmega2560\src\RingBuffer.cpp.o
Compiling .pioenvs\megaatmega2560\src\RobotController.cpp.o
Compiling .pioenvs\megaatmega2560\src\VarSpeedServo.cpp.o
Compiling .pioenvs\megaatmega2560\src\main.cpp.o
Compiling .pioenvs\megaatmega2560\src\main_test.cpp.o
Compiling .pioenvs\megaatmega2560\lib606\GRBL-Arduino-Library-master\coolant_control.cpp.o
In file included from src\RobotController.h:21:0,
from src\MRILParser.h:6,
from src\MRILParser.cpp:1:
src\VarSpeedServo.h:9:19: fatal error: Servo.h: No such file or directory



compilation terminated.
In file included from src\RobotController.h:21:0,
from src\MRILParser.h:6,
from src\MRCPParser.h:6,
from src\MRCPParser.cpp:1:
src\VarSpeedServo.h:9:19: fatal error: Servo.h: No such file or directory



compilation terminated.
src\EEPromStorage.cpp: In member function 'void EEPromStorage::appendMessage(char*, char)':
src\EEPromStorage.cpp:14:12: error: 'EEPROM' was not declared in this scope
while (EEPROM.read(pointer) != 0) {
^
src\EEPromStorage.cpp:23:5: error: 'EEPROM' was not declared in this scope
EEPROM.write(pointer, length);
^
src\EEPromStorage.cpp:27:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (size_t i = 0; i < length; i++) {
^
src\EEPromStorage.cpp:34:19: warning: array subscript has type 'char' [-Wchar-subscripts]
message[length] = 0;
^
src\EEPromStorage.cpp: In member function 'char EEPromStorage::getMessage(unsigned int, char*)':
src\EEPromStorage.cpp:42:13: error: 'EEPROM' was not declared in this scope
if (EEPROM.read(pointer) == 0) { // last message
^
src\EEPromStorage.cpp:45:20: error: 'EEPROM' was not declared in this scope
pointer += EEPROM.read(pointer) + 1;
^
src\EEPromStorage.cpp:48:26: error: 'EEPROM' was not declared in this scope
char messageLength = EEPROM.read(pointer);
^
src\EEPromStorage.cpp:54:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (size_t i = 0; i < messageLength; i++) {
^
src\EEPromStorage.cpp: In member function 'char EEPromStorage::getByte(int)':
src\EEPromStorage.cpp:66:12: error: 'EEPROM' was not declared in this scope
return EEPROM.read(address);
^
src\EEPromStorage.cpp: In member function 'int EEPromStorage::getNumberOfMessages()':
src\EEPromStorage.cpp:73:12: error: 'EEPROM' was not declared in this scope
while (EEPROM.read(pointer) != 0) {
^
src\EEPromStorage.cpp: In member function 'void EEPromStorage::clear()':
src\EEPromStorage.cpp:93:5: error: 'EEPROM' was not declared in this scope
EEPROM.write(0, 0);
^
src\IOLogic.cpp: In member function 'void IOLogic::addCondition(unsigned int, unsigned int)':
src\IOLogic.cpp:17:22: error: 'INPUT_PULLDOWN' was not declared in this scope
pinMode(pin, INPUT_PULLDOWN);
^
src\IOLogic.cpp: In member function 'void IOLogic::setOutput(unsigned int, unsigned int)':
src\IOLogic.cpp:32:20: warning: invalid conversion from 'unsigned int' to 'const char*' [-fpermissive]
logger.info(pin);
^
In file included from src\IOLogic.cpp:4:0:
src\Logger.h:30:10: note: initializing argument 1 of 'void Logger::info(const char*, bool)'
void info(const char text,
^
src\IOLogic.cpp:34:22: warning: invalid conversion from 'unsigned int' to 'const char
' [-fpermissive]
logger.info(state);
^
In file included from src\IOLogic.cpp:4:0:
src\Logger.h:30:10: note: initializing argument 1 of 'void Logger::info(const char*, bool)'
void info(const char *text,
^
*** [.pioenvs\megaatmega2560\src\IOLogic.cpp.o] Error 1
*** [.pioenvs\megaatmega2560\src\EEPromStorage.cpp.o] Error 1
*** [.pioenvs\megaatmega2560\src\MRILParser.cpp.o] Error 1
In file included from src\RobotController.h:21:0,
from src\RobotController.cpp:2:
src\VarSpeedServo.h:9:19: fatal error: Servo.h: No such file or directory



compilation terminated.
*** [.pioenvs\megaatmega2560\src\RobotController.cpp.o] Error 1
*** [.pioenvs\megaatmega2560\src\MRCPParser.cpp.o] Error 1
In file included from src\VarSpeedServo.cpp:1:0:
src\VarSpeedServo.h:9:19: fatal error: Servo.h: No such file or directory



compilation terminated.
*** [.pioenvs\megaatmega2560\src\VarSpeedServo.cpp.o] Error 1
In file included from src\main.cpp:12:0:
src\VarSpeedServo.h:9:19: fatal error: Servo.h: No such file or directory



compilation terminated.
*** [.pioenvs\megaatmega2560\src\main.cpp.o] Error 1
=============================================================================================== [ERROR] Took 7.85 seconds ===============================================================================================

======================================================================================================= [SUMMARY] =======================================================================================================
Environment megaatmega2560 [ERROR]
Environment teensy31 [SKIP]
Environment teensy35 [SKIP]`

from mrc.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.