<?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 Re: Reading and writing OCOTP registers in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Reading-and-writing-OCOTP-registers/m-p/174816#M6391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My Freescale FAE said that CONFIG_FSL_OTP is not verified as functional on the i.MX28.&lt;/P&gt;&lt;P&gt;The stand-alone tools for managing OTP bits are on the MX28 page in “IMX_OTP_TOOLS” under “Programmers (Flash, etc.)". &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX287&amp;amp;nodeId=018rH3ZrDRA24A&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX287&amp;amp;nodeId=018rH3ZrDRA24A&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2012 19:45:32 GMT</pubDate>
    <dc:creator>StevenBytnar</dc:creator>
    <dc:date>2012-07-18T19:45:32Z</dc:date>
    <item>
      <title>Reading and writing OCOTP registers</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Reading-and-writing-OCOTP-registers/m-p/174814#M6389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some of you may know that the BSP has a On-Chip OTP Memory driver to facilitate the OCOTP registers access. Here&amp;nbsp;are the steps to enable it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In LTIB, enable this configuration&lt;BR /&gt;&lt;BR /&gt;Device Drivers&lt;/P&gt;&lt;P&gt;---&amp;gt; Character devices&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;---&amp;gt; Freescale On-Chip OTP Memory Support&lt;BR /&gt;&lt;BR /&gt;Or&lt;/P&gt;&lt;P&gt;define “CONFIG_FSL_OTP” in&amp;nbsp;your configuration file.&lt;/P&gt;&lt;P&gt;Compile the new kernel and after boot up, all OCOTP registers&amp;nbsp;will be exposed at the&amp;nbsp;"/sys/fsl_otp" directory. You can&amp;nbsp;run the 'cat' command to read these registers&amp;nbsp;and&amp;nbsp;even&amp;nbsp;echo a new value to these registers.&amp;nbsp;BEWARE&amp;nbsp;that they are One Time Programming only, meaning once written, these values can never be&amp;nbsp;re-written again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers : )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 01:40:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Reading-and-writing-OCOTP-registers/m-p/174814#M6389</guid>
      <dc:creator>PeterChan</dc:creator>
      <dc:date>2012-07-12T01:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reading and writing OCOTP registers</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Reading-and-writing-OCOTP-registers/m-p/174815#M6390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I try to execute "echo 0x00000001 &amp;gt; HW_OCOTP_CUST3", it hangs.&amp;nbsp;Writes to any of the CUST0 through CUST3 all hang. Has anyone had success writing to HW_OCOTP_CUST* on an i.MX28 EVK and a custom board we've created? Is there some magic /sys/ flag that has to be tickled to allow writes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 14:28:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Reading-and-writing-OCOTP-registers/m-p/174815#M6390</guid>
      <dc:creator>StevenBytnar</dc:creator>
      <dc:date>2012-07-12T14:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Reading and writing OCOTP registers</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Reading-and-writing-OCOTP-registers/m-p/174816#M6391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My Freescale FAE said that CONFIG_FSL_OTP is not verified as functional on the i.MX28.&lt;/P&gt;&lt;P&gt;The stand-alone tools for managing OTP bits are on the MX28 page in “IMX_OTP_TOOLS” under “Programmers (Flash, etc.)". &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX287&amp;amp;nodeId=018rH3ZrDRA24A&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX287&amp;amp;nodeId=018rH3ZrDRA24A&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 19:45:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Reading-and-writing-OCOTP-registers/m-p/174816#M6391</guid>
      <dc:creator>StevenBytnar</dc:creator>
      <dc:date>2012-07-18T19:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reading and writing OCOTP registers</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Reading-and-writing-OCOTP-registers/m-p/174817#M6392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The OCOTP write operation hangs because the HCLK frequency is not set correctly. This bug&amp;nbsp;is fixed and the write operation is now working after applying the attached patch.&lt;/P&gt;&lt;P&gt;It is mandatory to input hex value&amp;nbsp;ahead by&amp;nbsp;"0x" when issuing the echo command, i.e. "echo 0xXXXXXXXX &amp;gt; HW_OCOTP_XXXX" because the value&amp;nbsp;is always parsed in hexadecimal.&lt;/P&gt;&lt;P&gt;Please understand that this patch is only limitedly tested.&amp;nbsp;Besides the VDDIO needs to be 2.8V&amp;nbsp;and HCLK must be lower to 24MHz during&amp;nbsp;OCOTP write, it is&amp;nbsp;not desirable&amp;nbsp;when the system has other peripherals which cannot operate at 2.8V or&amp;nbsp;during high bus utilization. So, the IMX_OTP_TOOLS&amp;nbsp;is still the first approach you should consider.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 11:44:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Reading-and-writing-OCOTP-registers/m-p/174817#M6392</guid>
      <dc:creator>PeterChan</dc:creator>
      <dc:date>2012-07-20T11:44:24Z</dc:date>
    </item>
  </channel>
</rss>

