<?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: Questions About the erase and program DFLASH</title>
    <link>https://community.nxp.com/t5/S32K/Questions-About-the-erase-and-program-DFLASH/m-p/946732#M5155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1. It depends on where the vector table and the interrupt routines are located.&lt;/P&gt;&lt;P&gt;Because simultaneous programming and reading is not allowed on the same flash block.&lt;/P&gt;&lt;P&gt;Please refer to the RM rev.11 Section&amp;nbsp;36.5.9.4 Allowed simultaneous flash operations.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82410iB1C2EE246E656CE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2-3.&lt;/P&gt;&lt;P&gt;Do you read the Dflash address by a pointer or in the memory view?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please&amp;nbsp;use the&amp;nbsp;flash_partitioning_s32k144 SDK example.&lt;/P&gt;&lt;P&gt;Could you share a simple test project that would demonstrate&amp;nbsp;the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jul 2019 08:09:08 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2019-07-23T08:09:08Z</dc:date>
    <item>
      <title>Questions About the erase and program DFLASH</title>
      <link>https://community.nxp.com/t5/S32K/Questions-About-the-erase-and-program-DFLASH/m-p/946731#M5154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys, I have several questions about S32K144 Dflash erase and program operation:&lt;/P&gt;&lt;P&gt;1、Is it necessary to disable all the interrupt before erase and program the DFLASH,? or it will lead to abnormal result (even the&amp;nbsp;&lt;SPAN&gt;FLASH_DRV_EraseSector result is&amp;nbsp;STATUS_SUCCESS)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2、When I use PE and S32DS software to debug the DFLASH erase and program, Looking on the DFLASH address, It happened that run the&amp;nbsp;FLASH_DRV_EraseSector function but the concern sector data is not 0xFF, is it possible the S32DS can't show the right DFLASH address data?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3、We now update the software and add the DFLASH emulated EEPROM function, but the first time from the old software to the&amp;nbsp;updated software will lead to the reset when run the partition function&amp;nbsp;FLASH_DRV_DEFlashPartition, I don't know why.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can someone answer my issues?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2019 11:39:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Questions-About-the-erase-and-program-DFLASH/m-p/946731#M5154</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2019-07-19T11:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Questions About the erase and program DFLASH</title>
      <link>https://community.nxp.com/t5/S32K/Questions-About-the-erase-and-program-DFLASH/m-p/946732#M5155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1. It depends on where the vector table and the interrupt routines are located.&lt;/P&gt;&lt;P&gt;Because simultaneous programming and reading is not allowed on the same flash block.&lt;/P&gt;&lt;P&gt;Please refer to the RM rev.11 Section&amp;nbsp;36.5.9.4 Allowed simultaneous flash operations.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82410iB1C2EE246E656CE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2-3.&lt;/P&gt;&lt;P&gt;Do you read the Dflash address by a pointer or in the memory view?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please&amp;nbsp;use the&amp;nbsp;flash_partitioning_s32k144 SDK example.&lt;/P&gt;&lt;P&gt;Could you share a simple test project that would demonstrate&amp;nbsp;the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 08:09:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Questions-About-the-erase-and-program-DFLASH/m-p/946732#M5155</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-07-23T08:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Questions About the erase and program DFLASH</title>
      <link>https://community.nxp.com/t5/S32K/Questions-About-the-erase-and-program-DFLASH/m-p/946733#M5156</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;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;I&amp;nbsp;&lt;/SPAN&gt;read the Dflash address by a pointer and&amp;nbsp; in the memory view, both are the same-----not 0xFF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Before I use&amp;nbsp;FLASH_DRV_DEFlashPartition, I must use&amp;nbsp;INT_SYS_DisableIRQGlobal, I don't know why.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Is the operatin of&amp;nbsp;INT_SYS_DisableIRQGlobal equal to disable all the interrupt? Like&amp;nbsp;&lt;SPAN&gt;INT_SYS_DisableIRQGlobal =&amp;nbsp;&lt;/SPAN&gt;LPIT_DRV_DisableTimerChannelInterrupt +&amp;nbsp;FLEXCAN_SetMsgBuffIntCmd(pstCanBase, i, FALSE)+..........?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I have shared a project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;When exec the&amp;nbsp;DFA_SaveParaData(WR_DFLASH_PAR_ALARM_F_HALF, &amp;amp;g_unParData), you can see not all the sector data become 0xFF in address 0x2000_7800 after exec&amp;nbsp;FLASH_DRV_EraseSector in line 250 in DFA.c.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2019 06:15:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Questions-About-the-erase-and-program-DFLASH/m-p/946733#M5156</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2019-08-05T06:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Questions About the erase and program DFLASH</title>
      <link>https://community.nxp.com/t5/S32K/Questions-About-the-erase-and-program-DFLASH/m-p/946734#M5157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please see the below code, it masks interrupts globally.&lt;/P&gt;&lt;P&gt;When a peripheral interrupt is triggered&amp;nbsp;while the interrupts are masked globally, the interrupt request becomes pending (NVIC_ISPR) until ENABLE_INTERRUPTS() is called.&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/87731i0FB3013A2BA5A049/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;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87775i3F661A24707E9CD9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87992i6AE040C94F3307C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There a typo in the address, right?&amp;nbsp;0x1000_7800&lt;/P&gt;&lt;P&gt;Please&amp;nbsp;read SIM_FCFG1_DEPART to see if it is partitioned.&lt;/P&gt;&lt;P&gt;And the FTFC error bits after each FTFC operation: FTFC_FSTAT[ACCERR, FPVIOL, MGSTAT].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2019 07:55:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Questions-About-the-erase-and-program-DFLASH/m-p/946734#M5157</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-08-05T07:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Questions About the erase and program DFLASH</title>
      <link>https://community.nxp.com/t5/S32K/Questions-About-the-erase-and-program-DFLASH/m-p/946735#M5158</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;No typo in the address 0x10007800, I use S32K144, the DFLASH size is 64K types, and DFLASH start address is 0x10000000.&lt;/P&gt;&lt;P&gt;As you can see in the code----FLASH_DRV_DEFlashPartition,&amp;nbsp;Config the DFLASH size is 32K Bytes, FEE size is 4K Bytes.&lt;SPAN&gt;0x10007800 is within the DFLASH address(EEPROM backup is also 32K bytes)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;No error after FTFC operation--------return&amp;nbsp;STATUS_SUCCESS, but the result is not OK.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2019 08:48:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Questions-About-the-erase-and-program-DFLASH/m-p/946735#M5158</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2019-08-05T08:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Questions About the erase and program DFLASH</title>
      <link>https://community.nxp.com/t5/S32K/Questions-About-the-erase-and-program-DFLASH/m-p/946736#M5159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/赵子成"&gt;赵子成&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for clarification, you actually wrote: "... sector data become 0xFF in address 0x2000_7800 after ...".&lt;/P&gt;&lt;P&gt;I have problems to compile the project and it requires some debugging.&lt;/P&gt;&lt;P&gt;What is the SIM_FCFG1_DEPART value? Can you share the content of&amp;nbsp;FCCOB0 - FCCOBB before the command is launched and the memory view after the erase sector operation. Could you disable the DFlash prefetch buffer&amp;nbsp;OCMDR1[OCM1]?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2019 09:14:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Questions-About-the-erase-and-program-DFLASH/m-p/946736#M5159</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-08-08T09:14:16Z</dc:date>
    </item>
  </channel>
</rss>

