Unable to Upload
Posted: Sun Oct 15, 2017 11:25 am
Hi,
I have my Spirit built and it is happily running the Demo code Today I made my first attempt to right very simple code using the Base sketch provided, this complies ok but fails to upload. I have checked the basics, such as checking I can communicate to the Spirit this appears to work via Com3. I get the following error message when I attempt to upload.
I am very new to programming is anyone able to give a clue to what the issue might be ?
Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"
In file included from C:\Users\Home\Documents\Arduino\Software From PG\Eyes_NW_Rev01\Eyes_NW_Rev01.ino:20:0:
sketch\Hardware.h:37:0: warning: "INT0" redefined
#define INT0 4 //PIC pulls low when urgent status is present
^
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:272:0,
from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90,
from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
from sketch\Eyes_NW_Rev01.ino.cpp:1:
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\iom328p.h:167:0: note: this is the location of the previous definition
#define INT0 0
^
In file included from C:\Users\Home\Documents\Arduino\Software From PG\Eyes_NW_Rev01\Eyes_NW_Rev01.ino:20:0:
sketch\Hardware.h:38:0: warning: "INT1" redefined
#define INT1 A2 //Other user defined interrupt uses. Connects to Raspberry Pi GPIO17
^
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:272:0,
from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90,
from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
from sketch\Eyes_NW_Rev01.ino.cpp:1:
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\iom328p.h:168:0: note: this is the location of the previous definition
#define INT1 1
^
In file included from C:\Users\Home\Documents\Arduino\Software From PG\Eyes_NW_Rev01\Eyes_NW_Rev01.ino:20:0:
sketch\Hardware.h:820:34: warning: backslash and newline separated by space
#define RecordedDataRefresh() \
^
In file included from C:\Users\Home\Documents\Arduino\Software From PG\Eyes_NW_Rev01\Eyes_NW_Rev01.ino:20:0:
sketch\Hardware.h:430:20: warning: 'irData' initialized and declared 'extern'
extern byte irData[]={0x00,0xFF,0x00,0x00};
^
In file included from C:\Users\Home\Documents\Arduino\Software From PG\Eyes_NW_Rev01\Eyes_NW_Rev01.ino:20:0:
sketch\Hardware.h:803:86: warning: 'typedef' was ignored in this declaration
typedef struct RecordedDataStruct{int left; int leftaver; int leftamb; uint32_t t;};//can edit number, names, and data types
^
C:\Users\Home\Documents\Arduino\Software From PG\Eyes_NW_Rev01\Navigation.ino: In function 'void CalibrateNavigationSensors()':
C:\Users\Home\Documents\Arduino\Software From PG\Eyes_NW_Rev01\Navigation.ino:468:4: warning: overflow in implicit constant conversion [-Woverflow]
i=1000;
^
C:\Users\Home\Documents\Arduino\Software From PG\Eyes_NW_Rev01\Navigation.ino:482:4: warning: overflow in implicit constant conversion [-Woverflow]
i=1000;
^
Sketch uses 6306 bytes (19%) of program storage space. Maximum is 32256 bytes.
Global variables use 638 bytes (31%) of dynamic memory, leaving 1410 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xc8
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I have my Spirit built and it is happily running the Demo code Today I made my first attempt to right very simple code using the Base sketch provided, this complies ok but fails to upload. I have checked the basics, such as checking I can communicate to the Spirit this appears to work via Com3. I get the following error message when I attempt to upload.
I am very new to programming is anyone able to give a clue to what the issue might be ?
Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"
In file included from C:\Users\Home\Documents\Arduino\Software From PG\Eyes_NW_Rev01\Eyes_NW_Rev01.ino:20:0:
sketch\Hardware.h:37:0: warning: "INT0" redefined
#define INT0 4 //PIC pulls low when urgent status is present
^
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:272:0,
from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90,
from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
from sketch\Eyes_NW_Rev01.ino.cpp:1:
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\iom328p.h:167:0: note: this is the location of the previous definition
#define INT0 0
^
In file included from C:\Users\Home\Documents\Arduino\Software From PG\Eyes_NW_Rev01\Eyes_NW_Rev01.ino:20:0:
sketch\Hardware.h:38:0: warning: "INT1" redefined
#define INT1 A2 //Other user defined interrupt uses. Connects to Raspberry Pi GPIO17
^
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:272:0,
from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90,
from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
from sketch\Eyes_NW_Rev01.ino.cpp:1:
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\iom328p.h:168:0: note: this is the location of the previous definition
#define INT1 1
^
In file included from C:\Users\Home\Documents\Arduino\Software From PG\Eyes_NW_Rev01\Eyes_NW_Rev01.ino:20:0:
sketch\Hardware.h:820:34: warning: backslash and newline separated by space
#define RecordedDataRefresh() \
^
In file included from C:\Users\Home\Documents\Arduino\Software From PG\Eyes_NW_Rev01\Eyes_NW_Rev01.ino:20:0:
sketch\Hardware.h:430:20: warning: 'irData' initialized and declared 'extern'
extern byte irData[]={0x00,0xFF,0x00,0x00};
^
In file included from C:\Users\Home\Documents\Arduino\Software From PG\Eyes_NW_Rev01\Eyes_NW_Rev01.ino:20:0:
sketch\Hardware.h:803:86: warning: 'typedef' was ignored in this declaration
typedef struct RecordedDataStruct{int left; int leftaver; int leftamb; uint32_t t;};//can edit number, names, and data types
^
C:\Users\Home\Documents\Arduino\Software From PG\Eyes_NW_Rev01\Navigation.ino: In function 'void CalibrateNavigationSensors()':
C:\Users\Home\Documents\Arduino\Software From PG\Eyes_NW_Rev01\Navigation.ino:468:4: warning: overflow in implicit constant conversion [-Woverflow]
i=1000;
^
C:\Users\Home\Documents\Arduino\Software From PG\Eyes_NW_Rev01\Navigation.ino:482:4: warning: overflow in implicit constant conversion [-Woverflow]
i=1000;
^
Sketch uses 6306 bytes (19%) of program storage space. Maximum is 32256 bytes.
Global variables use 638 bytes (31%) of dynamic memory, leaving 1410 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xc8
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.