exit status 1 Error compiling for board Arduino/Genuino Uno.

Whenever i try to upload a sketch to my Arduino/Genuino Uno board, this message comes up:

exit status 1
Error compiling for board Arduino/Genuino Uno.

PLEASE HELP

Here is my code:

#include <ArduinoRobot.h>
#include <Wire.h>

void setup() {
// initialize the robot
Robot.begin();
}

void loop() {
Robot.motorsWrite(255, 255);
delay(2000);
Robot.motorsStop();
delay(1000);
Robot.motorsWrite(-255, -255);
delay(1000);
Robot.motorsWrite(0, 0);
delay(1000);
Robot.motorsWrite(-255, 255);
delay(2000);
Robot.motorsStop();
delay(1000);
Robot.motorsWrite(255, -255);
delay(2000);
Robot.motorsStop();
delay(1000);
}

There's more error message than that. Please post all of it.

Please remember to use code tags when posting code

Please read the sticky how to post on this forum; specifically the section about posting code.

You should also post the full error message, not just the last few lines that are visible. You can click in the output window (pane), scroll up to the first error (in orange), select everything til the end, copy it and post it here.

Hi, Welcome to the forum.

Please read the first post in any forum entitled how to use this forum. http://forum.arduino.cc/index.php/topic,148850.0.html

Thanks. Tom... :)

Here is the full error code:

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp: In member function 'void RobotMotorBoard::begin()':

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:32:2: error: 'Serial1' was not declared in this scope

Serial1.begin(9600);

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:37:21: error: 'MUXA' was not declared in this scope

uint8_t MuxPins[]={MUXA,MUXB,MUXC};

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:37:26: error: 'MUXB' was not declared in this scope

uint8_t MuxPins[]={MUXA,MUXB,MUXC};

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:37:31: error: 'MUXC' was not declared in this scope

uint8_t MuxPins[]={MUXA,MUXB,MUXC};

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:38:26: error: 'MUX_IN' was not declared in this scope

this->IRs.begin(MuxPins,MUX_IN,3);

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:39:10: error: 'MUXI' was not declared in this scope

pinMode(MUXI,INPUT);

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp: In member function 'uint8_t RobotMotorBoard::parseCodename(uint8_t)':

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:136:11: error: 'TK1' was not declared in this scope

return TK1;

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:138:11: error: 'TK2' was not declared in this scope

return TK2;

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:140:11: error: 'TK3' was not declared in this scope

return TK3;

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:142:11: error: 'TK4' was not declared in this scope

return TK4;

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp: In member function 'uint8_t RobotMotorBoard::codenameToAPin(uint8_t)':

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:154:11: error: 'A11' was not declared in this scope

return A11;

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp: In member function 'void RobotMotorBoard::motorsWrite(int, int)':

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:192:15: error: 'IN_A1' was not declared in this scope

analogWrite(IN_A1,speedR);

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:193:15: error: 'IN_A2' was not declared in this scope

analogWrite(IN_A2,0);

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:195:15: error: 'IN_A1' was not declared in this scope

analogWrite(IN_A1,0);

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:196:15: error: 'IN_A2' was not declared in this scope

analogWrite(IN_A2,-speedR);

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:200:15: error: 'IN_B1' was not declared in this scope

analogWrite(IN_B1,speedL);

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:201:15: error: 'IN_B2' was not declared in this scope

analogWrite(IN_B2,0);

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:203:15: error: 'IN_B1' was not declared in this scope

analogWrite(IN_B1,0);

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:204:15: error: 'IN_B2' was not declared in this scope

analogWrite(IN_B2,-speedL);

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp: In member function 'virtual void RobotMotorBoard::motorsStop()':

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:212:14: error: 'IN_A1' was not declared in this scope

analogWrite(IN_A1,255);

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:213:14: error: 'IN_A2' was not declared in this scope

analogWrite(IN_A2,255);

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:215:14: error: 'IN_B1' was not declared in this scope

analogWrite(IN_B1,255);

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:216:14: error: 'IN_B2' was not declared in this scope

analogWrite(IN_B2,255);

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp: In member function 'void RobotMotorBoard::_readTrim()':

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:271:23: error: 'TRIM' was not declared in this scope

int value=analogRead(TRIM);

^

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp: In member function 'void RobotMotorBoard::_refreshMotorAdjustment()':

C:\Program Files (x86)\Arduino\libraries\Robot_Motor\src\ArduinoRobotMotorBoard.cpp:278:33: error: 'TRIM' was not declared in this scope

motorAdjustment=map(analogRead(TRIM),0,1023,-30,30)/100.0;

^

exit status 1 Error compiling for board Arduino/Genuino Uno.

Error compiling for board Arduino/Genuino Uno.Serial1.begin(9600); A Uno has only one serial port

I dont know what that means sorry im a biggggg nooooobbbb

It means that the code you have was not written for a Uno. As a guess, I'd say it was written for the Arduino Robot.

Oh OK Thanks Alot!! Do you know if there is a way to change the code to work with the UNO?

Depends on the hardware requirements of that robot library, and whether the Uno can fulfill them.

There’s for starters this issue of the second Serial port that the Uno doesn’t have. You may be able to work around that one with SoftwareSerial, though there can easily be more differences. Such as all those other undefined parts, such as TRIM, MUXA, etc.