<?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: Write operation for internal flash in mcxa153 is not working in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/Write-operation-for-internal-flash-in-mcxa153-is-not-working/m-p/1868764#M348</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/232236"&gt;@Gurunath&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) "&lt;SPAN&gt;below functions didn't work for me :&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;-&amp;gt;&amp;gt; Please describe more detail about how it didn't work. What the return status of "&lt;SPAN&gt;flash_program_page&amp;nbsp;&lt;/SPAN&gt;"?&lt;/P&gt;
&lt;P&gt;2) Does the flashiap work well on your side? Please run it first.&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>Mon, 20 May 2024 09:25:44 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2024-05-20T09:25:44Z</dc:date>
    <item>
      <title>Write operation for internal flash in mcxa153 is not working</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Write-operation-for-internal-flash-in-mcxa153-is-not-working/m-p/1868376#M343</link>
      <description>&lt;P&gt;Hi, i want to use internal flash memory on mcxa-153 frdm development board, i went through the sdk example of flashiap in mcuxpresso ide , to know how to write or read from flash, but those API functions provided in example only works for read operation, any attempt to write to flash throws an bus fault.&lt;/P&gt;&lt;P&gt;below functions didnt work for me :-&lt;/P&gt;&lt;P&gt;FLASH_API-&amp;gt;flash_erase_sector(&amp;amp;s_flashDriver, destAdrss, pflashSectorSize, kFLASH_ApiEraseKey);&lt;/P&gt;&lt;P&gt;FLASH_API-&amp;gt;flash_program_page(&amp;amp;s_flashDriver, destAdrss, (uint8_t *)s_buffer, sizeof(s_buffer));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but any functions that attempts only to read flash is working fine like example:-&lt;/P&gt;&lt;P&gt;flash_verify_erase_sector(&amp;amp;s_flashDriver, destAdrss, pflashSectorSize);&lt;/P&gt;&lt;P&gt;FLASH_API-&amp;gt;flash_verify_program(&amp;amp;s_flashDriver, destAdrss, sizeof(s_buffer), (const uint8_t *)s_buffer, &amp;amp;failedAddress, &amp;amp;failedData);&lt;/P&gt;&lt;P&gt;FLASH_API-&amp;gt;flash_get_property(&amp;amp;s_flashDriver, kFLASH_PropertyPflashSectorSize, &amp;amp;pflashSectorSize);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;destAdrss given here is last second sector address and block base address is 0x00 :-&lt;/P&gt;&lt;P&gt;#define SECTOR_INDEX_FROM_END 2U&lt;/P&gt;&lt;P&gt;destAdrss = pflashBlockBase + (pflashTotalSize - (SECTOR_INDEX_FROM_END * pflashSectorSize));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can i please know if am missing something or using these functions wrongly?. Thank You&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 May 2024 07:36:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Write-operation-for-internal-flash-in-mcxa153-is-not-working/m-p/1868376#M343</guid>
      <dc:creator>Gurunath</dc:creator>
      <dc:date>2024-05-18T07:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Write operation for internal flash in mcxa153 is not working</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Write-operation-for-internal-flash-in-mcxa153-is-not-working/m-p/1868764#M348</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/232236"&gt;@Gurunath&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) "&lt;SPAN&gt;below functions didn't work for me :&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;-&amp;gt;&amp;gt; Please describe more detail about how it didn't work. What the return status of "&lt;SPAN&gt;flash_program_page&amp;nbsp;&lt;/SPAN&gt;"?&lt;/P&gt;
&lt;P&gt;2) Does the flashiap work well on your side? Please run it first.&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>Mon, 20 May 2024 09:25:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Write-operation-for-internal-flash-in-mcxa153-is-not-working/m-p/1868764#M348</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-05-20T09:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Write operation for internal flash in mcxa153 is not working</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Write-operation-for-internal-flash-in-mcxa153-is-not-working/m-p/1868776#M349</link>
      <description>&lt;P&gt;Hi, i tried to run the example as it is without modification, but it didnt work, it gave an hard fault(bus error).&lt;/P&gt;&lt;P&gt;this error occurs only when functions like erase_sector or program_page were called(mostly those that performs write to flash).&lt;/P&gt;&lt;P&gt;Since in example, erase sector is being called first, execution doesnt return from function call due to this error, so the error message was not print based on return value.&lt;/P&gt;&lt;P&gt;i have got these active faults when run,&lt;/P&gt;&lt;P&gt;Active faults&lt;BR /&gt;Bus Fault (BFSR)&lt;BR /&gt;BFARVALID (7) BusFault Address Register (BFAR) valid flag&lt;BR /&gt;PRECISERR (1) Precise data bus error&lt;BR /&gt;Hard Fault (HFSR)&lt;BR /&gt;FORCED (30) Indicates a forced hard fault, generated by escalation of a fault with configurable priority that cannot be handled, either because of priority or because it is disabled&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 09:43:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Write-operation-for-internal-flash-in-mcxa153-is-not-working/m-p/1868776#M349</guid>
      <dc:creator>Gurunath</dc:creator>
      <dc:date>2024-05-20T09:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Write operation for internal flash in mcxa153 is not working</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Write-operation-for-internal-flash-in-mcxa153-is-not-working/m-p/1874472#M378</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/232236"&gt;@Gurunath&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is because in the default state after booting, the flash is protected by the ROM using the MBC and no erase/write operations are allowed. There are two ways to solve this:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Modify the CMPA to configure the default MBC setting as mentioned in the example's readme.&lt;/LI&gt;
