Pages: [1]   Go Down
Author Topic: Unable to use Ethernet and SD at the same time on DUE, but on UNO it works fine  (Read 411 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I found a set of tutorials including this one at http://startingelectronics.com/tutorials/arduino/ethernet-shield-web-server-tutorial/SD-card-web-server/ and loaded it straight into a UNO, where it worked fine with a genuine Arduino Ethernet shield. If I load exactly the same code into a DUE, it does not work.

I tried adding some serial strings to help debug, and it looks like it runs the 'setup' routine fine, and starts the 'loop' routine ... but it never detects a client calling into it, so never replies.

Any ideas ?
Logged

Venezuela
Offline Offline
God Member
*****
Karma: 17
Posts: 522
Ground, ground, always ground
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello nakedsensor,
UNO and DUE have different micro-controllers (AVR and SAM3X), thus, internally they work also differentlyand use different libraries. Please, look at the following thread.

  http://forum.arduino.cc/index.php?PHPSESSID=i72gnopc96nc0rehg2698fphg1&topic=189348.msg1402905#msg1402905

There, in my reply #7 you will find a code that works OK for a DUE and an Ethernet shield. Good luck!
-P
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Palliser !

I may stick with the UNO for this project anyway, but at least I understand that it is not my fault !
Logged

Pages: [1]   Go Up
Jump to: