<?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>MPC5xxxのトピックRe: MPC5606S: program Test flash block</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5606S-program-Test-flash-block/m-p/968266#M14596</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;here is simple example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* unlock all blocks */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.LML.R = 0xA1A11111; /* write password */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.LML.R = 0x00000000; /* unlock all low and mid blocks including test flash primary */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.SLL.R = 0xC3C33333; /* write password */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.SLL.R = 0x00000000; /* unlock all low and mid blocks including test flash secondary */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* program double word to User OTP area of CFLASH0 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.MCR.B.PGM = 1; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;*(unsigned int *)0x00400000 = 0x11223344; /* interlock write */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;*(unsigned int *)0x00400004 = 0x55667788; /* program data write */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.MCR.B.EHV = 1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;while(CFLASH0.MCR.B.DONE == 0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.MCR.B.EHV = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.MCR.B.PGM = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice that this is OTP area, it can't be erased.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Oct 2019 06:24:13 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2019-10-11T06:24:13Z</dc:date>
    <item>
      <title>MPC5606S: program Test flash block</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5606S-program-Test-flash-block/m-p/968265#M14595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I learned from the MPC5606S reference manual that&amp;nbsp; the first 8KB of the Test falsh block may be used for user defined functions. I can read it now ,but I want to know how to program it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2019 09:55:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5606S-program-Test-flash-block/m-p/968265#M14595</guid>
      <dc:creator>lzh1762</dc:creator>
      <dc:date>2019-10-10T09:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5606S: program Test flash block</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5606S-program-Test-flash-block/m-p/968266#M14596</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;here is simple example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* unlock all blocks */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.LML.R = 0xA1A11111; /* write password */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.LML.R = 0x00000000; /* unlock all low and mid blocks including test flash primary */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.SLL.R = 0xC3C33333; /* write password */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.SLL.R = 0x00000000; /* unlock all low and mid blocks including test flash secondary */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* program double word to User OTP area of CFLASH0 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.MCR.B.PGM = 1; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;*(unsigned int *)0x00400000 = 0x11223344; /* interlock write */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;*(unsigned int *)0x00400004 = 0x55667788; /* program data write */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.MCR.B.EHV = 1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;while(CFLASH0.MCR.B.DONE == 0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.MCR.B.EHV = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.MCR.B.PGM = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice that this is OTP area, it can't be erased.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2019 06:24:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5606S-program-Test-flash-block/m-p/968266#M14596</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2019-10-11T06:24:13Z</dc:date>
    </item>
  </channel>
</rss>

