ArduinoISP.ino: In function 'void spi_init()':ArduinoISP:159: error: 'SPCR' was not declared in this scopeArduinoISP:160: error: 'SPSR' was not declared in this scopeArduinoISP:161: error: 'SPDR' was not declared in this scopeArduinoISP.ino: In function 'void spi_wait()':ArduinoISP:167: error: 'SPSR' was not declared in this scopeArduinoISP:167: error: 'SPIF' was not declared in this scopeArduinoISP.ino: In function 'uint8_t spi_send(uint8_t)':ArduinoISP:172: error: 'SPDR' was not declared in this scope
Extended SPI library usage with the DueOn the Arduino Due, the SAM3X has advanced SPI capabilities. It is possible to use these extended methods, or the AVR-based ones.
So I should replace every instance of Serial with SerialUSB and then use the programming port to upload the sketch ArduinoISP, after that connect the DUE board to the native port and flash the sketch on the external uC?
Do you think I can use the onboard SPI 6 pins?
I observed a problem when stopping and restarting SPI.
I can't program nor run my attiny at 3V3, allthough according to the datasheet it should work
Has anybody similar experiences with the tiny's max ISP speed?
(I could have mis interpreted the data sheet).
Low: > 2 CPU clock cycles for fck < 12 MHz, 3 CPU clock cycles for fck >= 12 MHzHigh: > 2 CPU clock cycles for fck < 12 MHz, 3 CPU clock cycles for fck >= 12 MHz
I see no way to configure the Due for a slower SPI.
Just an idea.
I seem to remember reading something in the datasheet about whether the ISP polls for completion of a flash operation, or just waits until "probably" long enough before sending the next command.
Quote from: SirNickity on May 22, 2013, 08:57 pmJust an idea.A good idea.
I have never seen a problem with this on my AVR's but with the Due I want to be careful.