&lt;LI&gt;Configure the MBC in the application code, please refer to below code, this has been integrated in new SDK and will be released in next version.&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE class="lia-code-sample  language-c"&gt;&lt;CODE&gt;__attribute__ ((weak)) void SystemInit (void) {

  SCB-&amp;gt;CPACR |= ((3UL &amp;lt;&amp;lt; 0*2) | (3UL &amp;lt;&amp;lt; 1*2));    /* set CP0, CP1 Full Access in Secure mode (enable PowerQuad) */
#if defined (__ARM_FEATURE_CMSE) &amp;amp;&amp;amp; (__ARM_FEATURE_CMSE == 3U)
  SCB_NS-&amp;gt;CPACR |= ((3UL &amp;lt;&amp;lt; 0*2) | (3UL &amp;lt;&amp;lt; 1*2));    /* set CP0, CP1 Full Access in Normal mode (enable PowerQuad) */
#endif /* (__ARM_FEATURE_CMSE) &amp;amp;&amp;amp; (__ARM_FEATURE_CMSE == 3U) */

  SCB-&amp;gt;NSACR |= ((3UL &amp;lt;&amp;lt; 0) | (3UL &amp;lt;&amp;lt; 10));   /* enable CP0, CP1, CP10, CP11 Non-secure Access */

#if defined(__MCUXPRESSO)
    extern void(*const g_pfnVectors[]) (void);
    SCB-&amp;gt;VTOR = (uint32_t) &amp;amp;g_pfnVectors;
#else
    extern void *__Vectors;
    SCB-&amp;gt;VTOR = (uint32_t) &amp;amp;__Vectors;
#endif
    /* Enable the LPCAC */
    SYSCON-&amp;gt;LPCAC_CTRL |= SYSCON_LPCAC_CTRL_LPCAC_MEM_REQ_MASK;
    SYSCON-&amp;gt;LPCAC_CTRL &amp;amp;= ~SYSCON_LPCAC_CTRL_DIS_LPCAC_MASK;

    /* Enable flash RWX when FLASH_ACL in IFR0 is invalid */
    if ((*((volatile const uint32_t *)(0x1000000)) == 0xFFFFFFFFU) ||
        ((*((volatile const uint32_t *)(0x1000000)) == 0x59630000U) &amp;amp;&amp;amp;
         (*((volatile const uint32_t *)(0x1000040)) == 0xFFFFFFFFU) &amp;amp;&amp;amp;
         (*((volatile const uint32_t *)(0x1000044)) == 0xFFFFFFFFU)))
    {
        /* Enable MBC register written with GLIKEY index15 */
        GLIKEY0-&amp;gt;CTRL_0 = 0x00060000U;
        GLIKEY0-&amp;gt;CTRL_0 = 0x0002000FU;
        GLIKEY0-&amp;gt;CTRL_0 = 0x0001000FU;
        GLIKEY0-&amp;gt;CTRL_1 = 0x00290000U;
        GLIKEY0-&amp;gt;CTRL_0 = 0x0002000FU;
        GLIKEY0-&amp;gt;CTRL_1 = 0x00280000U;
        GLIKEY0-&amp;gt;CTRL_0 = 0x0000000FU;

        /* Enable RWX for GLBAC0 */
        MBC0-&amp;gt;MBC_INDEX[0].MBC_MEMN_GLBAC[0] = 0x7700U;

        /* Use GLBAC0 for all flash block */
        for (uint8_t i = 0; i &amp;lt; 2U; i++)
        {
            MBC0-&amp;gt;MBC_INDEX[0].MBC_DOM0_MEM0_BLK_CFG_W[i] = 0x00000000U;
        }

        /* Disable MBC register written */
        GLIKEY0-&amp;gt;CTRL_0 = 0x0002000FU;
    }
  SystemInitHook();
}&lt;/CODE&gt;&lt;/PRE&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>Fri, 24 May 2024 09:15:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Write-operation-for-internal-flash-in-mcxa153-is-not-working/m-p/1874472#M378</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-05-24T09:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Write operation for internal flash in mcxa153 is not working</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Write-operation-for-internal-flash-in-mcxa153-is-not-working/m-p/1875338#M384</link>
      <description>&lt;P&gt;Hi Alice, Thanks for clearing my doubt, i tried modifying system_init(), as you said but am getiing an error as mentioned below:&lt;/P&gt;&lt;P&gt;/device/system_MCXA153.c:98:17: error: 'MBC_Type' has no member named 'MBC_INDEX'&lt;BR /&gt;98 | MBC0-&amp;gt;MBC_INDEX[0].MBC_MEMN_GLBAC[0] = 0x7700U;&lt;BR /&gt;| ^~&lt;BR /&gt;../device/system_MCXA153.c:103:21: error: 'MBC_Type' has no member named 'MBC_INDEX'&lt;BR /&gt;103 | MBC0-&amp;gt;MBC_INDEX[0].MBC_DOM0_MEM0_BLK_CFG_W[i] = 0x00000000U;&lt;/P&gt;&lt;P&gt;can you please help me with this?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 07:49:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Write-operation-for-internal-flash-in-mcxa153-is-not-working/m-p/1875338#M384</guid>
      <dc:creator>Gurunath</dc:creator>
      <dc:date>2024-05-27T07:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Write operation for internal flash in mcxa153 is not working</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Write-operation-for-internal-flash-in-mcxa153-is-not-working/m-p/1877991#M398</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/232236"&gt;@Gurunath&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry above code is for new version SDK v2.16.0.&lt;/P&gt;
