<?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 FS32K118 code Flash Erasable times in S32K</title>
    <link>https://community.nxp.com/t5/S32K/FS32K118-code-Flash-Erasable-times/m-p/1616439#M21418</link>
    <description>&lt;P&gt;问题:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 压力升级测试6W次，开始偶现FLASH擦除失败问题。 复现概率1/300&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 擦除使用库函数 address = const 0x0000e000U,size = const 0x32000U:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;出现问题ret不为seccess。&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; 现在急需想寻求帮，flash可编程最大次数为？&amp;nbsp;S32K-RM.pdf中是否有相关说明，如果有请指出。&lt;/P&gt;&lt;P&gt;谢谢。&lt;/P&gt;&lt;LI-CODE lang="c"&gt;uint16_t FlashErase(uint32_t address, uint32_t size)
{
	uint16_t ret = STATUS_SUCCESS;

	/*关全局中断*/
	INT_SYS_DisableIRQGlobal();

	/*erase*/
	ret = FLASH_DRV_EraseSector(&amp;amp;g_tflashSSDConfig, address, size);
	if(STATUS_SUCCESS != ret)
	{
		INT_SYS_EnableIRQGlobal();
		return ret;
	}
//	DEV_ASSERT(STATUS_SUCCESS == ret);

    /* Verify  */
    ret = FLASH_DRV_VerifySection(&amp;amp;g_tflashSSDConfig, address, size / FTFx_DPHRASE_SIZE, 1u);

    /*开全局中断*/
	INT_SYS_EnableIRQGlobal();

    return ret;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;The pressure upgrade test was conducted for 6W times, and the flash erase failure problem began to occur occasionally. Recurrence probability 1/300&lt;/P&gt;&lt;P&gt;Erase using library function address=const 0x0000e000U, size=const 0x32000U:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When there is a problem, ret is not second.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now we need help urgently. What is the maximum number of times flash can be programmed? Whether there are relevant instructions in S32K-RM.pdf. If yes, please indicate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2023 06:13:49 GMT</pubDate>
    <dc:creator>sunxiaoyi</dc:creator>
    <dc:date>2023-03-16T06:13:49Z</dc:date>
    <item>
      <title>FS32K118 code Flash Erasable times</title>
      <link>https://community.nxp.com/t5/S32K/FS32K118-code-Flash-Erasable-times/m-p/1616439#M21418</link>
      <description>&lt;P&gt;问题:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 压力升级测试6W次，开始偶现FLASH擦除失败问题。 复现概率1/300&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 擦除使用库函数 address = const 0x0000e000U,size = const 0x32000U:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;出现问题ret不为seccess。&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; 现在急需想寻求帮，flash可编程最大次数为？&amp;nbsp;S32K-RM.pdf中是否有相关说明，如果有请指出。&lt;/P&gt;&lt;P&gt;谢谢。&lt;/P&gt;&lt;LI-CODE lang="c"&gt;uint16_t FlashErase(uint32_t address, uint32_t size)
{
	uint16_t ret = STATUS_SUCCESS;

	/*关全局中断*/
	INT_SYS_DisableIRQGlobal();

	/*erase*/
	ret = FLASH_DRV_EraseSector(&amp;amp;g_tflashSSDConfig, address, size);
	if(STATUS_SUCCESS != ret)
	{
		INT_SYS_EnableIRQGlobal();
		return ret;
	}
//	DEV_ASSERT(STATUS_SUCCESS == ret);

    /* Verify  */
    ret = FLASH_DRV_VerifySection(&amp;amp;g_tflashSSDConfig, address, size / FTFx_DPHRASE_SIZE, 1u);

    /*开全局中断*/
	INT_SYS_EnableIRQGlobal();

    return ret;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;The pressure upgrade test was conducted for 6W times, and the flash erase failure problem began to occur occasionally. Recurrence probability 1/300&lt;/P&gt;&lt;P&gt;Erase using library function address=const 0x0000e000U, size=const 0x32000U:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When there is a problem, ret is not second.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now we need help urgently. What is the maximum number of times flash can be programmed? Whether there are relevant instructions in S32K-RM.pdf. If yes, please indicate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 06:13:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS32K118-code-Flash-Erasable-times/m-p/1616439#M21418</guid>
      <dc:creator>sunxiaoyi</dc:creator>
      <dc:date>2023-03-16T06:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: FS32K118 code Flash Erasable times</title>
      <link>https://community.nxp.com/t5/S32K/FS32K118-code-Flash-Erasable-times/m-p/1616608#M21425</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/214249"&gt;@sunxiaoyi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;How many times did you erase the sectors?&lt;/P&gt;
&lt;P&gt;Cycling endurance is guaranteed up to 1k cycles.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1678958489493.png" style="width: 816px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/214890i76D5BEDCEBF57F3E/image-dimensions/816x456?v=v2" width="816" height="456" role="button" title="danielmartynek_0-1678958489493.png" alt="danielmartynek_0-1678958489493.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 09:22:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS32K118-code-Flash-Erasable-times/m-p/1616608#M21425</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-03-16T09:22:44Z</dc:date>
    </item>
  </channel>
</rss>

