|
本帖最后由 ink_chen 于 2020-9-30 17:26 编辑
刚接触Adiuno,请各位大神帮忙看看,谢谢!
Arduino:1.8.13 (Windows 10), 开发板:"Arduino Uno"
In file included from C:\Users\Administrator\Documents\Arduino\libraries\grbl/grbl.h:43:0,
from C:\Users\Administrator\Documents\Arduino\libraries\grbl\examples\grblUpload\grblUpload.ino:27:
C:\Users\Administrator\Documents\Arduino\libraries\grbl/nuts_bolts.h:56:0: warning: "max" redefined
#define max(a,b) (((a) > (b)) ? (a) : (b))
In file included from sketch\grblUpload.ino.cpp:1:0:
D:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:93:0: note: this is the location of the previous definition
#define max(a,b) ((a)>(b)?(a)b))
In file included from C:\Users\Administrator\Documents\Arduino\libraries\grbl/grbl.h:43:0,
from C:\Users\Administrator\Documents\Arduino\libraries\grbl\examples\grblUpload\grblUpload.ino:27:
C:\Users\Administrator\Documents\Arduino\libraries\grbl/nuts_bolts.h:57:0: warning: "min" redefined
#define min(a,b) (((a) < (b)) ? (a) : (b))
In file included from sketch\grblUpload.ino.cpp:1:0:
D:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:92:0: note: this is the location of the previous definition
#define min(a,b) ((a)<(b)?(a)b))
In file included from C:\Users\Administrator\Documents\Arduino\libraries\grbl/grbl.h:43:0,
from C:\Users\Administrator\Documents\Arduino\libraries\grbl\examples\grblUpload\grblUpload.ino:27:
C:\Users\Administrator\Documents\Arduino\libraries\grbl/nuts_bolts.h:61:0: warning: "bit" redefined
#define bit(n) (1 << n)
In file included from sketch\grblUpload.ino.cpp:1:0:
D:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:124:0: note: this is the location of the previous definition
#define bit(b) (1UL << (b))
In file included from C:\Users\Administrator\Documents\Arduino\libraries\grbl\grbl.h:47:0,
from C:\Users\Administrator\Documents\Arduino\libraries\grbl\coolant_control.c:21:
C:\Users\Administrator\Documents\Arduino\libraries\grbl\coolant_control.c: In function 'coolant_init':
C:\Users\Administrator\Documents\Arduino\libraries\grbl\cpu_map.h:81:31: error: 'DDRH' undeclared (first use in this function); did you mean 'DDRB'?
#define COOLANT_FLOOD_DDR DDRH
^
C:\Users\Administrator\Documents\Arduino\libraries\grbl\coolant_control.c:26:3: note: in expansion of macro 'COOLANT_FLOOD_DDR'
COOLANT_FLOOD_DDR |= (1 << COOLANT_FLOOD_BIT); // Configure as output pin.
^~~~~~~~~~~~~~~~~
C:\Users\Administrator\Documents\Arduino\libraries\grbl\cpu_map.h:81:31: note: each undeclared identifier is reported only once for each function it appears in
#define COOLANT_FLOOD_DDR DDRH
^
C:\Users\Administrator\Documents\Arduino\libraries\grbl\coolant_control.c:26:3: note: in expansion of macro 'COOLANT_FLOOD_DDR'
COOLANT_FLOOD_DDR |= (1 << COOLANT_FLOOD_BIT); // Configure as output pin.
^~~~~~~~~~~~~~~~~
In file included from C:\Users\Administrator\Documents\Arduino\libraries\grbl\grbl.h:43:0,
from C:\Users\Administrator\Documents\Arduino\libraries\grbl\coolant_control.c:21:
C:\Users\Administrator\Documents\Arduino\libraries\grbl\coolant_control.c: In function 'coolant_get_state':
C:\Users\Administrator\Documents\Arduino\libraries\grbl\cpu_map.h:82:31: error: 'PORTH' undeclared (first use in this function); did you mean 'PORT0'?
#define COOLANT_FLOOD_PORT PORTH
^
C:\Users\Administrator\Documents\Arduino\libraries\grbl\nuts_bolts.h:64:30: note: in definition of macro 'bit_istrue'
#define bit_istrue(x,mask) ((x & mask) != 0)
^
C:\Users\Administrator\Documents\Arduino\libraries\grbl\coolant_control.c:39:20: note: in expansion of macro 'COOLANT_FLOOD_PORT'
if (bit_istrue(COOLANT_FLOOD_PORT,(1 << COOLANT_FLOOD_BIT))) {
^~~~~~~~~~~~~~~~~~
In file included from C:\Users\Administrator\Documents\Arduino\libraries\grbl\grbl.h:47:0,
from C:\Users\Administrator\Documents\Arduino\libraries\grbl\coolant_control.c:21:
C:\Users\Administrator\Documents\Arduino\libraries\grbl\coolant_control.c: In function 'coolant_stop':
C:\Users\Administrator\Documents\Arduino\libraries\grbl\cpu_map.h:82:31: error: 'PORTH' undeclared (first use in this function); did you mean 'PORT0'?
#define COOLANT_FLOOD_PORT PORTH
^
C:\Users\Administrator\Documents\Arduino\libraries\grbl\coolant_control.c:61:5: note: in expansion of macro 'COOLANT_FLOOD_PORT'
COOLANT_FLOOD_PORT &= ~(1 << COOLANT_FLOOD_BIT);
^~~~~~~~~~~~~~~~~~
C:\Users\Administrator\Documents\Arduino\libraries\grbl\coolant_control.c: In function 'coolant_set_state':
C:\Users\Administrator\Documents\Arduino\libraries\grbl\cpu_map.h:82:31: error: 'PORTH' undeclared (first use in this function); did you mean 'PORT0'?
#define COOLANT_FLOOD_PORT PORTH
^
C:\Users\Administrator\Documents\Arduino\libraries\grbl\coolant_control.c:83:7: note: in expansion of macro 'COOLANT_FLOOD_PORT'
COOLANT_FLOOD_PORT |= (1 << COOLANT_FLOOD_BIT);
^~~~~~~~~~~~~~~~~~
exit status 1
为开发板 Arduino Uno 编译时出错。
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
|
|