potřebuji pomoct.
Pro svůj projekt pozičních a navigačních světel do rc kluzáku jsem si pořídil 8bits mikrořadič attiny85, s tím, že ho budu programovat přes arduino UNO co mám. Vše jsem zapojil podle schématu, které jsem našel na webu: https://create.arduino.cc/projecthub/ar ... uno-afb829
s tím, že místo elektrolytu 10uF/25 V jsem použil 10uF/50V, ale problém je jinde. Po patřičném nastavení IDE mi nejde verifikovat scatch arduinoISP a následně vypálit bootloader; kompilátor vypíše toto:
Kód: Vybrat vše
Arduino: 1.8.5 (Linux), Board: "ATtiny25/45/85, ATtiny25, Internal 8 MHz"
/home/wbr5790/Desktop/arduino-1.8.5/arduino-builder -dump-prefs -logger=machine -hardware /home/wbr5790/Desktop/arduino-1.8.5/hardware -hardware /home/wbr5790/.arduino15/packages -tools /home/wbr5790/Desktop/arduino-1.8.5/tools-builder -tools /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr -tools /home/wbr5790/.arduino15/packages -built-in-libraries /home/wbr5790/Desktop/arduino-1.8.5/libraries -libraries /home/wbr5790/Arduino/libraries -fqbn=attiny:avr:ATtinyX5:cpu=attiny25,clock=internal8 -vid-pid=0X2341_0X0043 -ide-version=10805 -build-path /tmp/arduino_build_865533 -warnings=all -build-cache /tmp/arduino_cache_495087 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr -verbose /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino
/home/wbr5790/Desktop/arduino-1.8.5/arduino-builder -compile -logger=machine -hardware /home/wbr5790/Desktop/arduino-1.8.5/hardware -hardware /home/wbr5790/.arduino15/packages -tools /home/wbr5790/Desktop/arduino-1.8.5/tools-builder -tools /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr -tools /home/wbr5790/.arduino15/packages -built-in-libraries /home/wbr5790/Desktop/arduino-1.8.5/libraries -libraries /home/wbr5790/Arduino/libraries -fqbn=attiny:avr:ATtinyX5:cpu=attiny25,clock=internal8 -vid-pid=0X2341_0X0043 -ide-version=10805 -build-path /tmp/arduino_build_865533 -warnings=all -build-cache /tmp/arduino_cache_495087 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr -verbose /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino
Using board 'ATtinyX5' from platform in folder: /home/wbr5790/.arduino15/packages/attiny/hardware/avr/1.0.2
Using core 'arduino' from platform in folder: /home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr
Detecting libraries used...
"/home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=attiny25 -DF_CPU=8000000L -DARDUINO=10805 -DARDUINO_attiny -DARDUINO_ARCH_AVR "-I/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/cores/arduino" "-I/home/wbr5790/.arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8" "/tmp/arduino_build_865533/sketch/ArduinoISP.ino.cpp" -o "/dev/null"
"/home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=attiny25 -DF_CPU=8000000L -DARDUINO=10805 -DARDUINO_attiny -DARDUINO_ARCH_AVR "-I/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/cores/arduino" "-I/home/wbr5790/.arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8" "-I/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src" "/tmp/arduino_build_865533/sketch/ArduinoISP.ino.cpp" -o "/dev/null"
"/home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=attiny25 -DF_CPU=8000000L -DARDUINO=10805 -DARDUINO_attiny -DARDUINO_ARCH_AVR "-I/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/cores/arduino" "-I/home/wbr5790/.arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8" "-I/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src" "/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.cpp" -o "/dev/null"
Generating function prototypes...
"/home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=attiny25 -DF_CPU=8000000L -DARDUINO=10805 -DARDUINO_attiny -DARDUINO_ARCH_AVR "-I/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/cores/arduino" "-I/home/wbr5790/.arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8" "-I/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src" "/tmp/arduino_build_865533/sketch/ArduinoISP.ino.cpp" -o "/tmp/arduino_build_865533/preproc/ctags_target_for_gcc_minus_e.cpp"
"/home/wbr5790/Desktop/arduino-1.8.5/tools-builder/ctags/5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/tmp/arduino_build_865533/preproc/ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"/home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny25 -DF_CPU=8000000L -DARDUINO=10805 -DARDUINO_attiny -DARDUINO_ARCH_AVR "-I/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/cores/arduino" "-I/home/wbr5790/.arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8" "-I/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src" "/tmp/arduino_build_865533/sketch/ArduinoISP.ino.cpp" -o "/tmp/arduino_build_865533/sketch/ArduinoISP.ino.cpp.o"
In file included from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h:99:0,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:39:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h: In member function 'void SPISettings::init_AlwaysInline(uint32_t, uint8_t, uint8_t)':
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:146:16: error: 'SPE' was not declared in this scope
spcr = _BV(SPE) | _BV(MSTR) | ((bitOrder == LSBFIRST) ? _BV(DORD) : 0) |
^
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:146:27: error: 'MSTR' was not declared in this scope
spcr = _BV(SPE) | _BV(MSTR) | ((bitOrder == LSBFIRST) ? _BV(DORD) : 0) |
^
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:146:65: error: 'DORD' was not declared in this scope
spcr = _BV(SPE) | _BV(MSTR) | ((bitOrder == LSBFIRST) ? _BV(DORD) : 0) |
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:162:0:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h: In static member function 'static void SPIClass::beginTransaction(SPISettings)':
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:203:5: error: 'SPCR' was not declared in this scope
SPCR = settings.spcr;
^
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:204:5: error: 'SPSR' was not declared in this scope
SPSR = settings.spsr;
^
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h: In static member function 'static uint8_t SPIClass::transfer(uint8_t)':
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:209:5: error: 'SPDR' was not declared in this scope
SPDR = data;
^
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:217:14: error: 'SPSR' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ; // wait
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h:99:0,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:39:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:217:25: error: 'SPIF' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ; // wait
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:162:0:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h: In static member function 'static uint16_t SPIClass::transfer16(uint16_t)':
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:223:11: error: 'SPCR' was not declared in this scope
if (!(SPCR & _BV(DORD))) {
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h:99:0,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:39:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:223:22: error: 'DORD' was not declared in this scope
if (!(SPCR & _BV(DORD))) {
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:162:0:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:224:7: error: 'SPDR' was not declared in this scope
SPDR = in.msb;
^
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:226:16: error: 'SPSR' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h:99:0,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:39:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:226:27: error: 'SPIF' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:162:0:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:230:16: error: 'SPSR' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h:99:0,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:39:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:230:27: error: 'SPIF' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:162:0:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:233:7: error: 'SPDR' was not declared in this scope
SPDR = in.lsb;
^
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:235:16: error: 'SPSR' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h:99:0,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:39:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:235:27: error: 'SPIF' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:162:0:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:239:16: error: 'SPSR' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h:99:0,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:39:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:239:27: error: 'SPIF' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:162:0:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h: In static member function 'static void SPIClass::transfer(void*, size_t)':
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:247:5: error: 'SPDR' was not declared in this scope
SPDR = *p;
^
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:250:16: error: 'SPSR' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h:99:0,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:39:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:250:27: error: 'SPIF' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:162:0:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:255:14: error: 'SPSR' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h:99:0,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:39:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:255:25: error: 'SPIF' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:162:0:
Using library SPI at version 1.0 in folder: /home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h: In static member function 'static void SPIClass::setBitOrder(uint8_t)':
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:292:31: error: 'SPCR' was not declared in this scope
if (bitOrder == LSBFIRST) SPCR |= _BV(DORD);
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h:99:0,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:39:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:292:43: error: 'DORD' was not declared in this scope
if (bitOrder == LSBFIRST) SPCR |= _BV(DORD);
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:162:0:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:293:10: error: 'SPCR' was not declared in this scope
else SPCR &= ~(_BV(DORD));
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h:99:0,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:39:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:293:24: error: 'DORD' was not declared in this scope
else SPCR &= ~(_BV(DORD));
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:162:0:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h: In static member function 'static void SPIClass::setDataMode(uint8_t)':
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:298:5: error: 'SPCR' was not declared in this scope
SPCR = (SPCR & ~SPI_MODE_MASK) | dataMode;
^
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h: In static member function 'static void SPIClass::setClockDivider(uint8_t)':
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:303:5: error: 'SPCR' was not declared in this scope
SPCR = (SPCR & ~SPI_CLOCK_MASK) | (clockDiv & SPI_CLOCK_MASK);
^
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:304:5: error: 'SPSR' was not declared in this scope
SPSR = (SPSR & ~SPI_2XCLOCK_MASK) | ((clockDiv >> 2) & SPI_2XCLOCK_MASK);
^
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h: In static member function 'static void SPIClass::attachInterrupt()':
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:309:42: error: 'SPCR' was not declared in this scope
inline static void attachInterrupt() { SPCR |= _BV(SPIE); }
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h:99:0,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:39:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:309:54: error: 'SPIE' was not declared in this scope
inline static void attachInterrupt() { SPCR |= _BV(SPIE); }
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:162:0:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h: In static member function 'static void SPIClass::detachInterrupt()':
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:310:42: error: 'SPCR' was not declared in this scope
inline static void detachInterrupt() { SPCR &= ~_BV(SPIE); }
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h:99:0,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:39:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:310:55: error: 'SPIE' was not declared in this scope
inline static void detachInterrupt() { SPCR &= ~_BV(SPIE); }
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino: In function 'void setup()':
ArduinoISP:136: error: 'Serial' was not declared in this scope
#define SERIAL Serial
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:220:3: note: in expansion of macro 'SERIAL'
SERIAL.begin(BAUDRATE);
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino: In function 'void loop()':
ArduinoISP:136: error: 'Serial' was not declared in this scope
#define SERIAL Serial
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:294:7: note: in expansion of macro 'SERIAL'
if (SERIAL.available()) {
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino: In function 'uint8_t getch()':
ArduinoISP:136: error: 'Serial' was not declared in this scope
#define SERIAL Serial
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:300:11: note: in expansion of macro 'SERIAL'
while (!SERIAL.available());
^
ArduinoISP:136: error: 'Serial' was not declared in this scope
#define SERIAL Serial
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:301:10: note: in expansion of macro 'SERIAL'
return SERIAL.read();
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino: In function 'void empty_reply()':
ArduinoISP:136: error: 'Serial' was not declared in this scope
#define SERIAL Serial
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:334:5: note: in expansion of macro 'SERIAL'
SERIAL.print((char)STK_INSYNC);
^
ArduinoISP:136: error: 'Serial' was not declared in this scope
#define SERIAL Serial
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:338:5: note: in expansion of macro 'SERIAL'
SERIAL.print((char)STK_NOSYNC);
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino: In function 'void breply(uint8_t)':
ArduinoISP:136: error: 'Serial' was not declared in this scope
#define SERIAL Serial
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:344:5: note: in expansion of macro 'SERIAL'
SERIAL.print((char)STK_INSYNC);
^
ArduinoISP:136: error: 'Serial' was not declared in this scope
#define SERIAL Serial
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:349:5: note: in expansion of macro 'SERIAL'
SERIAL.print((char)STK_NOSYNC);
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino: In function 'void start_pmode()':
ArduinoISP:112: error: 'SCK' was not declared in this scope
#define PIN_SCK SCK
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:415:16: note: in expansion of macro 'PIN_SCK'
digitalWrite(PIN_SCK, LOW);
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino: In function 'void end_pmode()':
ArduinoISP:104: error: 'MOSI' was not declared in this scope
#define PIN_MOSI MOSI
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:432:11: note: in expansion of macro 'PIN_MOSI'
pinMode(PIN_MOSI, INPUT);
^
ArduinoISP:112: error: 'SCK' was not declared in this scope
#define PIN_SCK SCK
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:433:11: note: in expansion of macro 'PIN_SCK'
pinMode(PIN_SCK, INPUT);
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino: In function 'void write_flash(int)':
ArduinoISP:136: error: 'Serial' was not declared in this scope
#define SERIAL Serial
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:484:5: note: in expansion of macro 'SERIAL'
SERIAL.print((char) STK_INSYNC);
^
ArduinoISP:136: error: 'Serial' was not declared in this scope
#define SERIAL Serial
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:488:5: note: in expansion of macro 'SERIAL'
SERIAL.print((char) STK_NOSYNC);
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino: In function 'void program_page()':
ArduinoISP:136: error: 'Serial' was not declared in this scope
#define SERIAL Serial
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:554:7: note: in expansion of macro 'SERIAL'
SERIAL.print((char) STK_INSYNC);
^
ArduinoISP:136: error: 'Serial' was not declared in this scope
#define SERIAL Serial
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:558:7: note: in expansion of macro 'SERIAL'
SERIAL.print((char) STK_NOSYNC);
^
ArduinoISP:136: error: 'Serial' was not declared in this scope
#define SERIAL Serial
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:562:3: note: in expansion of macro 'SERIAL'
SERIAL.print((char)STK_FAILED);
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino: In function 'char flash_read_page(int)':
ArduinoISP:136: error: 'Serial' was not declared in this scope
#define SERIAL Serial
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:576:5: note: in expansion of macro 'SERIAL'
SERIAL.print((char) low);
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino: In function 'char eeprom_read_page(int)':
ArduinoISP:136: error: 'Serial' was not declared in this scope
#define SERIAL Serial
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:590:5: note: in expansion of macro 'SERIAL'
SERIAL.print((char) ee);
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino: In function 'void read_page()':
ArduinoISP:136: error: 'Serial' was not declared in this scope
#define SERIAL Serial
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:602:5: note: in expansion of macro 'SERIAL'
SERIAL.print((char) STK_NOSYNC);
^
ArduinoISP:136: error: 'Serial' was not declared in this scope
#define SERIAL Serial
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:605:3: note: in expansion of macro 'SERIAL'
SERIAL.print((char) STK_INSYNC);
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino: In function 'void read_signature()':
ArduinoISP:136: error: 'Serial' was not declared in this scope
#define SERIAL Serial
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:614:5: note: in expansion of macro 'SERIAL'
SERIAL.print((char) STK_NOSYNC);
^
ArduinoISP:136: error: 'Serial' was not declared in this scope
#define SERIAL Serial
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:617:3: note: in expansion of macro 'SERIAL'
SERIAL.print((char) STK_INSYNC);
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino: In function 'void avrisp()':
ArduinoISP:136: error: 'Serial' was not declared in this scope
#define SERIAL Serial
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:641:9: note: in expansion of macro 'SERIAL'
SERIAL.print((char) STK_INSYNC);
^
ArduinoISP:136: error: 'Serial' was not declared in this scope
#define SERIAL Serial
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:647:9: note: in expansion of macro 'SERIAL'
SERIAL.print((char) STK_NOSYNC);
^
ArduinoISP:136: error: 'Serial' was not declared in this scope
#define SERIAL Serial
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:708:7: note: in expansion of macro 'SERIAL'
SERIAL.print((char) STK_NOSYNC);
^
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino: In function 'uint8_t getch()':
/home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:302:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
In file included from /home/wbr5790/Desktop/arduino-1.8.5/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino:162:0:
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h: In static member function 'static uint8_t SPIClass::transfer(uint8_t)':
/home/wbr5790/Desktop/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src/SPI.h:219:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
exit status 1
'Serial' was not declared in this scope