chipKIT® Development Platform

Inspired by Arduino™

Problem with the ChipkitEthernet library using theDigilent MX7 Ck card

Created Thu, 29 Jun 2017 22:24:05 +0000 by Murillo Garcia


Murillo Garcia

Thu, 29 Jun 2017 22:24:05 +0000

:) Hello Guys!

I hope you can help me with some doubts.

I am programming the Digilent card to use with internet, however the library the Chipkitethernet library is showing the following errors:

Some time ago I had compiled this code in MPIDE and it worked, but I changed the computer and lost the libraries and MPIDE. Now I'm having this error.

In file included from program_murilo.cpp:3:0: C:\Users\LSI\Documents\mpide\program_murilo/chipKITEthernet.h:109:18: error: conflicting return type specified for 'virtual void Client::write(uint8_t)' C:\Users\LSI\Desktop\Murillo Gentil\mpide\mpide-0150\hardware\pic32\cores\pic32/Print.h:48:20: error: overriding 'virtual size_t Print::write(uint8_t)' C:\Users\LSI\Documents\mpide\program_murilo/chipKITEthernet.h:111:18: error: conflicting return type specified for 'virtual void Client::write(const uint8_t*, size_t)' C:\Users\LSI\Desktop\Murillo Gentil\mpide\mpide-0150\hardware\pic32\cores\pic32/Print.h:53:20: error: overriding 'virtual size_t Print::write(const uint8_t*, size_t)' C:\Users\LSI\Documents\mpide\program_murilo/chipKITEthernet.h:147:16: error: conflicting return type specified for 'virtual void Server::write(uint8_t)' C:\Users\LSI\Desktop\Murillo Gentil\mpide\mpide-0150\hardware\pic32\cores\pic32/Print.h:48:20: error: overriding 'virtual size_t Print::write(uint8_t)' C:\Users\LSI\Documents\mpide\program_murilo/chipKITEthernet.h:149:16: error: conflicting return type specified for 'virtual void Server::write(const uint8_t*, size_t)' C:\Users\LSI\Desktop\Murillo Gentil\mpide\mpide-0150\hardware\pic32\cores\pic32/Print.h:53:20: error: overriding 'virtual size_t Print::write(const uint8_t*, size_t)'

somebody coud help me?

Regards.


majenko

Fri, 30 Jun 2017 09:30:10 +0000

Where from, and how long ago, did you download the library?

Also I think that library isn't supported any more. The chipKIT Core comes with DEIPcK that is the current incarnation of the networking stack.


Murillo Garcia

Fri, 30 Jun 2017 12:17:08 +0000

Hello, the library downloaded the following site: Https://github.com/majenkotech/chipKITEthernet

It's been a little over a month since I'm trying to use it.

I needed this library to work, because my code is all in function of such a library.

Could you tell me where I could get a compatible library or some solution so I do not have to change the code?

Thank you


majenko

Fri, 30 Jun 2017 12:45:48 +0000

That is ancient code. Really ancient. I haven't touched that for 4 years, and the Arduino API has changed lots in that time.

It was basically a copy and adjustment of the code found on here: https://reference.digilentinc.com/chipkit_shield_network:chipkit_shield_network - you can maybe get it going with that library instead.


Murillo Garcia

Fri, 30 Jun 2017 14:39:33 +0000

Hello, through the link you sent get the chipkit ethernet library and with that all the errors were solved.

The code worked !! Thanks for all the help !!!!!


aabfm

Mon, 14 Aug 2017 15:38:33 +0000

Hi, I'm having a similar kind of problem, but being a newbie this is even harder. I've just bought a second hand mx7ck board as I have an idea to send/grab data to/from a MySQL database. Right now I'm just starting to try the board and the first test would be the webclient example but I'm having a real nightmare trying to, at least, compile it. I've followed all the steps, changing mac address, ip, subnet and mask to the correct ones but it doesn't even compile. Right now I got to the point of having an error where it requests it says: "plib.h: No such file or directory". I have also followed the steps for installing everything from scratch but nothing... Can you help me? Thanks in advance.


aabfm

Thu, 24 Aug 2017 14:48:13 +0000

Hi, This discussion was pretty much the same 'flavour' of this one

chipkit mx7ck calling "hello world" from webserver [url]http://chipkit.net/forum/viewtopic.php?f=17&t=3814[/url]

So have a look there please. Thx


Murillo Garcia

Thu, 24 Aug 2017 16:30:35 +0000

Hello friend, I had the same problem ...

I think your problem is in library compatibility.

At the link shown above, we have a library that can solve your problem. Any questions leave your email that I will contact


sundar@19

Sat, 28 Nov 2020 10:35:31 +0000

Hi , I use the chipKIT Network Shield™ MAX32 I tried in both mpide and arduino ide , i took the driver code from digilent website please help!!

In file included from C:\Users\sundar krishna\OneDrive\Documents\mpide\libraries\chipKITEthernet\examples\ChipKITWebClient\ChipKITWebClient.ino:1:0:

C:\Users\sundar krishna\OneDrive\Documents\mpide\libraries\chipKITEthernet\chipKITEthernet.h:109:18: error: conflicting return type specified for 'virtual void Client::write(uint8_t)'

 virtual void write(uint8_t);

              ^