&lt;P&gt;For SDK v2.14.0, please test below code:&lt;/P&gt;
&lt;DIV style="background-color: #ffffff; padding: 0px 0px 0px 2px;"&gt;
&lt;DIV style="color: #000000; background-color: #ffffff; font-family: 'Consolas'; font-size: 10pt; white-space: pre;"&gt;
&lt;BLOCKQUOTE&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;__attribute__&lt;/SPAN&gt;&lt;SPAN&gt; ((weak)) &lt;/SPAN&gt;&lt;SPAN&gt;void&lt;/SPAN&gt; &lt;SPAN&gt;SystemInit&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;void&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; SCB-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;CPACR&lt;/SPAN&gt;&lt;SPAN&gt; |= ((3UL &amp;lt;&amp;lt; 0*2) | (3UL &amp;lt;&amp;lt; 1*2)); &lt;/SPAN&gt;&lt;SPAN&gt;/* set CP0, CP1 Full Access in Secure mode (enable PowerQuad) */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background-color: #e0e0e0; margin: 0;"&gt;&lt;SPAN&gt;#if&lt;/SPAN&gt;&lt;SPAN&gt; defined (__ARM_FEATURE_CMSE) &amp;amp;&amp;amp; (__ARM_FEATURE_CMSE == 3U)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background-color: #e0e0e0; margin: 0;"&gt;&lt;SPAN&gt; SCB_NS-&amp;gt;CPACR |= ((3UL &amp;lt;&amp;lt; 0*2) | (3UL &amp;lt;&amp;lt; 1*2)); &lt;/SPAN&gt;&lt;SPAN&gt;/* set CP0, CP1 Full Access in Normal mode (enable PowerQuad) */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background-color: #e0e0e0; margin: 0;"&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt; &lt;SPAN&gt;/* (__ARM_FEATURE_CMSE) &amp;amp;&amp;amp; (__ARM_FEATURE_CMSE == 3U) */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; SCB-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;NSACR&lt;/SPAN&gt;&lt;SPAN&gt; |= ((3UL &amp;lt;&amp;lt; 0) | (3UL &amp;lt;&amp;lt; 10)); &lt;/SPAN&gt;&lt;SPAN&gt;/* enable CP0, CP1, CP10, CP11 Non-secure Access */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;#if&lt;/SPAN&gt;&lt;SPAN&gt; defined(__MCUXPRESSO)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;extern&lt;/SPAN&gt; &lt;SPAN&gt;void&lt;/SPAN&gt;&lt;SPAN&gt;(*&lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt;&lt;SPAN&gt; g_pfnVectors[]) (&lt;/SPAN&gt;&lt;SPAN&gt;void&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; SCB-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;VTOR&lt;/SPAN&gt;&lt;SPAN&gt; = (&lt;/SPAN&gt;&lt;SPAN&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;amp;g_pfnVectors;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background-color: #e0e0e0; margin: 0;"&gt;&lt;SPAN&gt;#else&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background-color: #e0e0e0; margin: 0;"&gt;&lt;SPAN&gt;extern&lt;/SPAN&gt; &lt;SPAN&gt;void&lt;/SPAN&gt;&lt;SPAN&gt; *__Vectors;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background-color: #e0e0e0; margin: 0;"&gt;&lt;SPAN&gt; SCB-&amp;gt;VTOR = (uint32_t) &amp;amp;__Vectors;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background-color: #e0e0e0; margin: 0;"&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;/* Enable the LPCAC */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; SYSCON-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;LPCAC_CTRL&lt;/SPAN&gt;&lt;SPAN&gt; |= SYSCON_LPCAC_CTRL_LPCAC_MEM_REQ_MASK;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; SYSCON-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;LPCAC_CTRL&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;= ~SYSCON_LPCAC_CTRL_DIS_LPCAC_MASK;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;/* Enable flash RWX when FLASH_ACL in IFR0 is invalid */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; ((*((&lt;/SPAN&gt;&lt;SPAN&gt;volatile&lt;/SPAN&gt; &lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN&gt; *)(0x1000000)) == 0xFFFFFFFFU) ||&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; ((*((&lt;/SPAN&gt;&lt;SPAN&gt;volatile&lt;/SPAN&gt; &lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN&gt; *)(0x1000000)) == 0x59630000U) &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; (*((&lt;/SPAN&gt;&lt;SPAN&gt;volatile&lt;/SPAN&gt; &lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN&gt; *)(0x1000040)) == 0xFFFFFFFFU) &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; (*((&lt;/SPAN&gt;&lt;SPAN&gt;volatile&lt;/SPAN&gt; &lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN&gt; *)(0x1000044)) == 0xFFFFFFFFU)))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;/* Enable MBC register written with GLIKEY index15 */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; GLIKEY0-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;CTRL_0&lt;/SPAN&gt;&lt;SPAN&gt; = 0x00060000U;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; GLIKEY0-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;CTRL_0&lt;/SPAN&gt;&lt;SPAN&gt; = 0x0002000FU;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; GLIKEY0-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;CTRL_0&lt;/SPAN&gt;&lt;SPAN&gt; = 0x0001000FU;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; GLIKEY0-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;CTRL_1&lt;/SPAN&gt;&lt;SPAN&gt; = 0x00290000U;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; GLIKEY0-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;CTRL_0&lt;/SPAN&gt;&lt;SPAN&gt; = 0x0002000FU;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; GLIKEY0-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;CTRL_1&lt;/SPAN&gt;&lt;SPAN&gt; = 0x00280000U;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; GLIKEY0-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;CTRL_0&lt;/SPAN&gt;&lt;SPAN&gt; = 0x0000000FU;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;/* Enable RWX for GLBAC0 */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; MBC0-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;MBC0_MEMN_GLBAC&lt;/SPAN&gt;&lt;SPAN&gt;[0] = 0x7700U;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;/* Use GLBAC0 for all flash block */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;// for (uint8_t i = 0; i &amp;lt; 2U; i++)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;// {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;// MBC0-&amp;gt;MBC_INDEX[0].MBC_DOM0_MEM0_BLK_CFG_W[i] = 0x00000000U;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;// }&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; MBC0-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;MBC_DOM0&lt;/SPAN&gt;&lt;SPAN&gt;[0].&lt;/SPAN&gt;&lt;SPAN&gt;MBC0_DOM_MEM0_BLK_CFG_W0&lt;/SPAN&gt;&lt;SPAN&gt; = 0x00000000U;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; MBC0-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;MBC_DOM0&lt;/SPAN&gt;&lt;SPAN&gt;[0].&lt;/SPAN&gt;&lt;SPAN&gt;MBC0_DOM_MEM0_BLK_CFG_W1&lt;/SPAN&gt;&lt;SPAN&gt; = 0x00000000U;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;/* Disable MBC register written */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; GLIKEY0-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;CTRL_0&lt;/SPAN&gt;&lt;SPAN&gt; = 0x0002000FU;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; SystemInitHook();&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 May 2024 07:48:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Write-operation-for-internal-flash-in-mcxa153-is-not-working/m-p/1877991#M398</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-05-30T07:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Write operation for internal flash in mcxa153 is not working</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Write-operation-for-internal-flash-in-mcxa153-is-not-working/m-p/1878878#M404</link>
      <description>&lt;P&gt;Thanks for the solution, It solved the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 09:49:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Write-operation-for-internal-flash-in-mcxa153-is-not-working/m-p/1878878#M404</guid>
      <dc:creator>Gurunath</dc:creator>
      <dc:date>2024-05-31T09:49:36Z</dc:date>
    </item>
  </channel>
</rss>

