<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Mega with Ethernet shield hangs on startup]]></title><description><![CDATA[<p dir="auto">Have a couple of each (2 mega's 2 shields), tried all four combinations with and without wireless module attached.</p>
<p dir="auto">They all seem to have the same problem on startup, they never return from the following line in Startup():</p>
<pre><code> "gw.begin(RF24_PA_LEVEL_GW, RF24_CHANNEL, RF24_DATARATE, writeEthernet);"
</code></pre>
<p dir="auto">I know theres a thread targetting the Mega as being unable to support the power requirements, but i find it odd that I can run a simplistic web server sketch and if I comment out the gw.begin() the ethernet controller script runs much further (albiet useless without the wireless...).</p>
<p dir="auto">It seems to be a common combination - i.e. Mega with ethernet shield and without the wireless attached it's not drawing any extra power..</p>
<p dir="auto">Any thoughts? I'm way out of my depth here. I can code but no real idea of the connectivity etc. that's used with Arduino's.</p>
<p dir="auto">i did spot this page: <a href="http://arduino.cc/en/Main/ArduinoEthernetShield" rel="nofollow ugc">http://arduino.cc/en/Main/ArduinoEthernetShield</a> which implies that with a Mega different IO pins are used, however that doesnt make sense to me (because the shield still fits over the same pins as the uno). However more interestingly it talks about the following:</p>
<p dir="auto">"On the Mega, the hardware SS pin, 53, is not used to select either the W5100 or the SD card, but it must be kept as an output or the SPI interface won't work."</p>
<p dir="auto">Assuming the pin numbers aren't changed does the comments about the SS pin point to a particular conflict with the gw.startup? I do have an unused SD card slot.</p>
<p dir="auto">I'm really keen to get this going, the extra memory space on the mega will be invaluable for my development.</p>
<p dir="auto">Atomic.</p>
]]></description><link>https://forum.mysensors.org/topic/455/mega-with-ethernet-shield-hangs-on-startup</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 12:04:47 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/455.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Oct 2014 00:08:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mega with Ethernet shield hangs on startup on Wed, 08 Oct 2014 01:55:35 GMT]]></title><description><![CDATA[<p dir="auto">Still digging away here, and confused by what I see as a conflict regarding the physical layout of the ethernet shield and the documentation when used with the Mega.</p>
<p dir="auto">The physical layout (<a href="http://shieldlist.org/arduino/ethernet-v5" rel="nofollow ugc">http://shieldlist.org/arduino/ethernet-v5</a> for example) clearly shows the range of connectivity, when combined with a mega (<a href="http://www.onemansanthology.com/images/arduino/Arduino-Mega-2560-with-ethernet-shield-1024.JPG" rel="nofollow ugc">http://www.onemansanthology.com/images/arduino/Arduino-Mega-2560-with-ethernet-shield-1024.JPG</a>). It's clear that the high end IO pins are not connected.</p>
<p dir="auto">The documentation however states that when combined with a Mega that the ethernet shield uses different IO pins for communication (<a href="http://arduino.cc/en/Main/ArduinoEthernetShield" rel="nofollow ugc">http://arduino.cc/en/Main/ArduinoEthernetShield</a>):</p>
<p dir="auto">"Arduino communicates with both the W5100 and SD card using the SPI bus (through the ICSP header). This is on digital pins 10, 11, 12, and 13 on the Uno <strong>and pins 50, 51, and 52 on the Mega</strong>. On both boards, pin 10 is used to select the W5100 and pin 4 for the SD card"</p>
<p dir="auto">How does the shield/mega combo achieve this? or is it simply a documentation flaw? and is it potentially the reason for the hanging I'm experiencing due to misconfiguration.?</p>
<p dir="auto">I'll play around tonight with the mega stated io pins to see if it works.</p>
]]></description><link>https://forum.mysensors.org/post/5374</link><guid isPermaLink="true">https://forum.mysensors.org/post/5374</guid><dc:creator><![CDATA[AtomicGrog]]></dc:creator><pubDate>Wed, 08 Oct 2014 01:55:35 GMT</pubDate></item><item><title><![CDATA[Reply to Mega with Ethernet shield hangs on startup on Sat, 04 Oct 2014 22:13:44 GMT]]></title><description><![CDATA[<p dir="auto">Trying to follow the thread behind that bug. Which combo worked for you in the end? It's all very confusing :(</p>
]]></description><link>https://forum.mysensors.org/post/5266</link><guid isPermaLink="true">https://forum.mysensors.org/post/5266</guid><dc:creator><![CDATA[AtomicGrog]]></dc:creator><pubDate>Sat, 04 Oct 2014 22:13:44 GMT</pubDate></item><item><title><![CDATA[Reply to Mega with Ethernet shield hangs on startup on Sat, 04 Oct 2014 07:00:20 GMT]]></title><description><![CDATA[<p dir="auto">Having similar problems here:</p>
<p dir="auto">TMRh20/RF24#24</p>
]]></description><link>https://forum.mysensors.org/post/5234</link><guid isPermaLink="true">https://forum.mysensors.org/post/5234</guid><dc:creator><![CDATA[hek]]></dc:creator><pubDate>Sat, 04 Oct 2014 07:00:20 GMT</pubDate></item></channel></rss>