Skip to content

ESP8266-12E with Ethernet lib (w5100) or enc28j60  #962

Closed
@funvill

Description

@funvill

Board: ESP8266-12E using a NodeMCU v1.0 dev board.
Library: ESP8266 Arduino library version: 1.6.5-947-g39819F0
IDE: Arduno 1.6.6 or visual studios with visual micro

I am following up on this issue closed but incomplete issue.
#574

I was able to alter the EthernetClass::begin function and compile.
#574 (comment)

But when the board runs i get the following error on the serial port.

Exception (28):
epc1=0x40204e27 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
ctx: cont 
sp: 3ffe9db0 end: 3ffea090 offset: 01a0
>>>stack>>>
3ffe9f50:  00000000 3ffe8ea0 3ffe8000 4020362c  
3ffe9f60:  00000000 00000000 00000000 00000000  
3ffe9f70:  3ffe9fa8 3ffe9fa0 3ffe9fb0 00000000  
3ffe9f80:  00000000 00000000 00000000 3ffea008  
3ffe9f90:  3ffea000 3ffe8ea0 3ffe8000 402036d8  
3ffe9fa0:  3ffe8ad0 00ffffff 3ffe8ad0 0101a8c0  
3ffe9fb0:  3ffe8ad0 0101a8c0 3ffe8ad0 b101a8c0  
3ffe9fc0:  3ffe8ad0 00ffffff 00000000 00000000  
3ffe9fd0:  3ffea010 00000000 00000000 00000000  
3ffe9fe0:  00000000 00000000 00000000 3ffea0bc  
3ffe9ff0:  3fffdc20 3ffe8ea0 3ffe9034 40203718  
3ffea000:  3ffe8ad0 0101a8c0 3ffe8ad0 0101a8c0  
3ffea010:  3ffe8ad0 b101a8c0 3ffe9034 0101a8c0  
3ffea020:  3ffe8b18 00000000 3ffe9034 40203742  
3ffea030:  3ffe8ad0 0101a8c0 3ffe8ad0 b101a8c0  
3ffea040:  00002580 0101a8c0 3ffe9034 4020631c  
3ffea050:  3fffdc20 00000000 3ffe9034 40201d40  
3ffea060:  3ffe8ad0 b101a8c0 00000000 00000000  
3ffea070:  00000000 00000000 3ffea0b4 40201863  
3ffea080:  00000000 00000000 3ffe9070 40100118  
<<<stack<<<

I added in some serial port debug messages and I have tracked down this exception to line 44 of the WebServer example.

Ethernet.begin(mac, ip);

I started breaking it down line by line by coping code out of the Ethernet.begin() function into the Arduino sketch and adding serial port debug messages.

W5100Class::init()

At this point its out of my depth and I am not sure where to go from here.

Should I keep trying to get the Ethernet lib (w5100) working with the ESP8266 chip or should I abandoned it?
Has anyone got this working with a different Ethernet chip?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions