Problem with the ChipkitEthernet library using theDigilent MX7 Ck card

Post Reply
Murillo Garcia
Posts: 4
Joined: Thu Jun 29, 2017 11:17 pm

Problem with the ChipkitEthernet library using theDigilent MX7 Ck card

Post by Murillo Garcia » Thu Jun 29, 2017 11:24 pm

:) 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.

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Problem with the ChipkitEthernet library using theDigilent MX7 Ck card

Post by majenko » Fri Jun 30, 2017 10:30 am

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.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

Murillo Garcia
Posts: 4
Joined: Thu Jun 29, 2017 11:17 pm

Re: Problem with the ChipkitEthernet library using theDigilent MX7 Ck card

Post by Murillo Garcia » Fri Jun 30, 2017 1:17 pm

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

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Problem with the ChipkitEthernet library using theDigilent MX7 Ck card

Post by majenko » Fri Jun 30, 2017 1:45 pm

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/chipk ... ld_network - you can maybe get it going with that library instead.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

Murillo Garcia
Posts: 4
Joined: Thu Jun 29, 2017 11:17 pm

Re: Problem with the ChipkitEthernet library using theDigilent MX7 Ck card

Post by Murillo Garcia » Fri Jun 30, 2017 3:39 pm

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
Posts: 31
Joined: Mon Aug 14, 2017 4:28 pm
Location: UK

Re: Problem with the ChipkitEthernet library using theDigilent MX7 Ck card

Post by aabfm » Mon Aug 14, 2017 4:38 pm

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
Posts: 31
Joined: Mon Aug 14, 2017 4:28 pm
Location: UK

Re: Problem with the ChipkitEthernet library using theDigilent MX7 Ck card

Post by aabfm » Thu Aug 24, 2017 3:48 pm

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

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

So have a look there please.
Thx

Murillo Garcia
Posts: 4
Joined: Thu Jun 29, 2017 11:17 pm

Re: Problem with the ChipkitEthernet library using theDigilent MX7 Ck card

Post by Murillo Garcia » Thu Aug 24, 2017 5:30 pm

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

Post Reply