<?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: DFlash writing MPC560D40</title>
    <link>https://community.nxp.com/t5/MPC5xxx/DFlash-writing-MPC560D40/m-p/605483#M4751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you send me the project to be able to reproduce the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Oct 2016 05:38:47 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2016-10-13T05:38:47Z</dc:date>
    <item>
      <title>DFlash writing MPC560D40</title>
      <link>https://community.nxp.com/t5/MPC5xxx/DFlash-writing-MPC560D40/m-p/605480#M4748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How is it possible to &amp;nbsp;write 64 bit&amp;nbsp;in the DFLASH with one High Voltage&amp;nbsp;operation?&lt;/P&gt;&lt;P&gt;I try like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;PGM = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;(0x00800000) = 0x1122334455667788;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;EHV = 1&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;wait for DONE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;EHV = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;PGM = 0&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result is:&lt;/P&gt;&lt;P&gt;0x00800000 = 0xFFFFFFFF;&lt;/P&gt;&lt;P&gt;0x00800004 = 0x11223344;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that on the 5604 the writing&amp;nbsp;was possible and since it is the same architecture it should be pretty straight forward. Also, the datasheet specifies it is possible (check attachment).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 13:09:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/DFlash-writing-MPC560D40/m-p/605480#M4748</guid>
      <dc:creator>liviuc</dc:creator>
      <dc:date>2016-10-04T13:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: DFlash writing MPC560D40</title>
      <link>https://community.nxp.com/t5/MPC5xxx/DFlash-writing-MPC560D40/m-p/605481#M4749</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;this piece of code works as expected:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* unlock */&lt;BR /&gt;&amp;nbsp; DFLASH.LML.R = 0xA1A11111;&amp;nbsp;&amp;nbsp; &amp;nbsp;//write password&lt;BR /&gt;&amp;nbsp; DFLASH.LML.R = 0x00000000;&amp;nbsp;&amp;nbsp; &amp;nbsp;//unlock all 4 16k blocks&lt;BR /&gt;&amp;nbsp; DFLASH.SLL.R = 0xC3C33333;&amp;nbsp;&amp;nbsp; &amp;nbsp;//write password&lt;BR /&gt;&amp;nbsp; DFLASH.SLL.R = 0x00000000;&amp;nbsp;&amp;nbsp; &amp;nbsp;//unlock all 4 16k blocks&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; /* erase */ &amp;nbsp;&lt;BR /&gt;&amp;nbsp; DFLASH.MCR.B.ERS = 1;&amp;nbsp;&amp;nbsp; &amp;nbsp;//erase operation&lt;BR /&gt;&amp;nbsp; DFLASH.LMS.R = 0xF;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;//select all 4 block for erase&lt;BR /&gt;&amp;nbsp; *(unsigned int *)0x00800000 = 0xFFFFFFFF;&amp;nbsp;&amp;nbsp; &amp;nbsp;//interlock write &amp;nbsp;&lt;BR /&gt;&amp;nbsp; DFLASH.MCR.B.EHV = 1;&amp;nbsp;&amp;nbsp; while(DFLASH.MCR.B.DONE == 0);&lt;BR /&gt;&amp;nbsp; DFLASH.MCR.B.EHV = 0;&lt;BR /&gt;&amp;nbsp; DFLASH.MCR.B.ERS = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* program one double word */&lt;BR /&gt;&amp;nbsp; DFLASH.MCR.B.PGM = 1;&amp;nbsp;&amp;nbsp; &amp;nbsp;//erase operation &amp;nbsp;&lt;BR /&gt;&amp;nbsp; *(unsigned int *)0x00800000 = 0xAABBCCDD;&amp;nbsp;&amp;nbsp; &amp;nbsp;//interlock write&lt;BR /&gt;&amp;nbsp; *(unsigned int *)0x00800004 = 0x11223344;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; DFLASH.MCR.B.EHV = 1;&lt;BR /&gt;&amp;nbsp; while(DFLASH.MCR.B.DONE == 0);&lt;BR /&gt;&amp;nbsp; DFLASH.MCR.B.EHV = 0;&lt;BR /&gt;&amp;nbsp; DFLASH.MCR.B.PGM = 0; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* read */&lt;BR /&gt;&amp;nbsp; data1 = *(unsigned int *)0x00800000;&lt;BR /&gt;&amp;nbsp; data2 = *(unsigned int *)0x00800004;&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>Tue, 11 Oct 2016 06:00:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/DFlash-writing-MPC560D40/m-p/605481#M4749</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2016-10-11T06:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: DFlash writing MPC560D40</title>
      <link>https://community.nxp.com/t5/MPC5xxx/DFlash-writing-MPC560D40/m-p/605482#M4750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lukas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help and interest into this problem.&lt;/P&gt;&lt;P&gt;This is the first solution that I tried after reading the datasheet.&lt;/P&gt;&lt;P&gt;Tried it again today just for confirming my problem was still there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The specific behavior is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;PGM =1&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;*(unsigned int *)0x00800000 = 0xAABBCCDD; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;interlock write not done -&amp;gt; only address latching&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; *(unsigned int *)0x00800004 = 0x11223344;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- this value gets written into latched address (0x00800000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- address 0x00800004 is untouched&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Watched the behavior using disassembly and the operations are executed as expected so I exclude the compiler making any optimizations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thank again for your reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2016 14:19:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/DFlash-writing-MPC560D40/m-p/605482#M4750</guid>
      <dc:creator>liviuc</dc:creator>
      <dc:date>2016-10-11T14:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: DFlash writing MPC560D40</title>
      <link>https://community.nxp.com/t5/MPC5xxx/DFlash-writing-MPC560D40/m-p/605483#M4751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you send me the project to be able to reproduce the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 05:38:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/DFlash-writing-MPC560D40/m-p/605483#M4751</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2016-10-13T05:38:47Z</dc:date>
    </item>
  </channel>
</rss>

