<?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>Classic/Legacy CodeWarriorのトピックRe: DataFlash is not holding data after PowertDown</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/DataFlash-is-not-holding-data-after-PowertDown/m-p/708209#M7397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice to see you answering to my question.&amp;nbsp;&lt;STRONG&gt;Still I'm not able to see the value in that DFlash&amp;nbsp;address once the power goes off&lt;/STRONG&gt;. I'm using&amp;nbsp;FreeScale CodeWarrior IDE 5.9 &amp;amp;&amp;nbsp;PE Micro USB Multilink Interface. Is there anythink I need to change in my linker file or configuration settings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Sep 2017 05:56:07 GMT</pubDate>
    <dc:creator>bjrajendra</dc:creator>
    <dc:date>2017-09-05T05:56:07Z</dc:date>
    <item>
      <title>DataFlash is not holding data after PowertDown</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/DataFlash-is-not-holding-data-after-PowertDown/m-p/708206#M7394</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;BR /&gt;I'm using MCP5602P, I'm trying to store data into the DataFlash Memory (0x0080_0000) and wrote a code accordingly. The value got stored as I can see it on using debugger window, Memory Block, but once the power switched off and again If I see the debugger window without running the Program, the value is not seen. My idea is, though the program was flashed newly, the debugger wont erase the DataFlash Memory. Is there any project's internal Flash&amp;nbsp;settings I need to make&amp;nbsp;or linker cmd file I need to edit, so that I can store the value permanantly.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;STRONG&gt;I'd attached the Code for DataFlash. Kindly suggest any modifications I need to make.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;Original Attachment has been moved to:&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338545"&gt;FlashCode.txt.zip&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 04:34:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/DataFlash-is-not-holding-data-after-PowertDown/m-p/708206#M7394</guid>
      <dc:creator>bjrajendra</dc:creator>
      <dc:date>2017-08-26T04:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: DataFlash is not holding data after PowertDown</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/DataFlash-is-not-holding-data-after-PowertDown/m-p/708207#M7395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No one turned out to answer. Can anyone suggest things to be modified in my code. Awaiting for the reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 06:29:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/DataFlash-is-not-holding-data-after-PowertDown/m-p/708207#M7395</guid>
      <dc:creator>bjrajendra</dc:creator>
      <dc:date>2017-08-28T06:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: DataFlash is not holding data after PowertDown</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/DataFlash-is-not-holding-data-after-PowertDown/m-p/708208#M7396</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;&amp;nbsp;&amp;nbsp; unsigned int data1, data2;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&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 = 1;&amp;nbsp;&amp;nbsp; &amp;nbsp;//interlock write&lt;BR /&gt;&amp;nbsp; DFLASH.MCR.B.EHV = 1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;while(DFLASH.MCR.B.DONE == 0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;DFLASH.MCR.B.EHV = 0;&lt;BR /&gt;&amp;nbsp; DFLASH.MCR.B.ERS = 0;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; /* program one word */&lt;BR /&gt;&amp;nbsp; DFLASH.MCR.B.PGM = 1;&amp;nbsp;&amp;nbsp; &amp;nbsp;//program 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; DFLASH.MCR.B.EHV = 1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;while(DFLASH.MCR.B.DONE == 0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;DFLASH.MCR.B.EHV = 0;&lt;BR /&gt;&amp;nbsp; DFLASH.MCR.B.PGM = 0; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; /* program next word */&lt;BR /&gt;&amp;nbsp; DFLASH.MCR.B.PGM = 1;&amp;nbsp;&amp;nbsp; &amp;nbsp;//program operation &amp;nbsp;&lt;BR /&gt;&amp;nbsp; *(unsigned int *)0x00800004 = 0x11223344;&amp;nbsp;&amp;nbsp; &amp;nbsp;//interlock write&lt;BR /&gt;&amp;nbsp; DFLASH.MCR.B.EHV = 1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;while(DFLASH.MCR.B.DONE == 0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;DFLASH.MCR.B.EHV = 0;&lt;BR /&gt;&amp;nbsp; DFLASH.MCR.B.PGM = 0; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; /* read */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;data1 = *(unsigned int *)0x00800000;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;data2 = *(unsigned int *)0x00800004; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use CodeWarrior 2.x and PEmicro debugger, notice that it does not program/erase DFlash by default. If you program new program to the device by debugger, the content of DFlash is kept.&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>Mon, 04 Sep 2017 11:03:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/DataFlash-is-not-holding-data-after-PowertDown/m-p/708208#M7396</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-09-04T11:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: DataFlash is not holding data after PowertDown</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/DataFlash-is-not-holding-data-after-PowertDown/m-p/708209#M7397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice to see you answering to my question.&amp;nbsp;&lt;STRONG&gt;Still I'm not able to see the value in that DFlash&amp;nbsp;address once the power goes off&lt;/STRONG&gt;. I'm using&amp;nbsp;FreeScale CodeWarrior IDE 5.9 &amp;amp;&amp;nbsp;PE Micro USB Multilink Interface. Is there anythink I need to change in my linker file or configuration settings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 05:56:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/DataFlash-is-not-holding-data-after-PowertDown/m-p/708209#M7397</guid>
      <dc:creator>bjrajendra</dc:creator>
      <dc:date>2017-09-05T05:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: DataFlash is not holding data after PowertDown</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/DataFlash-is-not-holding-data-after-PowertDown/m-p/708210#M7398</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 can't see any reason for this. If you use CodeWarrior 2.x or 10.x then it does not touch data flash by default. So, you should see that the data are still present in data flash even if you load new program to flash using debugger from CodeWarrior or if you just turn off and then turn on the power.&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, 08 Sep 2017 09:15:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/DataFlash-is-not-holding-data-after-PowertDown/m-p/708210#M7398</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-09-08T09:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: DataFlash is not holding data after PowertDown</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/DataFlash-is-not-holding-data-after-PowertDown/m-p/708211#M7399</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;Once again thank you for your reply and your interest. Actually If I load a new program without turning OFF the MCU, the data is still there in DFlash memory. But once I turn off the MCU and load the program, the values didn't exist in DFlash memory location. My question is, it is a Flash memory and stores the value eventhough there is a power off.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Do I need to add any additional initializations other than clock? or any Debug configurations I need to edit ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;STRONG style="color: #1f497d;"&gt;Thanks &amp;amp; &lt;/STRONG&gt;&lt;STRONG style="color: #1f497d;"&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;STRONG style="color: #1f497d;"&gt;BJ RAJENDRANATH&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 09:33:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/DataFlash-is-not-holding-data-after-PowertDown/m-p/708211#M7399</guid>
      <dc:creator>bjrajendra</dc:creator>
      <dc:date>2017-09-08T09:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: DataFlash is not holding data after PowertDown</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/DataFlash-is-not-holding-data-after-PowertDown/m-p/708212#M7400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No other settings are necessary. If you enter debug mode during reset (so no code is executed) and if you just check the content of memory in your debugger, you should see the content of flash. That means there's nothing to configure. There's e200z0 core on this device, so there's no even MMU which needs to be initialized like on other cores. &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, 08 Sep 2017 09:41:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/DataFlash-is-not-holding-data-after-PowertDown/m-p/708212#M7400</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-09-08T09:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: DataFlash is not holding data after PowertDown</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/DataFlash-is-not-holding-data-after-PowertDown/m-p/708213#M7401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any Internal Flash&amp;nbsp;settings to be configured ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 10:06:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/DataFlash-is-not-holding-data-after-PowertDown/m-p/708213#M7401</guid>
      <dc:creator>bjrajendra</dc:creator>
      <dc:date>2017-09-08T10:06:45Z</dc:date>
    </item>
  </channel>
</rss>

