<?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[Core2 with PoE Base]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">I have just purchased myself a Core2 and a PoE Base. New to M5Stack but 5 years experience on ESP32's.</p>
<p dir="auto">I am battling to get the Core2 to "see" the W5500 on the PoE Base with no luck, I have tried the M5-Ethernet WebClient.ino and I keep seeing "Failed to configure Ethernet using DHCP, Ethernet shield was not found. Sorry can't run without hardware. :(</p>
<p dir="auto">What am I missing something? I am using the stock M5 Arduino library's, do I need to adjust some #define's?</p>
<p dir="auto">Thanking you in advance, any assistance will much appreciated.</p>
<p dir="auto">Regards<br />
Paul</p>
]]></description><link>https://community.m5stack.com/topic/5674/core2-with-poe-base</link><generator>RSS for Node</generator><lastBuildDate>Mon, 04 May 2026 07:27:44 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5674.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 27 Sep 2023 16:37:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Core2 with PoE Base on Thu, 28 Sep 2023 15:13:33 GMT]]></title><description><![CDATA[<p dir="auto">Just a heads up I can get this to work if I use M5Unified.h instead of M5Core2.h</p>
]]></description><link>https://community.m5stack.com/post/22355</link><guid isPermaLink="true">https://community.m5stack.com/post/22355</guid><dc:creator><![CDATA[PaulB]]></dc:creator><pubDate>Thu, 28 Sep 2023 15:13:33 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 with PoE Base on Thu, 28 Sep 2023 13:48:51 GMT]]></title><description><![CDATA[<p dir="auto">I have also tried just M5.begin(); same result as M5.begin(true, true, true, false, kmBusModeInput); where LCD briefly "flashes" (which appears like its trying initialize), internal Green Led flashes and both LCD and Green Led then go off, only difference is the speaker has a low volume "sequel" that is produced with just M5.begin(); the entire time there after, with the other M5.begin(.....) command the speaker is quiet.</p>
<p dir="auto">I can only get functionality from the Core2 if USB is plugged in.</p>
<p dir="auto">What should my setup look like?</p>
<p dir="auto">Here is my code so far... I don't know how to indicate code in a post, so sorry if this is not the correct way to do this.</p>
<p dir="auto">#include &lt;M5Core2.h&gt;<br />
#include &lt;SPI.h&gt;<br />
#include &lt;M5_Ethernet.h&gt;</p>
<p dir="auto">byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };<br />
char server[] = "<a href="http://www.google.com" target="_blank" rel="noopener noreferrer nofollow ugc">www.google.com</a>";    // name address for Google (using DNS)</p>
<p dir="auto">IPAddress ip(192, 168, 0, 177);<br />
IPAddress myDns(192, 168, 0, 1);</p>
<p dir="auto">EthernetClient client;</p>
<p dir="auto">void setup {<br />
M5.begin(true, true, true, false, kmBusModeInput);<br />
Ethernet.init(GPIO_NUM_26);<br />
M5.Lcd.setTextSize(2);<br />
M5.Lcd.setTextColor(TFT_WHITE, TFT_BLACK);<br />
M5.Lcd.println("Ethernet Test!");</p>
<p dir="auto">M5.Lcd.println("Initialize Ethernet with DHCP:");<br />
if (Ethernet.begin(mac) == 0) {<br />
M5.Lcd.println("Failed to configure Ethernet using DHCP");<br />
// Check for Ethernet hardware present<br />
if (Ethernet.hardwareStatus() == EthernetNoHardware) {<br />
M5.Lcd.println("Ethernet shield was not found.  Sorry, can't run without hardware. :(");<br />
while (true) {<br />
delay(1); // do nothing, no point running without Ethernet hardware<br />
}<br />
}<br />
if (Ethernet.linkStatus() == LinkOFF) {<br />
M5.Lcd.println("Ethernet cable is not connected.");<br />
}<br />
// try to congifure using IP address instead of DHCP:<br />
Ethernet.begin(mac, ip, myDns);<br />
} else {<br />
M5.Lcd.print("  DHCP assigned IP ");<br />
}<br />
// give the Ethernet shield a second to initialize:<br />
delay(1000);<br />
M5.Lcd.print("Connecting to ");<br />
M5.Lcd.print(server);<br />
M5.Lcd.println("...");</p>
<p dir="auto">// if you get a connection, report back via serial:<br />
if (client.connect(server, 80)) {<br />
M5.Lcd.print("Connected");<br />
} else {<br />
// if you didn't get a connection to the server:<br />
M5.Lcd.println("Connection failed");<br />
}</p>
<p dir="auto">}</p>
<p dir="auto">void loop() {</p>
<p dir="auto">}</p>
<p dir="auto">Is the sequence of commands critical?</p>
<p dir="auto">Is there a command to force the Axp to use MBus seeing that kmBusMode* is no longer used</p>
]]></description><link>https://community.m5stack.com/post/22352</link><guid isPermaLink="true">https://community.m5stack.com/post/22352</guid><dc:creator><![CDATA[PaulB]]></dc:creator><pubDate>Thu, 28 Sep 2023 13:48:51 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 with PoE Base on Thu, 28 Sep 2023 12:17:27 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/paulb" aria-label="Profile: PaulB">@<bdi>PaulB</bdi></a></p>
<p dir="auto">this should work automatically when you power from PoE exclusivly. The code (see <a href="https://github.com/m5stack/M5Core2/blob/master/src/AXP192.cpp#L66" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>) checks if external power (e.g. on the M5 bus) is available and switches to use that. (But I think that only works if USB wasn't already plugged in.)</p>
<p dir="auto">Note: kMBusMode* is no longer used.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/22347</link><guid isPermaLink="true">https://community.m5stack.com/post/22347</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 28 Sep 2023 12:17:27 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 with PoE Base on Thu, 28 Sep 2023 12:09:40 GMT]]></title><description><![CDATA[<p dir="auto">Next question...</p>
<p dir="auto">How do I force my Core2 to be powered only from the PoE Base, I have tried this and it still needs the USB cable plugged for a power source.</p>
<p dir="auto">M5.begin(true, true, true, false, kMBusModeInput);</p>
]]></description><link>https://community.m5stack.com/post/22345</link><guid isPermaLink="true">https://community.m5stack.com/post/22345</guid><dc:creator><![CDATA[PaulB]]></dc:creator><pubDate>Thu, 28 Sep 2023 12:09:40 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 with PoE Base on Thu, 28 Sep 2023 08:05:29 GMT]]></title><description><![CDATA[<p dir="auto">Thank you so much, it works</p>
]]></description><link>https://community.m5stack.com/post/22337</link><guid isPermaLink="true">https://community.m5stack.com/post/22337</guid><dc:creator><![CDATA[PaulB]]></dc:creator><pubDate>Thu, 28 Sep 2023 08:05:29 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 with PoE Base on Wed, 27 Sep 2023 20:57:11 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/paulb" aria-label="Profile: PaulB">@<bdi>PaulB</bdi></a></p>
<p dir="auto">I can get it to work when I include M5Core2.h at the top, set the correct CS pin and initialize the M5Core2 LCD, Serial etc. at the top of <code>setup()</code>, e.g.</p>
<pre><code>#include &lt;M5Core2.h&gt;
...
void setup() {
  Ethernet.init(GPIO_NUM_26);
  M5.begin();

//  // Open serial communications and wait for port to open:
//  Serial.begin(115200);
//  while (!Serial) {
//    ; // wait for serial port to connect. Needed for native USB port only
//  }
</code></pre>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/22330</link><guid isPermaLink="true">https://community.m5stack.com/post/22330</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 27 Sep 2023 20:57:11 GMT</pubDate></item></channel></rss>