<?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>MCX MicrocontrollersのトピックRe: Using MCX N ROM API for Internal Flash Erase/Programming</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/Using-MCX-N-ROM-API-for-Internal-Flash-Erase-Programming/m-p/2040273#M2447</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/3989"&gt;@Vagni&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Which version of the SDK do you use?&amp;nbsp;Do you perhaps mean the demo named 'flashiap'?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="444555666.jpg" style="width: 467px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/322979iE1385220EC9E7F8C/image-size/large?v=v2&amp;amp;px=999" role="button" title="444555666.jpg" alt="444555666.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
    <pubDate>Sat, 08 Feb 2025 02:54:38 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2025-02-08T02:54:38Z</dc:date>
    <item>
      <title>Using MCX N ROM API for Internal Flash Erase/Programming</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Using-MCX-N-ROM-API-for-Internal-Flash-Erase-Programming/m-p/2039958#M2444</link>
      <description>&lt;P&gt;My application needs to store some configuration data on the MCXN547 internal Flash memory, so I started looking at the SDK&amp;nbsp;mcxn5xxevk_mcxromapi_flashiap_cm33_core0 example. I have some questions about it:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is the SysTick timer really needed? It is initialized to generate 1ms interrupt, but it seems not used.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;PRINTF("\r\n Config flash memory access time. \r\n"): actually, nothing is done, right?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;The example is configured to run at 150MHz mcu clock frequency, right? Internal Flash memory can be erased/programmed by firmware at 150MHz with 3 additional wait-state (like Clocks Config Tool does), right?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;MCXN547 &lt;SPAN class=""&gt;device embeds up to 2 MB of flash, implemented as 2 x 1MB flash block instances. The example runs from the flash block #0 and erases/programs one sector&amp;nbsp; on the flash block #1. I verified the example also successfully erases/programs one sector on the same&amp;nbsp;flash block #0, is it true?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;If I try to erase the same sector written before, the&amp;nbsp;FLASH_VerifyErase() returns 154 error code: what is it? The 154 error code is not listed in the MCXN Reference Manual among the possible return codes of the FLASH APIs.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Even if&amp;nbsp;FLASH_VerifyErase() returns 154 error code, the data program and verify are then&amp;nbsp; successfull: is it normal?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;The example has both SysTick timer and UART interrupts enabled while performing internal flash accesses: is it right? Or should all the interrupts be disabled while erasing/programming the same flash block where the ISR vector table is defined?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 11:48:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Using-MCX-N-ROM-API-for-Internal-Flash-Erase-Programming/m-p/2039958#M2444</guid>
      <dc:creator>Vagni</dc:creator>
      <dc:date>2025-02-07T11:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using MCX N ROM API for Internal Flash Erase/Programming</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Using-MCX-N-ROM-API-for-Internal-Flash-Erase-Programming/m-p/2040273#M2447</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/3989"&gt;@Vagni&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Which version of the SDK do you use?&amp;nbsp;Do you perhaps mean the demo named 'flashiap'?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="444555666.jpg" style="width: 467px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/322979iE1385220EC9E7F8C/image-size/large?v=v2&amp;amp;px=999" role="button" title="444555666.jpg" alt="444555666.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2025 02:54:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Using-MCX-N-ROM-API-for-Internal-Flash-Erase-Programming/m-p/2040273#M2447</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2025-02-08T02:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using MCX N ROM API for Internal Flash Erase/Programming</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Using-MCX-N-ROM-API-for-Internal-Flash-Erase-Programming/m-p/2041884#M2464</link>
      <description>&lt;P&gt;Hello Alice,&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;SDK_2.x_MCXN547 v24.12.00 with &lt;SPAN&gt;MCUXpresso IDE v24.12&amp;nbsp;&lt;/SPAN&gt;and I refer to the \driver_examples\mcxromapi_flashiap_cm33_core0 example.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 15:05:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Using-MCX-N-ROM-API-for-Internal-Flash-Erase-Programming/m-p/2041884#M2464</guid>
      <dc:creator>Vagni</dc:creator>
      <dc:date>2025-02-11T15:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using MCX N ROM API for Internal Flash Erase/Programming</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Using-MCX-N-ROM-API-for-Internal-Flash-Erase-Programming/m-p/2043182#M2472</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/3989"&gt;@Vagni&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;FONT size="4"&gt;I'll answer your questions one by one.&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;Is the SysTick timer really needed? It is initialized to generate 1ms interrupt, but it seems not used.&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;FONT size="4"&gt;-&amp;gt;&amp;gt; No, it is not needed.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;&lt;SPAN&gt;PRINTF("\r\n Config flash memory access time. \r\n"): actually, nothing is done, right?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN&gt;-&amp;gt;&amp;gt; Yes.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;&lt;SPAN&gt;The example is configured to run at 150MHz mcu clock frequency, right? Internal Flash memory can be erased/programmed by firmware at 150MHz with 3 additional wait-state (like Clocks Config Tool does), right?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN&gt;-&amp;gt;&amp;gt;Yes.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;&lt;SPAN&gt;MCXN547&amp;nbsp;&lt;SPAN class=""&gt;device embeds up to 2 MB of flash, implemented as 2 x 1MB flash block instances. The example runs from the flash block #0 and erases/programs one sector&amp;nbsp; on the flash block #1. I verified the example also successfully erases/programs one sector on the same&amp;nbsp;flash block #0, is it true?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;-&amp;gt;&amp;gt;Yes,&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;It can work well as long as you don't erase or program the address that your code uses. Also, the start address must be sector - size aligned (that is, a multiple of 8 KB).&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;If I try to erase the same sector written before, the&amp;nbsp;FLASH_VerifyErase() returns 154 error code: what is it? The 154 error code is not listed in the MCXN Reference Manual among the possible return codes of the FLASH APIs.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Even if&amp;nbsp;FLASH_VerifyErase() returns 154 error code, the data program and verify are then&amp;nbsp; successfull: is it normal?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;-&amp;gt;&amp;gt; About the two questions, please send your project that can reproduce the issue. Thanks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;The example has both SysTick timer and UART interrupts enabled while performing internal flash accesses: is it right? Or should all the interrupts be disabled while erasing/programming the same flash block where the ISR vector table is defined?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;-&amp;gt;&amp;gt; This is just a demo, in real project, we recommend disable all the interrupt when erasing/programming flash.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Hope it helps.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;BR&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Alice&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 07:43:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Using-MCX-N-ROM-API-for-Internal-Flash-Erase-Programming/m-p/2043182#M2472</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2025-02-13T07:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using MCX N ROM API for Internal Flash Erase/Programming</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Using-MCX-N-ROM-API-for-Internal-Flash-Erase-Programming/m-p/2043549#M2478</link>
      <description>&lt;P&gt;Hello Alice,&lt;/P&gt;&lt;P&gt;Attached you find my project I used to check the ROM API functionalities for the internal flash erasing/programming.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 15:53:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Using-MCX-N-ROM-API-for-Internal-Flash-Erase-Programming/m-p/2043549#M2478</guid>
      <dc:creator>Vagni</dc:creator>
      <dc:date>2025-02-13T15:53:18Z</dc:date>
    </item>
    <item>
      <title>o @Re: Using MCX N ROM API for Internal Flash Erase/Programming</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Using-MCX-N-ROM-API-for-Internal-Flash-Erase-Programming/m-p/2045359#M2489</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/3989"&gt;@Vagni&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your project.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have reproduce the issue on my side.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1739785744455.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/324257i761A951CEFE759D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1739785744455.png" alt="Alice_Yang_0-1739785744455.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I will confirm with internal about the meaning of 154 return code. Thanks for your patience.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 09:50:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Using-MCX-N-ROM-API-for-Internal-Flash-Erase-Programming/m-p/2045359#M2489</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2025-02-17T09:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using MCX N ROM API for Internal Flash Erase/Programming</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Using-MCX-N-ROM-API-for-Internal-Flash-Erase-Programming/m-p/2045839#M2491</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/3989"&gt;@Vagni&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your patience.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;After I confirmed with our internal team,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;"The error code 153 and 154 will be added in the latest MCX N RM, the new RM is still under review and will be published on NXP website at the end of Feb or early of March. You can see the description for error code 154 in below figure.&lt;/P&gt;