In file included from C:\Users\sundar krishna\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.1.0\cores\pic32/HardwareSerial.h:53:0,

             from C:\Users\sundar krishna\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.1.0\cores\pic32/WProgram.h:23,

             from C:\Users\sundar krishna\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.1.0\cores\pic32/Arduino.h:4,

             from sketch\ChipKITWebClient.ino.cpp:1:

C:\Users\sundar krishna\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.1.0\cores\pic32/Print.h:49:20: error: overriding 'virtual size_t Print::write(uint8_t)'

 virtual size_t write(uint8_t) = 0;

                ^

In file included from C:\Users\sundar krishna\OneDrive\Documents\mpide\libraries\chipKITEthernet\examples\ChipKITWebClient\ChipKITWebClient.ino:1:0:

C:\Users\sundar krishna\OneDrive\Documents\mpide\libraries\chipKITEthernet\chipKITEthernet.h:111:18: error: conflicting return type specified for 'virtual void Client::write(const uint8_t*, size_t)'

 virtual void write(const uint8_t *buf, size_t size);

              ^

In file included from C:\Users\sundar krishna\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.1.0\cores\pic32/HardwareSerial.h:53:0,

             from C:\Users\sundar krishna\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.1.0\cores\pic32/WProgram.h:23,

             from C:\Users\sundar krishna\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.1.0\cores\pic32/Arduino.h:4,

             from sketch\ChipKITWebClient.ino.cpp:1:

C:\Users\sundar krishna\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.1.0\cores\pic32/Print.h:54:20: error: overriding 'virtual size_t Print::write(const uint8_t*, size_t)'

 virtual size_t write(const uint8_t *buffer, size_t size);

                ^

In file included from C:\Users\sundar krishna\OneDrive\Documents\mpide\libraries\chipKITEthernet\examples\ChipKITWebClient\ChipKITWebClient.ino:1:0:

C:\Users\sundar krishna\OneDrive\Documents\mpide\libraries\chipKITEthernet\chipKITEthernet.h:147:16: error: conflicting return type specified for 'virtual void Server::write(uint8_t)'

virtual void write(uint8_t);

            ^

In file included from C:\Users\sundar krishna\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.1.0\cores\pic32/HardwareSerial.h:53:0,

             from C:\Users\sundar krishna\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.1.0\cores\pic32/WProgram.h:23,

             from C:\Users\sundar krishna\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.1.0\cores\pic32/Arduino.h:4,

             from sketch\ChipKITWebClient.ino.cpp:1:

C:\Users\sundar krishna\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.1.0\cores\pic32/Print.h:49:20: error: overriding 'virtual size_t Print::write(uint8_t)'

 virtual size_t write(uint8_t) = 0;

                ^

In file included from C:\Users\sundar krishna\OneDrive\Documents\mpide\libraries\chipKITEthernet\examples\ChipKITWebClient\ChipKITWebClient.ino:1:0:

C:\Users\sundar krishna\OneDrive\Documents\mpide\libraries\chipKITEthernet\chipKITEthernet.h:149:16: error: conflicting return type specified for 'virtual void Server::write(const uint8_t*, size_t)'

virtual void write(const uint8_t *buf, size_t size);

            ^

In file included from C:\Users\sundar krishna\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.1.0\cores\pic32/HardwareSerial.h:53:0,

             from C:\Users\sundar krishna\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.1.0\cores\pic32/WProgram.h:23,

             from C:\Users\sundar krishna\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.1.0\cores\pic32/Arduino.h:4,

             from sketch\ChipKITWebClient.ino.cpp:1:

C:\Users\sundar krishna\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.1.0\cores\pic32/Print.h:54:20: error: overriding 'virtual size_t Print::write(const uint8_t*, size_t)'

 virtual size_t write(const uint8_t *buffer, size_t size);

                ^

exit status 255 Error compiling for board chipKIT MAX32.


majenko

Sat, 28 Nov 2020 11:55:34 +0000

The problem here is that Digilent haven't updated their library to work with the current Arduino API (or any Arduino API since 1.0.0). The library needs re-writing so that the Print class inherited functions return the correct type - i.e., an int instead of a void. Especially the write function.

chipKIT, though, comes with a different set of network libraries built in that do work (although are rather cryptic and difficult to use it has to be said). Check out the DEIPcK and IM8720PHY libraries.


sundar@19

Sat, 28 Nov 2020 13:33:02 +0000

Sir,

// / Supported hardware: / / / / MX7cK / / / //

DEIPcK says the supported hardware is MX7ck , can I use this code for max32 chipkit network shield?


majenko

Sat, 28 Nov 2020 14:34:27 +0000

Yes, you can. What matters is not the board, but what chips are used. The MAX32 uses the same MCU as the MX7cK. The Ethernet shield uses the same IM8720 Ethernet PHY chip as the MX7cK.


sundar@19

Sat, 28 Nov 2020 14:53:40 +0000

Thank you so much sir!!


sundar@19

Mon, 30 Nov 2020 10:15:49 +0000

Sir, I would like to know that if there are any libraries for CAN protocol by chipkit! Because I searched all standard libraries in arduino and could not find any libraries for chipkit network shield supporting CAN in specific! Thank you


majenko

Mon, 30 Nov 2020 16:41:38 +0000

I have no idea. CAN is not something I have ever looked at.


sundar@19

Tue, 01 Dec 2020 02:13:26 +0000

Thank you sir!