<?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 flash erase problem in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K144-flash-erase-problem/m-p/978116#M5614</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;someone help please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jan 2020 05:38:57 GMT</pubDate>
    <dc:creator>ayanosun</dc:creator>
    <dc:date>2020-01-17T05:38:57Z</dc:date>
    <item>
      <title>S32K144 flash erase problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-flash-erase-problem/m-p/978115#M5613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I met some flash erase problem when I modified the&amp;nbsp;flash_partitioning_s32k144 example as below.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;__attribute__((section (".mysection1"))) uint32_t Flash_data[1024] =&lt;BR /&gt;{&lt;BR /&gt; 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,&lt;BR /&gt; 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,&lt;BR /&gt; 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1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&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt; /* Flash */&lt;BR /&gt; m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x00000400&lt;BR /&gt; m_flash_config (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010&lt;BR /&gt; m_text (RX) : ORIGIN = 0x00000410, LENGTH = 0x0007DBF0&lt;BR /&gt; &lt;BR /&gt; m_text2 (RW) : ORIGIN = 0x00070000, LENGTH = 0x00001000&lt;/P&gt;&lt;P&gt;/* SRAM_L */&lt;BR /&gt; m_data (RW) : ORIGIN = 0x1FFF8000, LENGTH = 0x00008000&lt;/P&gt;&lt;P&gt;/* SRAM_U */&lt;BR /&gt; m_data_2 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00007000&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;.MySection1 :&lt;BR /&gt; {&lt;BR /&gt; . = ALIGN(4);&lt;BR /&gt; KEEP(*(.mysection1)) &lt;BR /&gt; . = ALIGN(4);&lt;BR /&gt; } &amp;gt; m_text2&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pCallBack = (flash_callback_t)CCIF_Callback;&lt;BR /&gt; flashSSDConfig.CallBack = pCallBack;&lt;/P&gt;&lt;P&gt;/* Erase the last PFlash sector */&lt;BR /&gt; size = FEATURE_FLS_PF_BLOCK_SECTOR_SIZE;&lt;BR /&gt; ret = FLASH_DRV_EraseSector(&amp;amp;flashSSDConfig, (uint32_t)&amp;amp;Flash_data[0], size);&lt;BR /&gt; DEV_ASSERT(STATUS_SUCCESS == ret);&lt;/P&gt;&lt;P&gt;/* Disable Callback */&lt;BR /&gt; flashSSDConfig.CallBack = NULL_CALLBACK;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But the problem is that it didn't&amp;nbsp;&lt;SPAN&gt;erase&amp;nbsp;flash bolck after 0x70000. I can run the example code properly and erase the flash. My code is attached. My&amp;nbsp;crystal oscillator is 16M, you may modify it after import.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2020 03:01:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-flash-erase-problem/m-p/978115#M5613</guid>
      <dc:creator>ayanosun</dc:creator>
      <dc:date>2020-01-08T03:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 flash erase problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-flash-erase-problem/m-p/978116#M5614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;someone help please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2020 05:38:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-flash-erase-problem/m-p/978116#M5614</guid>
      <dc:creator>ayanosun</dc:creator>
      <dc:date>2020-01-17T05:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 flash erase problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-flash-erase-problem/m-p/978117#M5615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the information you provided I found something that got my attention. Where you specify the memory areas you have the following:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="color: #51626f; border: 0px;"&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt;/* Flash */&lt;BR /&gt;m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x00000400&lt;BR /&gt;m_flash_config (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010&lt;BR /&gt;&lt;STRONG&gt;m_text (RX) : ORIGIN = 0x00000410, LENGTH = 0x0007DBF0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;m_text2 (RW) : ORIGIN = 0x00070000, LENGTH = 0x00001000&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #51626f; border: 0px;"&gt;/* SRAM_L */&lt;BR /&gt;m_data (RW) : ORIGIN = 0x1FFF8000, LENGTH = 0x00008000&lt;/P&gt;&lt;P style="color: #51626f; border: 0px;"&gt;/* SRAM_U */&lt;BR /&gt;m_data_2 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00007000&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="color: #51626f; border: 0px;"&gt;Here you have a problem, the area m_text starts at 0x400 and its length is 0x7DBF0 which means that it will end at address 0x7E000, but you have that the origin of the area m_text2 is 0x70000. The origin of the second area is located at an address that is also being occupied by the m_text area.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Victor&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2020 18:16:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-flash-erase-problem/m-p/978117#M5615</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2020-01-20T18:16:40Z</dc:date>
    </item>
  </channel>
</rss>

