<?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: S32K144: How to read Data flash 0 IFR in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K144-How-to-read-Data-flash-0-IFR/m-p/813481#M2990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Damien,&lt;/P&gt;&lt;P&gt;The EEERAMSIZE bit-field doesn't get updated, it is always 0x2 (4KB). The NOTE is Section 11.3.1.10.2 (RM rev.9) mentions DEPART only.&amp;nbsp;The FlexRAM can be used either as RAM or EEPROM, in either way, it is 4KB.&amp;nbsp;&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/66293i112FFAA8D6091620/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;&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>Mon, 29 Oct 2018 12:21:49 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2018-10-29T12:21:49Z</dc:date>
    <item>
      <title>S32K144: How to read Data flash 0 IFR</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-How-to-read-Data-flash-0-IFR/m-p/813478#M2987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an application where I need to configure the Data Flash 0 IFR to configure the D-Flash/E-Flash. The process to write is straightforward as per "Program Partition" command in RM s36.5.11.14 (p836).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, there does not appear to be a means of reading the Data Flash 0 IFR to confirm that the configuration is correctly written. For the Kinetis, it appears it can be done via the "&lt;A _jive_internal="true" href="https://community.nxp.com/thread/377605"&gt;Read Resource&lt;/A&gt;" command, but this feature is not available on the S32K144 device:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* @brief Has 0x03 Read Resource command. */&lt;BR /&gt;#define FEATURE_FLS_HAS_READ_RESOURCE_CMD (0u)&lt;BR /&gt;&lt;BR /&gt;So, is there an alternate means of reading this section, or any other way in which the partitioning can be verified in software?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; -- Damien.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2018 01:31:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-How-to-read-Data-flash-0-IFR/m-p/813478#M2987</guid>
      <dc:creator>damiendusha</dc:creator>
      <dc:date>2018-10-22T01:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144: How to read Data flash 0 IFR</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-How-to-read-Data-flash-0-IFR/m-p/813479#M2988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Damien,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no such command and the IFR is not mapped, however, the DEPART value can be read from FCFG1[DEPART] register.&amp;nbsp;Please see section 11.3.1.10 in the S32K1xx RM rev.9&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>Mon, 22 Oct 2018 07:36:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-How-to-read-Data-flash-0-IFR/m-p/813479#M2988</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-10-22T07:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144: How to read Data flash 0 IFR</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-How-to-read-Data-flash-0-IFR/m-p/813480#M2989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, I have been able to verify the DEPART value, but I would like to ask about the EEERAMSIZE field in FCFG1[DEPART].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can can setup D-Flash partitioning without any problems using the FLASH_DRV driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; const uint8_t uEEEDataSizeCode = 0x0F;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; const uint8_t uDEPartitionCode = 0x00;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; const uint8_t uCSEcKeySize = 0x00;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; const bool uSFE = false;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; const bool flexRamEnableLoadEEEData = false;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; const status_t ok = FLASH_DRV_DEFlashPartition(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;m_flashSSDConfig,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uEEEDataSizeCode,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uDEPartitionCode,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uCSEcKeySize,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uSFE,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flexRamEnableLoadEEEData);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function reports success with these values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, after rebooting the DEPART value is correct, but the EEESRAMSIZE reports as 0x02 (4KB).&amp;nbsp; I would have expected this to be 0x0F as per s10.3.11.10.4:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/66003i603C743C8BE596FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;SIM-&amp;gt;FCFG1 = 0xFF0&lt;STRONG&gt;2&lt;/STRONG&gt;0000&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's worth noting, however, that the FCNFG[RAMDRY] report that Flex is available as traditional RAM only:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;FTFC-&amp;gt;FCNFG = 0x02&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the expected behavior of the device?&amp;nbsp; Is the D-Flash safe to use, even if the EEESRAMSIZE reports a value other than 0KB?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Damien.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 06:34:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-How-to-read-Data-flash-0-IFR/m-p/813480#M2989</guid>
      <dc:creator>damiendusha</dc:creator>
      <dc:date>2018-10-29T06:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144: How to read Data flash 0 IFR</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-How-to-read-Data-flash-0-IFR/m-p/813481#M2990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Damien,&lt;/P&gt;&lt;P&gt;The EEERAMSIZE bit-field doesn't get updated, it is always 0x2 (4KB). The NOTE is Section 11.3.1.10.2 (RM rev.9) mentions DEPART only.&amp;nbsp;The FlexRAM can be used either as RAM or EEPROM, in either way, it is 4KB.&amp;nbsp;&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/66293i112FFAA8D6091620/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;&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>Mon, 29 Oct 2018 12:21:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-How-to-read-Data-flash-0-IFR/m-p/813481#M2990</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-10-29T12:21:49Z</dc:date>
    </item>
  </channel>
</rss>

