<?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[Can&#x27;t enable external power on the PowerBus using the M5 Stack Core 2 using ESP-IDF.]]></title><description><![CDATA[<p dir="auto">We are using the M5 Core 2 that  has a stack layer with the SIM7600.</p>
<p dir="auto">We can't to power the M5 Core2 using the external power from the SIM7600 Layer.<br />
We are using the M5Unified libraries and are calling M5.Power.setExtPwr(true).</p>
<p dir="auto">When the USB isn't plugged in the device is constantly rebooting itself and making a ticking noise.</p>
<p dir="auto">We assume we have to enable the setPowerBus mode, but can't seem to get it working.</p>
<p dir="auto">How would we enable external power here?</p>
<p dir="auto">We are Using ESP-IDF as our build platform.</p>
]]></description><link>https://community.m5stack.com/topic/4901/can-t-enable-external-power-on-the-powerbus-using-the-m5-stack-core-2-using-esp-idf</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 03:54:30 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4901.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 16 Dec 2022 13:55:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Can&#x27;t enable external power on the PowerBus using the M5 Stack Core 2 using ESP-IDF. on Fri, 16 Dec 2022 15:47:15 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/oetzevandenbroek" aria-label="Profile: oetzevandenbroek">@<bdi>oetzevandenbroek</bdi></a></p>
<p dir="auto">I think you are close. Try <code>M5.Power.setExtPwr(false)</code>. Below is how it is defined:</p>
<pre><code>    /// Set power supply to external ports.
    /// @param enable true=output / false=input
    /// @param port_mask for M5Station. ext_port (bitmask).
    void setExtPower(bool enable, ext_port_mask_t port_mask = (ext_port_mask_t)0xFF);
</code></pre>
<p dir="auto">In your case you want to set it as input to the M5Core2.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/19573</link><guid isPermaLink="true">https://community.m5stack.com/post/19573</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 16 Dec 2022 15:47:15 GMT</pubDate></item></channel></rss>