&lt;DIV id="tinyMceEditor_3e146d1ea6deb3Alice_Yang_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="tinyMceEditor_3e146d1ea6deb3Alice_Yang_3" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="code.jpg" style="width: 872px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/324378i558B057B292CCE73/image-size/large?v=v2&amp;amp;px=999" role="button" title="code.jpg" alt="code.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditor_3e146d1ea6deb3Alice_Yang_2" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;For the sector erase, I think we can erase the sector after writing, but please note that the code execution should not be on the same sector at this moment.&lt;/P&gt;
&lt;P&gt;"&lt;/P&gt;
&lt;P&gt;Sorry for the inconvenience for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 02:11:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Using-MCX-N-ROM-API-for-Internal-Flash-Erase-Programming/m-p/2045839#M2491</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2025-02-18T02:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using MCX N ROM API for Internal Flash Erase/Programming</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Using-MCX-N-ROM-API-for-Internal-Flash-Erase-Programming/m-p/2048288#M2533</link>
      <description>&lt;P&gt;OK Alice, error code 154 indicates the flash sector is not erased.&lt;/P&gt;&lt;P&gt;Also my added direct reading back from flash fails in verifying erased sector from the first beginning address (at destAdrss = 0x000FC000 read 0x00000000 instead of 0xFFFFFFFF).&lt;/P&gt;&lt;P&gt;But the debug memory reading reports the flash sector is actually erased:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sector_erased.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/324972iE57A91303968F949/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sector_erased.png" alt="sector_erased.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I added a delay of 1 sec after the&amp;nbsp;&lt;SPAN&gt;FLASH_Erase() call (which never fails), but I get no behavior change.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyway, the subsequent flash write is always (and unexpectedly) successful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 15:04:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Using-MCX-N-ROM-API-for-Internal-Flash-Erase-Programming/m-p/2048288#M2533</guid>
      <dc:creator>Vagni</dc:creator>
      <dc:date>2025-02-20T15:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using MCX N ROM API for Internal Flash Erase/Programming</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Using-MCX-N-ROM-API-for-Internal-Flash-Erase-Programming/m-p/2048719#M2540</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/3989"&gt;@Vagni&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="inter-wCaKYV"&gt;
