<?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: EPIT registers not accessed by C code at runtime</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/EPIT-registers-not-accessed-by-C-code-at-runtime/m-p/991554#M147183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhijeet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;epit may be used by linux system timer as described in sect.2.1.3.2 Timer Features&lt;/P&gt;&lt;P&gt;attached Linux Manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Feb 2020 07:47:47 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2020-02-25T07:47:47Z</dc:date>
    <item>
      <title>EPIT registers not accessed by C code at runtime</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/EPIT-registers-not-accessed-by-C-code-at-runtime/m-p/991549#M147178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am programming &lt;STRONG&gt;EPIT1&lt;/STRONG&gt; registers 20D_0000 to 20D_0010 using &lt;STRONG&gt;memtools&lt;/STRONG&gt; in the Linux OS on my imx6 board. After programming them, I want to access the value of the counter at run-time using C code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, I have created a memory pointer that gets the entire memory block from 20DXXXX address and then compares if some specific count value has been reached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error that I am getting is:&lt;/P&gt;&lt;P&gt;ERROR: Unhandled fault: external abort on non-linefetch (0x1818)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My doubt is that the way of declaring the memory pointer (using page_mask and page_size) must be wrong? What is the correct way of accessing EPIT registers using C pointers? What is the general calculations done in allocating a memory block to the pointer via mmap?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Abhijeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2020 09:03:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/EPIT-registers-not-accessed-by-C-code-at-runtime/m-p/991549#M147178</guid>
      <dc:creator>abhijeet_ghodga</dc:creator>
      <dc:date>2020-02-20T09:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: EPIT registers not accessed by C code at runtime</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/EPIT-registers-not-accessed-by-C-code-at-runtime/m-p/991550#M147179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhijeet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;linux uses mmu and one can look at memtool example function map_address()&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/imx-test/tree/test/memtool/memtool.c?h=imx_4.14.98_2.2.0" title="https://source.codeaurora.org/external/imx/imx-test/tree/test/memtool/memtool.c?h=imx_4.14.98_2.2.0"&gt;memtool.c\memtool\test - imx-test - i.MX Driver Test Application Software&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&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>Thu, 20 Feb 2020 23:27:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/EPIT-registers-not-accessed-by-C-code-at-runtime/m-p/991550#M147179</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-02-20T23:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: EPIT registers not accessed by C code at runtime</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/EPIT-registers-not-accessed-by-C-code-at-runtime/m-p/991551#M147180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is an example to configure EPIT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2020 01:03:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/EPIT-registers-not-accessed-by-C-code-at-runtime/m-p/991551#M147180</guid>
      <dc:creator>shaojun_wang</dc:creator>
      <dc:date>2020-02-21T01:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: EPIT registers not accessed by C code at runtime</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/EPIT-registers-not-accessed-by-C-code-at-runtime/m-p/991552#M147181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have enabled EPIT registers, and written a C application code, that creates a memory pointer and accesses control and count register. Currently, the issue I am facing is of interrupt handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Studying your patch on epit.c, there are some RAM write functions and irq calls. Since, epit.c is in the kernel level, I will have to modify the kernel. Is there a way to implement the RAM write functions and irq calls, into an application code, that can be cross-compiled into an exe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Abhijeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2020 05:50:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/EPIT-registers-not-accessed-by-C-code-at-runtime/m-p/991552#M147181</guid>
      <dc:creator>abhijeet_ghodga</dc:creator>
      <dc:date>2020-02-25T05:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: EPIT registers not accessed by C code at runtime</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/EPIT-registers-not-accessed-by-C-code-at-runtime/m-p/991553#M147182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am already using memtools to access the EPIT registers, I run the memtools script from my C file exe, so everytime I run the exe, the registers are set, and the downcounter starts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to get access to the OCIF or the interrupt of the EPIT Timer through the C code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Abhijeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2020 06:12:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/EPIT-registers-not-accessed-by-C-code-at-runtime/m-p/991553#M147182</guid>
      <dc:creator>abhijeet_ghodga</dc:creator>
      <dc:date>2020-02-25T06:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: EPIT registers not accessed by C code at runtime</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/EPIT-registers-not-accessed-by-C-code-at-runtime/m-p/991554#M147183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhijeet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;epit may be used by linux system timer as described in sect.2.1.3.2 Timer Features&lt;/P&gt;&lt;P&gt;attached Linux Manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2020 07:47:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/EPIT-registers-not-accessed-by-C-code-at-runtime/m-p/991554#M147183</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-02-25T07:47:47Z</dc:date>
    </item>
  </channel>
</rss>

