<?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: How to Put IMX6 solo in WFI mode in uboot.</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-Put-IMX6-solo-in-WFI-mode-in-uboot/m-p/477718#M75885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" class="font-color-normal" data-reactid=".ppm0bhnjls.0.0.0" href="https://community.nxp.com/people/mohamedthalibhaja"&gt;Mohamed,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; See following explanations, please !&lt;/P&gt;&lt;P&gt;(1) WFI mode is not supported in u-boot by default.&lt;/P&gt;&lt;P&gt;(2) ARM interrupt is not opened in u-boot by default.&lt;/P&gt;&lt;P&gt;So Interrupt from GPIO button to ARM core couldn't be responsed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you want to test WFI mode, you will have to do the following steps by yourself:&lt;/P&gt;&lt;P&gt;(1) Open ARM interrupt(set ARM core I bit)&lt;/P&gt;&lt;P&gt;(2) Configuring interrupt vector table.&lt;/P&gt;&lt;P&gt;(3) Configure GIC register by refering to GIC driver in Linux BSP.&lt;/P&gt;&lt;P&gt;(4) Open CONFIG_CMD_IRQ Macro in u-boot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Maybe there is no GICv2 initial code, you will have to add them by yourself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Above items are just probable steps for your request, we didn't debug corresponding source code, so you can try!&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Apr 2016 01:39:43 GMT</pubDate>
    <dc:creator>weidong_sun</dc:creator>
    <dc:date>2016-04-07T01:39:43Z</dc:date>
    <item>
      <title>How to Put IMX6 solo in WFI mode in uboot.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-Put-IMX6-solo-in-WFI-mode-in-uboot/m-p/477714#M75881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to Put IMX6 solo in WFI mode in uboot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to put the IMX6 solo processor in WFI interrupt mode, when there is not operation.&lt;/P&gt;&lt;P&gt;But when a button is pressed it should exit for WFI mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a command wfi which executes wfi asm instruction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14597799021659707" data-renderedposition="238_50_798_160" jivemacro_uid="_14597799021659707"&gt;&lt;P&gt;int do_wfi (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("Entering WFI mode\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __asm__ volatile("wfi");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("Exiting WFI mode\n");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;From command mode I am setting the registers to configure the interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For configuring GPIO as interrupt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mw.l 0x20AC010 0x100000 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mw.l 0x20AC014 0x100000 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mw.l 0x20AC018 0xFFFFFFFF 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set the mask on GIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mw.l 0x20DC010 0x800 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then run the command wfi on uboot command line, the processor appears to enter wfi mode , but not waking up from wif mode when the button is pressed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing any steps or is there any mistake. Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 14:26:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-Put-IMX6-solo-in-WFI-mode-in-uboot/m-p/477714#M75881</guid>
      <dc:creator>mohamedthalibha</dc:creator>
      <dc:date>2016-04-04T14:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to Put IMX6 solo in WFI mode in uboot.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-Put-IMX6-solo-in-WFI-mode-in-uboot/m-p/477715#M75882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohamed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please specify where are you setting the registers to configure the GPIO as interrupt? Are you properly configuring the button to generate a trigger? According with the snipped code, it seems that the interrupt service may be missing, so, the flag is not properly cleared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be useful for you.&lt;BR /&gt;Best regards!&lt;BR /&gt;/Carlos&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 17:23:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-Put-IMX6-solo-in-WFI-mode-in-uboot/m-p/477715#M75882</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2016-04-05T17:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to Put IMX6 solo in WFI mode in uboot.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-Put-IMX6-solo-in-WFI-mode-in-uboot/m-p/477716#M75883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am configuring the register from command line of uboot.&lt;/P&gt;&lt;P&gt;Yes there is no ISR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am entering below command to set the registers generate interrupt. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mw.l 0x20AC010 0x100000 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mw.l 0x20AC014 0x100000 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mw.l 0x20AC018 0xFFFFFFFF 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set the mask on GIC&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mw.l 0x20DC010 0x800 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though there is no ISR the processor should wake up from &lt;STRONG&gt;WFI&lt;/STRONG&gt; mode when a exception/interrupt happens. but it is not waking up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 05:54:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-Put-IMX6-solo-in-WFI-mode-in-uboot/m-p/477716#M75883</guid>
      <dc:creator>mohamedthalibha</dc:creator>
      <dc:date>2016-04-06T05:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to Put IMX6 solo in WFI mode in uboot.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-Put-IMX6-solo-in-WFI-mode-in-uboot/m-p/477717#M75884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any WFI implementation for UBoot from freescale, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 05:57:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-Put-IMX6-solo-in-WFI-mode-in-uboot/m-p/477717#M75884</guid>
      <dc:creator>mohamedthalibha</dc:creator>
      <dc:date>2016-04-06T05:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to Put IMX6 solo in WFI mode in uboot.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-Put-IMX6-solo-in-WFI-mode-in-uboot/m-p/477718#M75885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" class="font-color-normal" data-reactid=".ppm0bhnjls.0.0.0" href="https://community.nxp.com/people/mohamedthalibhaja"&gt;Mohamed,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; See following explanations, please !&lt;/P&gt;&lt;P&gt;(1) WFI mode is not supported in u-boot by default.&lt;/P&gt;&lt;P&gt;(2) ARM interrupt is not opened in u-boot by default.&lt;/P&gt;&lt;P&gt;So Interrupt from GPIO button to ARM core couldn't be responsed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you want to test WFI mode, you will have to do the following steps by yourself:&lt;/P&gt;&lt;P&gt;(1) Open ARM interrupt(set ARM core I bit)&lt;/P&gt;&lt;P&gt;(2) Configuring interrupt vector table.&lt;/P&gt;&lt;P&gt;(3) Configure GIC register by refering to GIC driver in Linux BSP.&lt;/P&gt;&lt;P&gt;(4) Open CONFIG_CMD_IRQ Macro in u-boot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Maybe there is no GICv2 initial code, you will have to add them by yourself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Above items are just probable steps for your request, we didn't debug corresponding source code, so you can try!&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 01:39:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-Put-IMX6-solo-in-WFI-mode-in-uboot/m-p/477718#M75885</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2016-04-07T01:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to Put IMX6 solo in WFI mode in uboot.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-Put-IMX6-solo-in-WFI-mode-in-uboot/m-p/477719#M75886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;SPAN class="jive-comment-meta font-color-meta-light"&gt;&lt;SPAN class="j-username-wrap"&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="201499" data-username="weidong.sun" href="https://community.nxp.com/people/weidong.sun"&gt;Weidong Sun&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;, &lt;/P&gt;&lt;P&gt;Will try your suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 05:49:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-Put-IMX6-solo-in-WFI-mode-in-uboot/m-p/477719#M75886</guid>
      <dc:creator>mohamedthalibha</dc:creator>
      <dc:date>2016-04-07T05:49:16Z</dc:date>
    </item>
  </channel>
</rss>

