<?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[Is machine.deepsleep() possible with a Core 2?]]></title><description><![CDATA[<p dir="auto">I have a Core 2 for AWS but figured the base hardware is the same so this should apply to the Core 2 as well.</p>
<p dir="auto">When I tried to do a machine.deepsleep(10000) the device just goes into a boot loop.  It doesn't wait ten seconds.  Seems like it might be trying to go to sleep then immediately restarting.</p>
<p dir="auto">Anyone have deepsleep working on a Core 2 device?</p>
<p dir="auto">It definitely gets the deepsleep signal, this is what I see in the serial output</p>
<pre><code>rst:0x5 (DEEPSLEEP_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:5228
load:0x40078000,len:13424
load:0x40080400,len:3568
entry 0x4008063c

       _  __ _               
 _   _(_)/ _| | _____      __
| | | | | |_| |/ _ \ \ /\ / /
| |_| | |  _| | (_) \ V  V / 
 \__,_|_|_| |_|\___/ \_/\_/  
</code></pre>
]]></description><link>https://community.m5stack.com/topic/4486/is-machine-deepsleep-possible-with-a-core-2</link><generator>RSS for Node</generator><lastBuildDate>Sun, 03 May 2026 09:05:56 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4486.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 01 Aug 2022 21:57:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Is machine.deepsleep() possible with a Core 2? on Thu, 04 Aug 2022 13:16:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a> I think I found the issue; my deepsleep() call was inside a loop.  Moving it outside the loop sorted it out.</p>
]]></description><link>https://community.m5stack.com/post/18192</link><guid isPermaLink="true">https://community.m5stack.com/post/18192</guid><dc:creator><![CDATA[greenleaf]]></dc:creator><pubDate>Thu, 04 Aug 2022 13:16:40 GMT</pubDate></item><item><title><![CDATA[Reply to Is machine.deepsleep() possible with a Core 2? on Wed, 03 Aug 2022 18:43:29 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/greenleaf" aria-label="Profile: greenleaf">@<bdi>greenleaf</bdi></a></p>
<p dir="auto">works fine here with:</p>
<pre><code>from m5stack import *
from m5stack_ui import *
from uiflow import *
import machine

screen = M5Screen()
screen.clean_screen()
screen.set_screen_bg_color(0xFFFFFF)

machine.deepsleep(10000)
</code></pre>
<p dir="auto">When I run this code from UIFlow the screen goes white and after about 10 seconds M5Core2 restarts and connects back to UIFlow. Not sure why in your case it doesn't wait 10 seconds. Do you have the latest UIFlow firmware 1.10.2 installed on your M5Core2?</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/18185</link><guid isPermaLink="true">https://community.m5stack.com/post/18185</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 03 Aug 2022 18:43:29 GMT</pubDate></item></channel></rss>