Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 1 month ago.
Has anyone imported WebSwitch_ENC28J60 with success?
I imported WebSwitch_ENC28J60 into my online IDE using the Import button on that page, I am using a LPC1768 mbed board. I have a number of ENC38J60 ethernet modules that I have used with success on Arduinos, and thought it would be a good place to start with mbed.
So I go to build WebSwitch_ENC28J60 and get a lot of compile errors like "Warning: BeginPacket inherits implicit virtual in "UIPEthernet/UIPUdp.h", Line: 64, Col: 17" in file UIPUdp.h
and quite a few of the same from UIPClient.h
I admit that I am at a little bit of a loss with all of these errors, I hope I forgot to include a library or similar stupid mistake, hoping for an easy fix.
Can someone point me in the right direction for a solution to this?
Thanks wade
1 Answer
9 years, 11 months ago.
Hi Wade,
I've adapted the UIPEthernet library recently to work also with LPC1768 board. Also changed the WebSwitch_ENC28J60 application so it should compile now (with some warnings). Downloaded to my LPC1768 and it works.
Enjoy.
Zoltan Hudak
Hi Zoltan, I am trying to use your library but I cant lots of warning and error are there, my board is FRDM-K64F
posted by 07 Feb 2019Hello Vivek,
Try this example program. It should compile with no errors (athough lot of warnings) for FRDM-K64F after replacing the following two lines:
//... //Serial pc(PA_2, PA_3); Serial pc(D1, D0); //... //UIPEthernet uIPEthernet(PB_5, PB_4, PB_3, PA_10); // mosi, miso, sck, cs UIPEthernet uIPEthernet(D11, D12, D13, D10); // mosi, miso, sck, cs //...
Then use the following wiring:
FRDM-K64F | ENC28J60 module |
---|---|
5V | 5V |
GND | GND |
D11 | SI |
D12 | SO |
D13 | SCK |
D10 | CS |