<?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[Only a power cycle works to reset]]></title><description><![CDATA[<p dir="auto">I have a Pysense with a FiPy installed.  It runs beautifully if I cycle power.  But if I interrupt my routine from Atom and then try a Ctrl-D or</p>
<pre><code>import machine  
machine.reset()
</code></pre>
<p dir="auto">but  neither will restart the routine.  It gets stuck in the library function for the <a href="http://MPL3115A2.py" target="_blank" rel="noopener noreferrer nofollow">MPL3115A2.py</a> routine.  I can CTRL-C and it instantly stops and responds.  Noting I do can restart my python code except a full power cycle which calls the routine in <a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow">main.py</a></p>
<p dir="auto">Why does power cycle work but machine.reset() not?</p>
]]></description><link>https://forum.pycom.io/topic/3000/only-a-power-cycle-works-to-reset</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Jul 2026 23:26:28 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/3000.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Apr 2018 04:36:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Only a power cycle works to reset on Mon, 09 Apr 2018 04:36:56 GMT]]></title><description><![CDATA[<p dir="auto">I have a Pysense with a FiPy installed.  It runs beautifully if I cycle power.  But if I interrupt my routine from Atom and then try a Ctrl-D or</p>
<pre><code>import machine  
machine.reset()
</code></pre>
<p dir="auto">but  neither will restart the routine.  It gets stuck in the library function for the <a href="http://MPL3115A2.py" target="_blank" rel="noopener noreferrer nofollow">MPL3115A2.py</a> routine.  I can CTRL-C and it instantly stops and responds.  Noting I do can restart my python code except a full power cycle which calls the routine in <a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow">main.py</a></p>
<p dir="auto">Why does power cycle work but machine.reset() not?</p>
]]></description><link>https://forum.pycom.io/post/18177</link><guid isPermaLink="true">https://forum.pycom.io/post/18177</guid><dc:creator><![CDATA[smbunn]]></dc:creator><pubDate>Mon, 09 Apr 2018 04:36:56 GMT</pubDate></item></channel></rss>