<?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>PowerQUICC Processors中的主题 GPIO port access in MPC8323E-RDB</title>
    <link>https://community.nxp.com/t5/PowerQUICC-Processors/GPIO-port-access-in-MPC8323E-RDB/m-p/619637#M1752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am using MPC8323E-RDB board for application development in Linux environment. On Ubuntu 8.10 PC I generated kernel image by suing LTIB with kernel version of 2.6.20. Now I want to blink LEDs (Present on the board and named D3,D4 &amp;amp; D5)&amp;nbsp; which are connected to PORT-D 16,17 &amp;amp; 18 pins. I tried to access pins by providing address of Port registers, but I am getting segmentation fault.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I access I/O Port registers? and What might be the base address if required?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen IMMR address range 0xE0000000 - 0xEFFFFFFF . Is it the base address to access GPIO port pins?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please respond as soon as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;V JYOTHI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Feb 2017 10:21:56 GMT</pubDate>
    <dc:creator>vadrevujyothi</dc:creator>
    <dc:date>2017-02-09T10:21:56Z</dc:date>
    <item>
      <title>GPIO port access in MPC8323E-RDB</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/GPIO-port-access-in-MPC8323E-RDB/m-p/619637#M1752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am using MPC8323E-RDB board for application development in Linux environment. On Ubuntu 8.10 PC I generated kernel image by suing LTIB with kernel version of 2.6.20. Now I want to blink LEDs (Present on the board and named D3,D4 &amp;amp; D5)&amp;nbsp; which are connected to PORT-D 16,17 &amp;amp; 18 pins. I tried to access pins by providing address of Port registers, but I am getting segmentation fault.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I access I/O Port registers? and What might be the base address if required?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen IMMR address range 0xE0000000 - 0xEFFFFFFF . Is it the base address to access GPIO port pins?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please respond as soon as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;V JYOTHI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 10:21:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/GPIO-port-access-in-MPC8323E-RDB/m-p/619637#M1752</guid>
      <dc:creator>vadrevujyothi</dc:creator>
      <dc:date>2017-02-09T10:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO port access in MPC8323E-RDB</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/GPIO-port-access-in-MPC8323E-RDB/m-p/619638#M1753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are trying to access a peripheral by offset from IMMR&lt;BR /&gt;in Linux environment, segmentation fault is what you should expect.&lt;BR /&gt;Linux uses virtual memory, you must explicitly map the range you want to access&lt;BR /&gt;first. If you are accessing a peripheral from the&lt;BR /&gt;kernel mode, use ioremap():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fman.cx%2Fioremap%289" rel="nofollow" target="_blank"&gt;http://man.cx/ioremap(9&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are working from userland, use mmap():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Flinux.die.net%2Fman%2F2%2Fmmap" rel="nofollow" target="_blank"&gt;https://linux.die.net/man/2/mmap&lt;/A&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F9662193%2Fhow-to-access-kernel-space-from-user-spacein-linux" rel="nofollow" target="_blank"&gt;http://stackoverflow.com/questions/9662193/how-to-access-kernel-space-from-user-spacein-linux&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Platon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 14 Feb 2017 17:14:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/GPIO-port-access-in-MPC8323E-RDB/m-p/619638#M1753</guid>
      <dc:creator>bpe</dc:creator>
      <dc:date>2017-02-14T17:14:18Z</dc:date>
    </item>
  </channel>
</rss>

