Страница 1 из 1

Arduino DUE + AVRISP = ?

Добавлено: Вт янв 28, 2014 21:03:50
nikmih98
Доброго времени суток, товарищи!
Приехало ко мне сие устройство... Ну я сразу же кинулся с попытками восстановить старую Фридуину, а скетч для данной хреновины не компилируется :cry: :cry:
Рассказываю вам свои ошибки при компиляции

Код: Выделить всё

ArduinoISP.ino: In function 'void spi_init()':
ArduinoISP:159: error: 'SPCR' was not declared in this scope
ArduinoISP:160: error: 'SPSR' was not declared in this scope
ArduinoISP:161: error: 'SPDR' was not declared in this scope
ArduinoISP.ino: In function 'void spi_wait()':
ArduinoISP:167: error: 'SPSR' was not declared in this scope
ArduinoISP:167: error: 'SPIF' was not declared in this scope
ArduinoISP.ino: In function 'uint8_t spi_send(uint8_t)':
ArduinoISP:172: error: 'SPDR' was not declared in this scope

Re: Arduino DUE + AVRISP = ?

Добавлено: Чт янв 30, 2014 20:49:19
nikmih98
Я надеюсь, что вы мне подскажете хотя бы, что такое эти самые переменные :))

Re: Arduino DUE + AVRISP = ?

Добавлено: Пт фев 14, 2014 23:19:20
Даниил2017
nikmih98 писал(а): а скетч для данной хреновины не компилируется :cry: :cry:
Рассказываю вам свои ошибки при компиляции

Код: Выделить всё

ArduinoISP.ino: In function 'void spi_init()':
ArduinoISP:159: error: 'SPCR' was not declared in this scope
ArduinoISP:160: error: 'SPSR' was not declared in this scope
ArduinoISP:161: error: 'SPDR' was not declared in this scope
ArduinoISP.ino: In function 'void spi_wait()':
ArduinoISP:167: error: 'SPSR' was not declared in this scope
ArduinoISP:167: error: 'SPIF' was not declared in this scope
ArduinoISP.ino: In function 'uint8_t spi_send(uint8_t)':
ArduinoISP:172: error: 'SPDR' was not declared in this scope
Исходники где?

Re: Arduino DUE + AVRISP = ?

Добавлено: Вт фев 18, 2014 14:57:24
nikmih98
Даниил2017 писал(а): Исходники где?
Исходник самый стандартный. Лежит в примерах в Arduino IDE

Re: Arduino DUE + AVRISP = ?

Добавлено: Вт фев 18, 2014 20:53:47
BCluster
это не переменные, а дефайны для spi. Видимо не подключен какой-то хидер