<?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>S32KのトピックRe: How to repeatedly write Data Flash section (S32K116)</title>
    <link>https://community.nxp.com/t5/S32K/How-to-repeatedly-write-Data-Flash-section-S32K116/m-p/849923#M3530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;How did you configure 0.5k of FlexRAM as RAM and 1.5k as EEPROM.&lt;BR /&gt;There is no such option. If you use EEPROM, the whole 2k of FlexRAM is used as EEPROM.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/65046i4B4B5205FA3AA046/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can use Program Phrase and Erase Flash Sector commands on DFlash. &lt;BR /&gt;Please see Section 36.5.11&lt;BR /&gt;“When required by the command, address bit 23 selects between program flash memory (=0) and data flash memory (=1).”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Jul 2018 17:35:44 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2018-07-08T17:35:44Z</dc:date>
    <item>
      <title>How to repeatedly write Data Flash section (S32K116)</title>
      <link>https://community.nxp.com/t5/S32K/How-to-repeatedly-write-Data-Flash-section-S32K116/m-p/849922#M3529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario / partitioning:&lt;/P&gt;&lt;P&gt;24 k of&amp;nbsp;FlexNVM&amp;nbsp;used for EEE-Backup&lt;/P&gt;&lt;P&gt;8 k of FlexNVM used as Data Flash&lt;/P&gt;&lt;P&gt;-&amp;gt; 0,5 k FlexRAM as "regular" RAM / section program buffer&lt;/P&gt;&lt;P&gt;-&amp;gt; 1,5 k FlexRAM as EEE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I write this Data Flash repeatedly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the ref manual I get that only&amp;nbsp;Program Section command is available for D-Flash.&lt;/P&gt;&lt;P&gt;This means that&amp;nbsp;up to 0,5 k of FlexRAM could be reserved for serving as "section program buffer".&lt;/P&gt;&lt;P&gt;This should have no impact on the remaining 1,5 k FlexRAM, which are configured as EEE, right?&lt;/P&gt;&lt;P&gt;I mean, I don't have to switch EEE-mode on and off every time I want to write to D-Flash, correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then after I have programmed one section of D-Flash, how do I erase it before reprogramming?&lt;/P&gt;&lt;P&gt;Because the only erase commands I can find for Data Flash are "Erase All Blocks" and "Erase All Blocks Unsecure".&amp;nbsp;(Ref Manual 36.5.9.2 Flash commands)&lt;/P&gt;&lt;P&gt;"Erase Flash Sector" appears to be not applicable according to the ref manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have an idea?&lt;/P&gt;&lt;P&gt;Or is it as easy as writing something like (*D_Flash_Addr) = 0xA5A5A5A5&amp;nbsp;and the controller does the rest (load / erase / write old content + new 32 Bit... don't think so!)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for Your time!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 19:25:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-repeatedly-write-Data-Flash-section-S32K116/m-p/849922#M3529</guid>
      <dc:creator>hirnbayfried</dc:creator>
      <dc:date>2018-07-04T19:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to repeatedly write Data Flash section (S32K116)</title>
      <link>https://community.nxp.com/t5/S32K/How-to-repeatedly-write-Data-Flash-section-S32K116/m-p/849923#M3530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;How did you configure 0.5k of FlexRAM as RAM and 1.5k as EEPROM.&lt;BR /&gt;There is no such option. If you use EEPROM, the whole 2k of FlexRAM is used as EEPROM.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/65046i4B4B5205FA3AA046/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can use Program Phrase and Erase Flash Sector commands on DFlash. &lt;BR /&gt;Please see Section 36.5.11&lt;BR /&gt;“When required by the command, address bit 23 selects between program flash memory (=0) and data flash memory (=1).”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2018 17:35:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-repeatedly-write-Data-Flash-section-S32K116/m-p/849923#M3530</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-07-08T17:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to repeatedly write Data Flash section (S32K116)</title>
      <link>https://community.nxp.com/t5/S32K/How-to-repeatedly-write-Data-Flash-section-S32K116/m-p/849924#M3531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel, thanks for Your reply!&lt;/P&gt;&lt;P&gt;I must have misinterpreted some information regarding using not all of EEE to keep 1:16 ratio between EEE and E-Flash.&lt;/P&gt;&lt;P&gt;So in my case, if we configure 24/32 k of FlexNVM as E-Flash and 2/2 k of FlexRAM as EEE, only 1,5 k of EEE should be used in order to keep 1:16.&lt;/P&gt;&lt;P&gt;The&amp;nbsp;remaining 0,5 k of FlexRAM should not be touched in this case (to achieve the guaranteed write / erase cycles).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since &lt;EM&gt;Program Phrase&lt;/EM&gt; and &lt;EM&gt;Erase Flash Sector&lt;/EM&gt; commands are available for D-Flash (which is a great relief! :smileyhappy:), I find the table directly below &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;EM&gt;36.5.9.2 Flash commands&lt;/EM&gt;&amp;nbsp;to be misleading.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2018 18:44:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-repeatedly-write-Data-Flash-section-S32K116/m-p/849924#M3531</guid>
      <dc:creator>hirnbayfried</dc:creator>
      <dc:date>2018-07-08T18:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to repeatedly write Data Flash section (S32K116)</title>
      <link>https://community.nxp.com/t5/S32K/How-to-repeatedly-write-Data-Flash-section-S32K116/m-p/849925#M3532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sascha,&lt;/P&gt;&lt;P&gt;the table is really misleading. It will be fixed.&lt;/P&gt;&lt;P&gt;Thanks for pointing this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2018 07:21:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-repeatedly-write-Data-Flash-section-S32K116/m-p/849925#M3532</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-07-12T07:21:27Z</dc:date>
    </item>
  </channel>
</rss>

