<?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>topic IMX8QXP,How to set gpio by register in Digital Signal Controllers</title>
    <link>https://community.nxp.com/t5/Digital-Signal-Controllers/IMX8QXP-How-to-set-gpio-by-register/m-p/722577#M1158</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ALL,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/472473" style="color: #5e89c1; background-color: #ffffff; border: 0px; text-decoration: underline; font-size: 14px;"&gt;IMX8QXP,&lt;/A&gt;&amp;nbsp;How to set&amp;nbsp;by register,for example GPIO1_20.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; by datasheet:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;7.2.2.3.2 GPIO Write Mode&lt;BR /&gt;The programming sequence for driving output signals should be as follows:&lt;BR /&gt;1. Configure IOMUX to select GPIO mode (Via IOMUXC), also enable SION if need&lt;BR /&gt;to read loopback pad value through PSR&lt;BR /&gt;2. Configure GPIO direction register to output (GPIO_GDIR[GDIR] set to 1b).&lt;BR /&gt;3. Write value to data register (GPIO_DR).&lt;BR /&gt;A pseudocode description to drive 4'b0101 on [output3:output0] is as follows:&lt;BR /&gt;// SET PADS TO GPIO MODE VIA IOMUX. &lt;BR /&gt;i.MX 8DualXPlus/8QuadXPlus Applications Processor Reference Manual, Rev. A, 6/2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write sw_mux_ctl_pad_&amp;lt;output[0-3]&amp;gt;.mux_mode, &amp;lt;GPIO_MUX_MODE&amp;gt;&lt;BR /&gt;// Enable loopback so we can capture pad value into PSR in output mode &lt;BR /&gt;write sw_mux_ctl_pad_&amp;lt;output[0-3]&amp;gt;.sion, 1&lt;BR /&gt;// SET GDIR=1 TO OUTPUT BITS. &lt;BR /&gt;write GDIR[31:4,output3_bit,output2_bit, output1_bit, output0_bit,] 32'hxxxxxxxF&lt;BR /&gt;// WRITE OUTPUT VALUE=4’b0101 TO DR. &lt;BR /&gt;write DR, 32'hxxxxxxx5&lt;BR /&gt;// READ OUTPUT VALUE FROM PSR ONLY. &lt;BR /&gt;read_cmp PSR, 32'hxxxxxxx5&lt;BR /&gt;General Purpose Input/Output (GPIO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to configure&amp;nbsp;SC_P_FLEXCAN2_TX to GPIO,&amp;nbsp; now ,I found how to config&amp;nbsp;GPIO_DR&amp;nbsp;GPIO_GDIR&amp;nbsp;GPIO_PSR,&amp;nbsp;&lt;/P&gt;&lt;P&gt;as follow code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;base: 0x5D09_0000&lt;/P&gt;&lt;P&gt;GPIO_DR addr:0x5D090000 value:0x5C16600D&lt;/P&gt;&lt;P&gt;GPIO_GDIR addr:0x5D090004 value:0x1C156000&lt;/P&gt;&lt;P&gt;GPIO_PSR addr:0x5D090008 value:0x5C16600D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I can not find the&amp;nbsp;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;IOMUXC control register address? could you help me ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;by the IMX8DQXPRM_Rev_A.pdf datasheet ,I try to access the iomux base , but have these error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;135|@nutshell:/ # ./var/memtool -r 0x33F80000 0x0&lt;BR /&gt;[ 2384.218394] Unhandled fault: synchronous external abort (0x92000210) at 0x0000ffff9e21c000&lt;BR /&gt;Bus error&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;why? who can tell me ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 May 2018 03:14:03 GMT</pubDate>
    <dc:creator>shalanyang</dc:creator>
    <dc:date>2018-05-04T03:14:03Z</dc:date>
    <item>
      <title>IMX8QXP,How to set gpio by register</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/IMX8QXP-How-to-set-gpio-by-register/m-p/722577#M1158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ALL,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/472473" style="color: #5e89c1; background-color: #ffffff; border: 0px; text-decoration: underline; font-size: 14px;"&gt;IMX8QXP,&lt;/A&gt;&amp;nbsp;How to set&amp;nbsp;by register,for example GPIO1_20.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; by datasheet:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;7.2.2.3.2 GPIO Write Mode&lt;BR /&gt;The programming sequence for driving output signals should be as follows:&lt;BR /&gt;1. Configure IOMUX to select GPIO mode (Via IOMUXC), also enable SION if need&lt;BR /&gt;to read loopback pad value through PSR&lt;BR /&gt;2. Configure GPIO direction register to output (GPIO_GDIR[GDIR] set to 1b).&lt;BR /&gt;3. Write value to data register (GPIO_DR).&lt;BR /&gt;A pseudocode description to drive 4'b0101 on [output3:output0] is as follows:&lt;BR /&gt;// SET PADS TO GPIO MODE VIA IOMUX. &lt;BR /&gt;i.MX 8DualXPlus/8QuadXPlus Applications Processor Reference Manual, Rev. A, 6/2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write sw_mux_ctl_pad_&amp;lt;output[0-3]&amp;gt;.mux_mode, &amp;lt;GPIO_MUX_MODE&amp;gt;&lt;BR /&gt;// Enable loopback so we can capture pad value into PSR in output mode &lt;BR /&gt;write sw_mux_ctl_pad_&amp;lt;output[0-3]&amp;gt;.sion, 1&lt;BR /&gt;// SET GDIR=1 TO OUTPUT BITS. &lt;BR /&gt;write GDIR[31:4,output3_bit,output2_bit, output1_bit, output0_bit,] 32'hxxxxxxxF&lt;BR /&gt;// WRITE OUTPUT VALUE=4’b0101 TO DR. &lt;BR /&gt;write DR, 32'hxxxxxxx5&lt;BR /&gt;// READ OUTPUT VALUE FROM PSR ONLY. &lt;BR /&gt;read_cmp PSR, 32'hxxxxxxx5&lt;BR /&gt;General Purpose Input/Output (GPIO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to configure&amp;nbsp;SC_P_FLEXCAN2_TX to GPIO,&amp;nbsp; now ,I found how to config&amp;nbsp;GPIO_DR&amp;nbsp;GPIO_GDIR&amp;nbsp;GPIO_PSR,&amp;nbsp;&lt;/P&gt;&lt;P&gt;as follow code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;base: 0x5D09_0000&lt;/P&gt;&lt;P&gt;GPIO_DR addr:0x5D090000 value:0x5C16600D&lt;/P&gt;&lt;P&gt;GPIO_GDIR addr:0x5D090004 value:0x1C156000&lt;/P&gt;&lt;P&gt;GPIO_PSR addr:0x5D090008 value:0x5C16600D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I can not find the&amp;nbsp;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;IOMUXC control register address? could you help me ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;by the IMX8DQXPRM_Rev_A.pdf datasheet ,I try to access the iomux base , but have these error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;135|@nutshell:/ # ./var/memtool -r 0x33F80000 0x0&lt;BR /&gt;[ 2384.218394] Unhandled fault: synchronous external abort (0x92000210) at 0x0000ffff9e21c000&lt;BR /&gt;Bus error&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;why? who can tell me ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 03:14:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/IMX8QXP-How-to-set-gpio-by-register/m-p/722577#M1158</guid>
      <dc:creator>shalanyang</dc:creator>
      <dc:date>2018-05-04T03:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8QXP,How to set gpio by register</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/IMX8QXP-How-to-set-gpio-by-register/m-p/722578#M1159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Yang,&lt;/P&gt;&lt;P&gt;I am sorry, this is DSC community, pls post your case to i.mx community:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/community/imx"&gt;https://community.nxp.com/community/imx&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Xiangjun Rong&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 07:46:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/IMX8QXP-How-to-set-gpio-by-register/m-p/722578#M1159</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2018-05-07T07:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8QXP,How to set gpio by register</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/IMX8QXP-How-to-set-gpio-by-register/m-p/722579#M1160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, I will post the case to&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;i.mx community&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 02:22:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/IMX8QXP-How-to-set-gpio-by-register/m-p/722579#M1160</guid>
      <dc:creator>shalanyang</dc:creator>
      <dc:date>2018-05-08T02:22:53Z</dc:date>
    </item>
  </channel>
</rss>

