<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: WinCE 6 + i.MX28: cannot clear AUTO_RESTART</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/WinCE-6-i-MX28-cannot-clear-AUTO-RESTART/m-p/235813#M18690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hi, how are you powering the system? Via battery or through the +5V/USB input? I believe if you are running from the 5V input you cannot shut the system down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used an external power switch controller IC that I can assert a "power kill" line that disconnects and latches off the power to shut down. It has a push button input to restart, or remove and reapply the main power.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not have a battery and my design is powered via the i.MX28 5V input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 May 2013 20:51:09 GMT</pubDate>
    <dc:creator>markwilliams</dc:creator>
    <dc:date>2013-05-13T20:51:09Z</dc:date>
    <item>
      <title>WinCE 6 + i.MX28: cannot clear AUTO_RESTART</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/WinCE-6-i-MX28-cannot-clear-AUTO-RESTART/m-p/235812#M18689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm using imx28 with wince. I need to be able to reboot and shutdown the system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm can reboot the system with no problems, using: KernelIoControl(IOCTL_HAL_REBOOT, NULL, 0, NULL, 0, NULL);&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However I'm having troubles shutting it down. I read power up sequence part of the RM, and aware of everything that makes system boot. I believe, that AUTO_RESTART is the only thing that makes system start. So I'm trying to clear it, and for some reason it doesn't clear. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a code that I'm using to shut it down (I'm shutting it down form the keypad driver):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HW_RTC_PERSISTENT0_SET(BM_RTC_PERSISTENT0_DISABLE_PSWITCH);&lt;/P&gt;&lt;P&gt;HW_RTC_PERSISTENT0_CLR(BM_RTC_PERSISTENT0_AUTO_RESTART);&lt;/P&gt;&lt;P&gt;Sleep(1000);&lt;/P&gt;&lt;P&gt;if (HW_RTC_PERSISTENT0_RD() &amp;amp; BM_RTC_PERSISTENT0_AUTO_RESTART) GREEN_LED();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else RED_LED();&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;Sleep(1000);&lt;/P&gt;&lt;P&gt;KernelIoControl(IOCTL_HAL_REBOOT, NULL, 0, NULL, 0, NULL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I'm trying to DISABLE_PSWITCH (even thou pin is pulled down to ground), then clear AUTO_RESATRT, then wait little bit, and check if AUTO_RESTART is set (and it is always set), then reboot. System always reboots after running this code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on why AUTO_RESTART is not being cleared (and how to clear it)? Oh how to shut the system down, otherwise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 20:01:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/WinCE-6-i-MX28-cannot-clear-AUTO-RESTART/m-p/235812#M18689</guid>
      <dc:creator>mmaaxx</dc:creator>
      <dc:date>2013-05-13T20:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: WinCE 6 + i.MX28: cannot clear AUTO_RESTART</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/WinCE-6-i-MX28-cannot-clear-AUTO-RESTART/m-p/235813#M18690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hi, how are you powering the system? Via battery or through the +5V/USB input? I believe if you are running from the 5V input you cannot shut the system down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used an external power switch controller IC that I can assert a "power kill" line that disconnects and latches off the power to shut down. It has a push button input to restart, or remove and reapply the main power.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not have a battery and my design is powered via the i.MX28 5V input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 20:51:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/WinCE-6-i-MX28-cannot-clear-AUTO-RESTART/m-p/235813#M18690</guid>
      <dc:creator>markwilliams</dc:creator>
      <dc:date>2013-05-13T20:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: WinCE 6 + i.MX28: cannot clear AUTO_RESTART</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/WinCE-6-i-MX28-cannot-clear-AUTO-RESTART/m-p/235814#M18691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark, thanks for the suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know about 5V (I user +5V to start the system - pretty much like a power on signal). And I'm trying to shutdown with the battery power only (I manually unplug 5V, before the shutdown). No RTC Alarms are set, pswitch is hard-wired to the ground. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My concern is inability to clear the persistent bit AUTO_RESTART. I know that it is set before the reboot, so it doesn't surprises me that the system reboots. However It surprises me that AUTO_RESTART remains set after attempt to clear it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 20:58:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/WinCE-6-i-MX28-cannot-clear-AUTO-RESTART/m-p/235814#M18691</guid>
      <dc:creator>mmaaxx</dc:creator>
      <dc:date>2013-05-13T20:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: WinCE 6 + i.MX28: cannot clear AUTO_RESTART</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/WinCE-6-i-MX28-cannot-clear-AUTO-RESTART/m-p/235815#M18692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deactivated user are you available to help on this case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 20:48:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/WinCE-6-i-MX28-cannot-clear-AUTO-RESTART/m-p/235815#M18692</guid>
      <dc:creator>karina_valencia</dc:creator>
      <dc:date>2013-05-16T20:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: WinCE 6 + i.MX28: cannot clear AUTO_RESTART</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/WinCE-6-i-MX28-cannot-clear-AUTO-RESTART/m-p/235816#M18693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figures the issue. I've been missing virtual to physical address mapping:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; static PVOID pv_HWregRTC = NULL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PHYSICAL_ADDRESS phyAddr;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; phyAddr.QuadPart = CSP_BASE_REG_PA_RTC;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pv_HWregRTC = (PVOID) MmMapIoSpace(phyAddr, 0x500, FALSE);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (pv_HWregRTC == NULL)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ERRORMSG(TRUE, (_T("MmMapIoSpace pv_HWregRTC failed!\r\n")));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this was added, everything worked fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 20:57:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/WinCE-6-i-MX28-cannot-clear-AUTO-RESTART/m-p/235816#M18693</guid>
      <dc:creator>mmaaxx</dc:creator>
      <dc:date>2013-05-16T20:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: WinCE 6 + i.MX28: cannot clear AUTO_RESTART</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/WinCE-6-i-MX28-cannot-clear-AUTO-RESTART/m-p/235817#M18694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 22:03:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/WinCE-6-i-MX28-cannot-clear-AUTO-RESTART/m-p/235817#M18694</guid>
      <dc:creator>karina_valencia</dc:creator>
      <dc:date>2013-05-16T22:03:17Z</dc:date>
    </item>
  </channel>
</rss>

