完全按照官网quickstarter视频中的方法进行操作,在upload calibration的步骤的时候出现以下错误:
Arduino: 1.6.8 (Windows 7), Board: “Arduino/Genuino Uno”
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\Calibration.ino.cpp:1:
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:1167:26: error: ‘uint_farptr_t’ was not declared in this scope
extern size_t strlen_PF (uint_farptr_t src) ATTR_CONST; /* program memory can’t change */
^
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:1168:27: error: ‘uint_farptr_t’ was not declared in this scope
extern size_t strnlen_PF (uint_farptr_t src, size_t len) ATTR_CONST; /* program memory can’t change */
^
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:1168:53: error: expected primary-expression before ‘len’
extern size_t strnlen_PF (uint_farptr_t src, size_t len) ATTR_CONST; /* program memory can’t change */
^
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:1168:58: error: expression list treated as compound expression in initializer [-fpermissive]
extern size_t strnlen_PF (uint_farptr_t src, size_t len) ATTR_CONST; /* program memory can’t change */
^
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:1169:37: error: ‘uint_farptr_t’ has not been declared
extern void *memcpy_PF (void *dest, uint_farptr_t src, size_t len);
^
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:1170:37: error: ‘uint_farptr_t’ has not been declared
extern char *strcpy_PF (char *dest, uint_farptr_t src);
^
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:1171:38: error: ‘uint_farptr_t’ has not been declared
extern char *strncpy_PF (char *dest, uint_farptr_t src, size_t len);
^
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:1172:37: error: ‘uint_farptr_t’ has not been declared
extern char *strcat_PF (char *dest, uint_farptr_t src);
^
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:1173:38: error: ‘uint_farptr_t’ has not been declared
extern size_t strlcat_PF (char *dst, uint_farptr_t src, size_t siz);
^
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:1174:38: error: ‘uint_farptr_t’ has not been declared
extern char *strncat_PF (char *dest, uint_farptr_t src, size_t len);
^
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:1175:39: error: ‘uint_farptr_t’ has not been declared
extern int strcmp_PF (const char *s1, uint_farptr_t s2) ATTR_PURE;
^
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:1176:40: error: ‘uint_farptr_t’ has not been declared
extern int strncmp_PF (const char *s1, uint_farptr_t s2, size_t n) ATTR_PURE;
^
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:1177:43: error: ‘uint_farptr_t’ has not been declared
extern int strcasecmp_PF (const char *s1, uint_farptr_t s2) ATTR_PURE;
^
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:1178:44: error: ‘uint_farptr_t’ has not been declared
extern int strncasecmp_PF (const char *s1, uint_farptr_t s2, size_t n) ATTR_PURE;
^
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:1179:41: error: ‘uint_farptr_t’ has not been declared
extern char *strstr_PF (const char *s1, uint_farptr_t s2);
^
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:1180:38: error: ‘uint_farptr_t’ has not been declared
extern size_t strlcpy_PF (char *dst, uint_farptr_t src, size_t siz);
^
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:1181:36: error: ‘uint_farptr_t’ has not been declared
extern int memcmp_PF(const void *, uint_farptr_t, size_t) ATTR_PURE;
^
exit status 1
Error compiling for board Arduino/Genuino Uno.
This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.
请问问题出在哪儿?是board需要进行选择吗?