Compile errors Ethernet Shield V2_0 W5200

Arduino: 1.6.5 (Linux), Board: “Arduino Uno”

/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/EthernetV2_0.cpp: In member function ‘void EthernetClass::begin(uint8_t*, IPAddress, IPAddress, IPAddress, IPAddress)’:
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/EthernetV2_0.cpp:64:39: error: no matching function for call to ‘W5100Class::setIPAddress(IPAddress::&)’
W5100.setIPAddress(local_ip._address);
^
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/EthernetV2_0.cpp:64:39: note: candidate is:
In file included from /home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/EthernetV2_0.cpp:1:0:
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/utility/w5200.h:410:6: note: void W5100Class::setIPAddress(uint8_t*)
void W5100Class::setIPAddress(uint8_t _addr) {
^
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/utility/w5200.h:410:6: note: no known conversion for argument 1 from ‘IPAddress::’ to 'uint8_t
{aka unsigned char*}’
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/EthernetV2_0.cpp:65:38: error: no matching function for call to ‘W5100Class::setGatewayIp(IPAddress::&)’
W5100.setGatewayIp(gateway._address);
^
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/EthernetV2_0.cpp:65:38: note: candidate is:
In file included from /home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/EthernetV2_0.cpp:1:0:
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/utility/w5200.h:386:6: note: void W5100Class::setGatewayIp(uint8_t*)
void W5100Class::setGatewayIp(uint8_t _addr) {
^
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/utility/w5200.h:386:6: note: no known conversion for argument 1 from ‘IPAddress::’ to 'uint8_t
{aka unsigned char*}’
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/EthernetV2_0.cpp:66:38: error: no matching function for call to ‘W5100Class::setSubnetMask(IPAddress::&)’
W5100.setSubnetMask(subnet._address);
^
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/EthernetV2_0.cpp:66:38: note: candidate is:
In file included from /home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/EthernetV2_0.cpp:1:0:
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/utility/w5200.h:394:6: note: void W5100Class::setSubnetMask(uint8_t*)
void W5100Class::setSubnetMask(uint8_t _addr) {
^
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/utility/w5200.h:394:6: note: no known conversion for argument 1 from ‘IPAddress::’ to 'uint8_t
{aka unsigned char*}’
Error compiling.

This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.

with the latest W5200 library download from github. any suggestions?

Even more information: these errors even happen with the sample sketch for DHCP . This is using the W5200 EthernetV2_0 library downloaded from github (2.4). Note this is using arduino 1.6.5 IDE.

Hardware board is W5200 V 2.2 (NOT 2.4!)

However, compile time errors happen independent of the board.

Errors:
Arduino: 1.6.5 (Linux), Board: “Arduino Uno”

/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/EthernetV2_0.cpp: In member function ‘void EthernetClass::begin(uint8_t*, IPAddress, IPAddress, IPAddress, IPAddress)’:
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/EthernetV2_0.cpp:64:39: error: no matching function for call to ‘W5100Class::setIPAddress(IPAddress::&)’
W5100.setIPAddress(local_ip._address);
^
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/EthernetV2_0.cpp:64:39: note: candidate is:
In file included from /home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/EthernetV2_0.cpp:1:0:
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/utility/w5200.h:410:6: note: void W5100Class::setIPAddress(uint8_t*)
void W5100Class::setIPAddress(uint8_t _addr) {
^
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/utility/w5200.h:410:6: note: no known conversion for argument 1 from ‘IPAddress::’ to 'uint8_t
{aka unsigned char*}’
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/EthernetV2_0.cpp:65:38: error: no matching function for call to ‘W5100Class::setGatewayIp(IPAddress::&)’
W5100.setGatewayIp(gateway._address);
^
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/EthernetV2_0.cpp:65:38: note: candidate is:
In file included from /home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/EthernetV2_0.cpp:1:0:
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/utility/w5200.h:386:6: note: void W5100Class::setGatewayIp(uint8_t*)
void W5100Class::setGatewayIp(uint8_t _addr) {
^
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/utility/w5200.h:386:6: note: no known conversion for argument 1 from ‘IPAddress::’ to 'uint8_t
{aka unsigned char*}’
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/EthernetV2_0.cpp:66:38: error: no matching function for call to ‘W5100Class::setSubnetMask(IPAddress::&)’
W5100.setSubnetMask(subnet._address);
^
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/EthernetV2_0.cpp:66:38: note: candidate is:
In file included from /home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/EthernetV2_0.cpp:1:0:
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/utility/w5200.h:394:6: note: void W5100Class::setSubnetMask(uint8_t*)
void W5100Class::setSubnetMask(uint8_t _addr) {
^
/home/dretz/arduino/arduino-1.6.5/libraries/EthernetV2_0/utility/w5200.h:394:6: note: no known conversion for argument 1 from ‘IPAddress::’ to 'uint8_t
{aka unsigned char*}’
Error compiling.

This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.

others seem to have gotten around this with the “latest” library, but this was downloaded from the github at:
… /Seeed-Studio/Ethernet_Shield_W5200 (would let me post with URL)

Any help would be most appreciated !
dretz

Same exact issues. Using W5200 shield. I used the readme instructions, replaced/ added the appropriate files. Still cant get the sketch to compile.

C:\Program Files (x86)\Arduino\libraries\Ethernet\src\Ethernet.cpp: In member function ‘int EthernetClass::begin(uint8_t*, long unsigned int, long unsigned int)’:

C:\Program Files (x86)\Arduino\libraries\Ethernet\src\Ethernet.cpp:19:24: error: ‘SPI_ETHERNET_SETTINGS’ was not declared in this scope

SPI.beginTransaction(SPI_ETHERNET_SETTINGS);

                    ^

C:\Program Files (x86)\Arduino\libraries\Ethernet\src\Ethernet.cpp: In member function ‘void EthernetClass::begin(uint8_t*, IPAddress, IPAddress, IPAddress, IPAddress)’:

C:\Program Files (x86)\Arduino\libraries\Ethernet\src\Ethernet.cpp:68:24: error: ‘SPI_ETHERNET_SETTINGS’ was not declared in this scope

SPI.beginTransaction(SPI_ETHERNET_SETTINGS);

                    ^

C:\Program Files (x86)\Arduino\libraries\Ethernet\src\Ethernet.cpp: In member function ‘int EthernetClass::maintain()’:

C:\Program Files (x86)\Arduino\libraries\Ethernet\src\Ethernet.cpp:89:30: error: ‘SPI_ETHERNET_SETTINGS’ was not declared in this scope

     SPI.beginTransaction(SPI_ETHERNET_SETTINGS);

                          ^

C:\Program Files (x86)\Arduino\libraries\Ethernet\src\Ethernet.cpp: In member function ‘IPAddress EthernetClass::localIP()’:

C:\Program Files (x86)\Arduino\libraries\Ethernet\src\Ethernet.cpp:107:24: error: ‘SPI_ETHERNET_SETTINGS’ was not declared in this scope

SPI.beginTransaction(SPI_ETHERNET_SETTINGS);

                    ^

C:\Program Files (x86)\Arduino\libraries\Ethernet\src\Ethernet.cpp: In member function ‘IPAddress EthernetClass::subnetMask()’:

C:\Program Files (x86)\Arduino\libraries\Ethernet\src\Ethernet.cpp:116:24: error: ‘SPI_ETHERNET_SETTINGS’ was not declared in this scope

SPI.beginTransaction(SPI_ETHERNET_SETTINGS);

                    ^

C:\Program Files (x86)\Arduino\libraries\Ethernet\src\Ethernet.cpp: In member function ‘IPAddress EthernetClass::gatewayIP()’:

C:\Program Files (x86)\Arduino\libraries\Ethernet\src\Ethernet.cpp:125:24: error: ‘SPI_ETHERNET_SETTINGS’ was not declared in this scope

SPI.beginTransaction(SPI_ETHERNET_SETTINGS);

Hello,

Could you please install Arduino IDE 1.6.4 and test this code again.

Let us know if you get the same errors.

Thanks and Regards