Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with esp8266 #352

Closed
chuyrg opened this issue Jan 10, 2019 · 3 comments
Closed

Not working with esp8266 #352

chuyrg opened this issue Jan 10, 2019 · 3 comments

Comments

@chuyrg
Copy link

chuyrg commented Jan 10, 2019

Hi, i've been trying to get this library working on a nodemcu board (esp8266) connected to a enc28j60, but it keeps resetting at startup.
I've read that the default cs pin makes this happen if there is a 10k pull up resistor on it, but my enc28j60 board doesn't have any.
I've also tried using a esp32 with some minor modifications to the library, but i can't get it to work on either.
Do i have to have a specific version of the esp8266 arduino core?, i'm currently using the 2.4.2 version.
Edit: forgot to add the output, currently trying the pings example:

[pings]

Soft WDT reset

ctx: cont
sp: 3ffffd30 end: 3fffffd0 offset: 01b0

stack>>>
3ffffee0: feefeffe feefeffe feefeffe feefeffe
3ffffef0: feefeffe feefeffe feefeffe feefeffe
3fffff00: feefeffe feefeffe feefeffe feefeffe
3fffff10: 40100f32 00000001 00000005 40106569
3fffff20: 40100fee 00000001 00000005 40106569
3fffff30: 00000003 ea000000 3ffeeb84 40203004
3fffff40: 00000005 ea000000 3ffeeb84 402031e7
3fffff50: 000000ff 3ffeeada 00000060 402030b6
3fffff60: 00000005 00000005 000000ea 4020320c
3fffff70: 00000005 00000005 3ffeeb00 4020335a
3fffff80: 3ffe8980 000002bc 3ffeeb00 40203619
3fffff90: 3ffe84dc 0000001c 3ffeecc4 40204c28
3fffffa0: 3fffdad0 00000000 3ffeecc4 40202777
3fffffb0: feefeffe feefeffe 3ffeec7c 4020483c
3fffffc0: feefeffe feefeffe 3ffe860c 401000e5
<<<stack<<<

ets Jan 8 2013,rst cause:2, boot mode:(1,6)

ets Jan 8 2013,rst cause:4, boot mode:(1,6)

wdt reset

Second edit:
I'm sorry, i didn't realize i was not on the correct github.

@njh
Copy link
Owner

njh commented Jan 10, 2019

Sorry but EtherCard does not currently work on non-AVR processors (ESP8266 is not AVR)

Requirements
Hardware: Only AVR-based microcontrollers are supported, such as:
Arduino Uno
Arduino Mega
Arduino Leonardo
Arduino Nano/Pro/Fio/Pro-mini/LiliPad/Duemilanove
Any other Arduino clone using an AVR microcontroller should work
Hardware: Non-AVR boards are NOT currently supported (101/Zero/Due)

I did do a bit of work on adding support for other architectures in Pull Request #335 - switching to using the Arduino SPI library. There might be a couple other things that need to be fixed for it to run on non-AVR.

@chuyrg
Copy link
Author

chuyrg commented Jan 10, 2019

Yeah, sorry i posted this here, i thought i wa slooking into the ethercard_ESP github, which is supposed to work with the esp8266.

@njh
Copy link
Owner

njh commented Jan 10, 2019

Ok, closing this issue.

But I hope to add support for esp8266 at some point.

@njh njh closed this as completed Jan 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants