Pages: [1]   Go Down
Author Topic: SPI error while using WiFly shield on Arduino Due  (Read 408 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, I recently started with Arduino and now I want to add a WiFly shield to the Due.
When trying to run one of the demo applications (SpiUartTerminal) I got an error during the verification.
Code:
_Spi.cpp: In member function 'void SpiDevice::_initSpi()':
_Spi.cpp:62: error: 'SPCR' was not declared in this scope
_Spi.cpp:62: error: 'SPE' was not declared in this scope
_Spi.cpp:62: error: 'MSTR' was not declared in this scope
_Spi.cpp:62: error: 'SPR1' was not declared in this scope
_Spi.cpp:62: error: 'SPR0' was not declared in this scope
_Spi.cpp:63: error: 'SPSR' was not declared in this scope
_Spi.cpp:63: error: 'SPI2X' was not declared in this scope
_Spi.cpp: In member function 'byte SpiDevice::transfer(byte)':
_Spi.cpp:104: error: 'SPDR' was not declared in this scope
_Spi.cpp:105: error: 'SPSR' was not declared in this scope
_Spi.cpp:105: error: 'SPIF' was not declared in this scope

I assume it has to do with the fact that I am using the Due.

Any idea how to solve this error?

Thanks in advance,
Henk
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Almost certainly the Due has completely different register names. I'll move this thread to the Due section.
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 121
Posts: 8430
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, any code written using AVR-specific register names will not work on the Due, I don't know what "SpiUartTerminal" is but it obviously falls into that category.

_____
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Pages: [1]   Go Up
Jump to: