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

Using pins 6-9 causes the Due to crash when using the Ethernet R3 shield and WebServer example #1539

Closed
SeanDS opened this issue Aug 13, 2013 · 2 comments
Assignees
Labels
Board: Arduino Due Applies only to the Due Component: Core Related to the code for the standard Arduino API Library: Ethernet The Ethernet Arduino library

Comments

@SeanDS
Copy link

SeanDS commented Aug 13, 2013

I'm using the Arduino Ethernet R3 shield with a Due board. The Ethernet shield uses the ICSP connector to communicate with the Due via the SPI socket on the Due, so it frees up pins 11, 12 and 13 for general I/O. Pin 10 is still used for chip select / slave select.

When I use the Ethernet and SPI libraries to set up a simple web server (basically the WebServer example but with an added function to set pins 2-13, excluding 10, to high, when a specific GET command is issued), setting any of pins 6-9 to high (via analogWrite(4095)) causes the web server to become unresponsive.

@SeanDS
Copy link
Author

SeanDS commented Aug 13, 2013

Ok, I've experimented further and found that the problem goes away when I use analogWrite(x) where x is between 0 and 255. I guess this isn't a serious bug then, but it's still a bug in my eyes. It's still possible to use analogWrite(4095) for pins 2-5 and 11-13 and not have any issues, but when you use analogWrite(4095) for any of pins 6-9 while using the Ethernet library you end up with issues. Very strange.

@agdl
Copy link
Member

agdl commented Feb 8, 2017

This issue was moved to arduino/ArduinoCore-sam#30

@agdl agdl closed this as completed Feb 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Board: Arduino Due Applies only to the Due Component: Core Related to the code for the standard Arduino API Library: Ethernet The Ethernet Arduino library
Projects
None yet
Development

No branches or pull requests

4 participants