&lt;DIV class="container-ncFTrL"&gt;
&lt;DIV class="item-KOa3z_"&gt;
&lt;DIV class="container-rBgb6B chrome70-container"&gt;
&lt;DIV class="inner-LOKNYu inner-item-AQrr_W" data-target-id="message-box-target-id" data-testid="union_message"&gt;
&lt;DIV class="message-block-container-CKPFh2" data-testid="message-block-container"&gt;
&lt;DIV class="message-box-y4MH8s" data-testid="receive_message"&gt;
&lt;DIV class="message-box-content-wrapper-fgNGpz"&gt;
&lt;DIV class="message-content message-box-content-xoCEoU receive-message-box-content-bNaFpa samantha-message-box-content-gWlptz" data-testid="message_content"&gt;
&lt;DIV class="container-ZYIsnH flow-markdown-body theme-samantha-Nbr9UN" dir="ltr" data-testid="message_text_content" data-show-indicator="false"&gt;
&lt;DIV class="auto-hide-last-sibling-br paragraph-JOTKXA paragraph-element br-paragraph-space"&gt;How about changing to another flash address? I will also test it on my side.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="suggest-message-list-wrapper-LTVHg4" data-testid="suggest_message_list"&gt;
&lt;DIV class="suggest-message-XIbh7B no-hover-CltOmF no-padding-left-tS3RZa"&gt;
&lt;DIV class="dot-flashing-o4D5Q6"&gt;
&lt;DIV class="circle-htTGuq"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="circle-htTGuq"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="suggest-message-list-wrapper-LTVHg4" data-testid="suggest_message_list"&gt;BR&lt;/DIV&gt;
&lt;DIV class="suggest-message-list-wrapper-LTVHg4" data-testid="suggest_message_list"&gt;Alice&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="top-dN_PSZ"&gt;
&lt;DIV class="container-rBgb6B chrome70-container"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="container-rBgb6B chrome70-container"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Feb 2025 03:00:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Using-MCX-N-ROM-API-for-Internal-Flash-Erase-Programming/m-p/2048719#M2540</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2025-02-21T03:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using MCX N ROM API for Internal Flash Erase/Programming</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Using-MCX-N-ROM-API-for-Internal-Flash-Erase-Programming/m-p/2051539#M2570</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/3989"&gt;@Vagni&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your patience. I have confirmed with our internal team.&lt;/P&gt;
&lt;P&gt;This issue is caused by not invalidate cache after erasing/programing flash, you can add below macro:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;#define LPCAC_INVALIDATE&amp;nbsp;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditoryang_zhang_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;Then copy fsl_cache_lpcac.c/h files to drivers folder and re-build the project, you will see the flash erase verify error code will disappear.&lt;/P&gt;
&lt;P&gt;We have created a ticket to SDK team to update SDK example.&lt;/P&gt;
&lt;P&gt;Sorry for the inconvenience for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;DIV id="tinyMceEditor_404d1a39596167Alice_Yang_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 08:48:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Using-MCX-N-ROM-API-for-Internal-Flash-Erase-Programming/m-p/2051539#M2570</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2025-02-26T08:48:31Z</dc:date>
    </item>
  </channel>
</rss>

