ENC28J60 on Netduino2Plus

Limited support for STM32F4 Discovery, Nucleo and custom F4 boards
danieleff
Posts: 130
Joined: Thu Sep 01, 2016 8:52 pm
Location: Hungary
Contact:

Re: ENC28J60 on Netduino2Plus

Postby danieleff » Thu Nov 24, 2016 1:30 pm

cassyarduino wrote:
cassyarduino wrote:The ethercard's readme.md say:"Hardware: Non-AVR boards are NOT currently supported (101/Zero/Due) #211"

The UIPEthernet supports: DHCP,DNS,UDP,TCP,ARP,ICMP.

My modified UIPEthernet supported more MCUs:AVR arduinos, STM32F MCU-s, ESP8266 MCU.
I already tested (modified UIPEthernet) on arduino nano, and maple mini (STM32F103CBT),
i will wiring ESP8266 with ENC28j60, and i will test it. (You can compile UIPEthernet to ESP8266 now, but i not tested yet on this hardware.)


Hi!

I tested the hardware and software on ESP8266.
The hardware:
Direct connecting between ESP-07, and ENC28j60 module doesn't working.
On ESP8266 the SPI SS/CS pin shared with boot configuration pin GPIO15.
For booting from SPI flash the GPIO15 must pull down to GND.
The ENC28j60 SS/CS pin pulled up to 3,3V.
I will try two BS170 FET as open collector line driver, or bus driver IC.

The software:
The UIPEthernet software doesn't working properly if can't communicate with ethernet device(ENC28j60).
The ESP8266 multitasking enviroment is not easy too (watchdog resets).
I will add error detection, and bypass algoritmus to the code.

Best Regards


Use a different pin on ESP8266 for CS, not GPIO15. Generally any pin can be used as cable select.

cassyarduino
Posts: 15
Joined: Tue Nov 08, 2016 12:52 pm
Location: Hungary

Re: ENC28J60 on Netduino2Plus

Postby cassyarduino » Thu Nov 24, 2016 3:57 pm

danieleff wrote:
Use a different pin on ESP8266 for CS, not GPIO15. Generally any pin can be used as cable select.


Ok. I will try, but GPIO15 with two fet tested already.
"Not-default" SS pin didn't working anytime for me (e.g.:atmega2560).
But maybe i was/am lamer.

I want create wiring too for easy usage with default settings.

User avatar
zoomx
Posts: 366
Joined: Mon Apr 27, 2015 2:28 pm
Location: Mt.Etna, Italy

Re: ENC28J60 on Netduino2Plus

Postby zoomx » Sun Dec 04, 2016 6:45 pm

After installing the UIPEthernet library I get this error on Arduino IDE

Code: Select all

Invalid version found: 1.04


Open library.properties file and change version from 1.04 to 1.0.4

There is a pull request about this in the original repo and an issue in Arduino repo to change the error message in something useful adding the library name to the message.

cassyarduino
Posts: 15
Joined: Tue Nov 08, 2016 12:52 pm
Location: Hungary

Re: ENC28J60 on Netduino2Plus

Postby cassyarduino » Mon Dec 05, 2016 2:23 pm

ESP8266 wiring with ENC28j60 completed.
I uploaded to:https://github.com/UIPEthernet/UIPEthernet/blob/master/hardware/ESP8266_enc28j60_wiring.PNG

The code doesn't full tested yet.
I will correct this "version bug" also.
Coming soon I commit the code changes.

cassyarduino
Posts: 15
Joined: Tue Nov 08, 2016 12:52 pm
Location: Hungary

Re: ENC28J60 on Netduino2Plus

Postby cassyarduino » Thu Dec 08, 2016 2:51 pm

Hi All!

I uploaded modified UIPEthernet library to https://github.com/UIPEthernet/UIPEthernet
I modified the following:
- Set the version to 1.1.0
(This version tested on ESP8266 too. Working properly. Without watchdog resets.)
- Correct ESP8266 exception(28).
- Add watchdog reset calls in functions for stable running on ESP8266.
- Add geterevid function to get ENC28j60 chip erevid (revision information).
- Change linkStatus to static for outside call.
- Add functions bypass, if can't communicate with ethernet device.
- Add SPI bus instabil communication detection.
- Change debuging/logging. Remove individual debuging. Add global and scalable debuging feature.
You can setup debuging/logging level in utility/logging.h
You can use this header file in Your scetch too.
Add "LogObject" define for serial logging/debuging with board specific default setting.

Best Regards

User avatar
zoomx
Posts: 366
Joined: Mon Apr 27, 2015 2:28 pm
Location: Mt.Etna, Italy

Re: ENC28J60 on Netduino2Plus

Postby zoomx » Fri Dec 09, 2016 9:18 am

I hope that I wil find time to check it!

Thanks!

cassyarduino
Posts: 15
Joined: Tue Nov 08, 2016 12:52 pm
Location: Hungary

Re: ENC28J60 on Netduino2Plus

Postby cassyarduino » Thu Dec 15, 2016 3:40 pm

Hi All!

I added support to MBED/SMeshStudio IDE.
Compiled to STM32F103RB (Nucleo).
You can download from:https://github.com/UIPEthernet/UIPEthernet

Best Regards

anass
Posts: 2
Joined: Thu Mar 02, 2017 8:41 am

Re: ENC28J60 on Netduino2Plus

Postby anass » Thu Mar 02, 2017 9:04 am

hi everyone
sorry for bothring you all. i'm trying to connect my STM32L152 to a network using enc28j60, i can get the MAC address, but can't get the IP address.
i used the ARP_req but i didn't see it in Wireshark. i'm using the EtherSield library. pleas help me

cassyarduino
Posts: 15
Joined: Tue Nov 08, 2016 12:52 pm
Location: Hungary

Re: ENC28J60 on Netduino2Plus

Postby cassyarduino » Thu Mar 02, 2017 10:05 am

Hi!

Can You try this library: https://github.com/UIPEthernet/UIPEthernet ?

Best Regards

anass wrote:hi everyone
sorry for bothring you all. i'm trying to connect my STM32L152 to a network using enc28j60, i can get the MAC address, but can't get the IP address.
i used the ARP_req but i didn't see it in Wireshark. i'm using the EtherSield library. pleas help me

anass
Posts: 2
Joined: Thu Mar 02, 2017 8:41 am

Re: ENC28J60 on Netduino2Plus

Postby anass » Thu Mar 02, 2017 10:46 am

[quote="cassyarduino"]Hi!

Can You try this library: https://github.com/UIPEthernet/UIPEthernet ?

Best Regards

hi
thanks for your quick reply
i'm using a library i think it's completed. i got my MAC address, but i don't know how to use the library to get my ip adress.
thanks


Return to “STM32F4 Boards”

Who is online

Users browsing this forum: martinayotte and 1 guest