Arduino:1.8.1 (Windows 7), 开发板:"ATmega8-noxtal @8MHz"
D:\softwareinstallation\arduino\arduino-builder -dump-prefs -logger=machine -hardware D:\softwareinstallation\arduino\hardware -tools D:\softwareinstallation\arduino\tools-builder -tools D:\softwareinstallation\arduino\hardware\tools\avr -built-in-libraries D:\softwareinstallation\arduino\libraries -libraries C:\Users\jack\Documents\Arduino\libraries -fqbn=arduino:avr:atmega8noxtal -ide-version=10801 -build-path C:\Users\jack\AppData\Local\Temp\arduino_build_7708 -warnings=all -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=D:\softwareinstallation\arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=D:\softwareinstallation\arduino\hardware\tools\avr -verbose D:\桌面\项目\Arduino--add\softuart0.04\softuart0.04.ino
D:\softwareinstallation\arduino\arduino-builder -compile -logger=machine -hardware D:\softwareinstallation\arduino\hardware -tools D:\softwareinstallation\arduino\tools-builder -tools D:\softwareinstallation\arduino\hardware\tools\avr -built-in-libraries D:\softwareinstallation\arduino\libraries -libraries C:\Users\jack\Documents\Arduino\libraries -fqbn=arduino:avr:atmega8noxtal -ide-version=10801 -build-path C:\Users\jack\AppData\Local\Temp\arduino_build_7708 -warnings=all -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=D:\softwareinstallation\arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=D:\softwareinstallation\arduino\hardware\tools\avr -verbose D:\桌面\项目\Arduino--add\softuart0.04\softuart0.04.ino
Using board 'atmega8noxtal' from platform in folder: D:\softwareinstallation\arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: D:\softwareinstallation\arduino\hardware\arduino\avr
Warning: Board arduino:avr:atmega8noxtal doesn't define a 'build.board' preference. Auto-set to: AVR_ATMEGA8NOXTAL
Detecting libraries used...
"D:\softwareinstallation\arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega8 -DF_CPU=8000000L -DARDUINO=10801 -DARDUINO_AVR_ATMEGA8NOXTAL -DARDUINO_ARCH_AVR "-ID:\softwareinstallation\arduino\hardware\arduino\avr\cores\arduino" "-ID:\softwareinstallation\arduino\hardware\arduino\avr\variants\standard" "C:\Users\jack\AppData\Local\Temp\arduino_build_7708\sketch\softuart0.04.ino.cpp" -o "nul"
"D:\softwareinstallation\arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega8 -DF_CPU=8000000L -DARDUINO=10801 -DARDUINO_AVR_ATMEGA8NOXTAL -DARDUINO_ARCH_AVR "-ID:\softwareinstallation\arduino\hardware\arduino\avr\cores\arduino" "-ID:\softwareinstallation\arduino\hardware\arduino\avr\variants\standard" "-ID:\softwareinstallation\arduino\hardware\arduino\avr\libraries\SoftwareSerial\src" "C:\Users\jack\AppData\Local\Temp\arduino_build_7708\sketch\softuart0.04.ino.cpp" -o "nul"
"D:\softwareinstallation\arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega8 -DF_CPU=8000000L -DARDUINO=10801 -DARDUINO_AVR_ATMEGA8NOXTAL -DARDUINO_ARCH_AVR "-ID:\softwareinstallation\arduino\hardware\arduino\avr\cores\arduino" "-ID:\softwareinstallation\arduino\hardware\arduino\avr\variants\standard" "-ID:\softwareinstallation\arduino\hardware\arduino\avr\libraries\SoftwareSerial\src" "D:\softwareinstallation\arduino\hardware\arduino\avr\libraries\SoftwareSerial\src\SoftwareSerial.cpp" -o "nul"
Generating function prototypes...
"D:\softwareinstallation\arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega8 -DF_CPU=8000000L -DARDUINO=10801 -DARDUINO_AVR_ATMEGA8NOXTAL -DARDUINO_ARCH_AVR "-ID:\softwareinstallation\arduino\hardware\arduino\avr\cores\arduino" "-ID:\softwareinstallation\arduino\hardware\arduino\avr\variants\standard" "-ID:\softwareinstallation\arduino\hardware\arduino\avr\libraries\SoftwareSerial\src" "C:\Users\jack\AppData\Local\Temp\arduino_build_7708\sketch\softuart0.04.ino.cpp" -o "C:\Users\jack\AppData\Local\Temp\arduino_build_7708\preproc\ctags_target_for_gcc_minus_e.cpp"
"D:\softwareinstallation\arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\jack\AppData\Local\Temp\arduino_build_7708\preproc\ctags_target_for_gcc_minus_e.cpp"
正在编译项目...
"D:\softwareinstallation\arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega8 -DF_CPU=8000000L -DARDUINO=10801 -DARDUINO_AVR_ATMEGA8NOXTAL -DARDUINO_ARCH_AVR "-ID:\softwareinstallation\arduino\hardware\arduino\avr\cores\arduino" "-ID:\softwareinstallation\arduino\hardware\arduino\avr\variants\standard" "-ID:\softwareinstallation\arduino\hardware\arduino\avr\libraries\SoftwareSerial\src" "C:\Users\jack\AppData\Local\Temp\arduino_build_7708\sketch\softuart0.04.ino.cpp" -o "C:\Users\jack\AppData\Local\Temp\arduino_build_7708\sketch\softuart0.04.ino.cpp.o"
Compiling libraries...
Compiling library "SoftwareSerial"
"D:\softwareinstallation\arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega8 -DF_CPU=8000000L -DARDUINO=10801 -DARDUINO_AVR_ATMEGA8NOXTAL -DARDUINO_ARCH_AVR "-ID:\softwareinstallation\arduino\hardware\arduino\avr\cores\arduino" "-ID:\softwareinstallation\arduino\hardware\arduino\avr\variants\standard" "-ID:\softwareinstallation\arduino\hardware\arduino\avr\libraries\SoftwareSerial\src" "D:\softwareinstallation\arduino\hardware\arduino\avr\libraries\SoftwareSerial\src\SoftwareSerial.cpp" -o "C:\Users\jack\AppData\Local\Temp\arduino_build_7708\libraries\SoftwareSerial\SoftwareSerial.cpp.o"
In file included from D:\softwareinstallation\arduino\hardware\arduino\avr\cores\arduino/Arduino.h:249:0,
from D:\softwareinstallation\arduino\hardware\arduino\avr\libraries\SoftwareSerial\src\SoftwareSerial.cpp:43:
D:\softwareinstallation\arduino\hardware\arduino\avr\libraries\SoftwareSerial\src\SoftwareSerial.cpp: In member function 'void SoftwareSerial::begin(long int)':
D:\softwareinstallation\arduino\hardware\arduino\avr\variants\standard/pins_arduino.h:56:42: warning: comparison is always true due to limited range of data type [-Wtype-limits]
#define digitalPinToPCICR(p) (((p) >= 0 && (p) <= 21) ? (&PCICR) : ((uint8_t *)0))
^
D:\softwareinstallation\arduino\hardware\arduino\avr\libraries\SoftwareSerial\src\SoftwareSerial.cpp:319:7: note: in expansion of macro 'digitalPinToPCICR'
if (digitalPinToPCICR(_receivePin)) {
^
D:\softwareinstallation\arduino\hardware\arduino\avr\variants\standard/pins_arduino.h:56:62: error: 'PCICR' was not declared in this scope
#define digitalPinToPCICR(p) (((p) >= 0 && (p) <= 21) ? (&PCICR) : ((uint8_t *)0))
^
D:\softwareinstallation\arduino\hardware\arduino\avr\libraries\SoftwareSerial\src\SoftwareSerial.cpp:319:7: note: in expansion of macro 'digitalPinToPCICR'
if (digitalPinToPCICR(_receivePin)) {
^
D:\softwareinstallation\arduino\hardware\arduino\avr\variants\standard/pins_arduino.h:56:42: warning: comparison is always true due to limited range of data type [-Wtype-limits]
#define digitalPinToPCICR(p) (((p) >= 0 && (p) <= 21) ? (&PCICR) : ((uint8_t *)0))
^
D:\softwareinstallation\arduino\hardware\arduino\avr\libraries\SoftwareSerial\src\SoftwareSerial.cpp:360:6: note: in expansion of macro 'digitalPinToPCICR'
*digitalPinToPCICR(_receivePin) |= _BV(digitalPinToPCICRbit(_receivePin));
^
D:\softwareinstallation\arduino\hardware\arduino\avr\variants\standard/pins_arduino.h:58:49: error: 'PCMSK2' was not declared in this scope
#define digitalPinToPCMSK(p) (((p) <= 7) ? (&PCMSK2) : (((p) <= 13) ? (&PCMSK0) : (((p) <= 21) ? (&PCMSK1) : ((uint8_t *)0))))
^
D:\softwareinstallation\arduino\hardware\arduino\avr\libraries\SoftwareSerial\src\SoftwareSerial.cpp:363:22: note: in expansion of macro 'digitalPinToPCMSK'
_pcint_maskreg = digitalPinToPCMSK(_receivePin);
^
D:\softwareinstallation\arduino\hardware\arduino\avr\variants\standard/pins_arduino.h:58:76: error: 'PCMSK0' was not declared in this scope
#define digitalPinToPCMSK(p) (((p) <= 7) ? (&PCMSK2) : (((p) <= 13) ? (&PCMSK0) : (((p) <= 21) ? (&PCMSK1) : ((uint8_t *)0))))
^
D:\softwareinstallation\arduino\hardware\arduino\avr\libraries\SoftwareSerial\src\SoftwareSerial.cpp:363:22: note: in expansion of macro 'digitalPinToPCMSK'
_pcint_maskreg = digitalPinToPCMSK(_receivePin);
^
D:\softwareinstallation\arduino\hardware\arduino\avr\variants\standard/pins_arduino.h:58:103: error: 'PCMSK1' was not declared in this scope
#define digitalPinToPCMSK(p) (((p) <= 7) ? (&PCMSK2) : (((p) <= 13) ? (&PCMSK0) : (((p) <= 21) ? (&PCMSK1) : ((uint8_t *)0))))
^
D:\softwareinstallation\arduino\hardware\arduino\avr\libraries\SoftwareSerial\src\SoftwareSerial.cpp:363:22: note: in expansion of macro 'digitalPinToPCMSK'
_pcint_maskreg = digitalPinToPCMSK(_receivePin);
^
使用 1.0 版本的库 SoftwareSerial 在文件夹: D:\softwareinstallation\arduino\hardware\arduino\avr\libraries\SoftwareSerial
exit status 1
为开发板 ATmega8-noxtal @8MHz 编译时出错。
2323.png
(29.27 KB, 下载次数: 125)
2017-9-28 10:11 上传
只包含了一个头文件