<?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: LPC55S28 Internal Flash Write Operation in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-Internal-Flash-Write-Operation/m-p/1894793#M56320</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202847"&gt;@_Ferrari_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you are right.&lt;SPAN&gt;&amp;nbsp;Decrease the clock speed from 150MHz to 96MHz, perform the write operation, and then raise it back to 150MHz. About change clock code, you can refer to clock_config..c file.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2024 03:03:22 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2024-06-27T03:03:22Z</dc:date>
    <item>
      <title>LPC55S28 Internal Flash Write Operation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-Internal-Flash-Write-Operation/m-p/1894056#M56312</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I'm developing an application running on an LPC55S28 CPU at 150MHz that requires writing data to the internal flash memory.&lt;/P&gt;&lt;P&gt;According to the datasheet, write operations might necessitate a lower clock speed. I plan to decrease the clock speed from 150MHz to 96MHz, perform the write operation, and then raise it back to 150MHz.&lt;/P&gt;&lt;P&gt;Could you please review this approach and provide any recommendations for the correct procedure? If possible, a working code sample demonstrating the clock switching and flash write operation would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you very much for your help and cooperation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 06:07:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-Internal-Flash-Write-Operation/m-p/1894056#M56312</guid>
      <dc:creator>_Ferrari_</dc:creator>
      <dc:date>2024-06-26T06:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S28 Internal Flash Write Operation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-Internal-Flash-Write-Operation/m-p/1894793#M56320</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202847"&gt;@_Ferrari_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you are right.&lt;SPAN&gt;&amp;nbsp;Decrease the clock speed from 150MHz to 96MHz, perform the write operation, and then raise it back to 150MHz. About change clock code, you can refer to clock_config..c file.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 03:03:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-Internal-Flash-Write-Operation/m-p/1894793#M56320</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-06-27T03:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S28 Internal Flash Write Operation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-Internal-Flash-Write-Operation/m-p/1897276#M56345</link>
      <description>&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;If I understand I have to call&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;BOARD_BootClockPLL96M(); // to set the clock at 96MHz

writeFlashMemory(); // to write the internal flash

BOARD_BootClockPLL150M(); // to return back to 150NHz clock&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it corretc ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 07:47:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-Internal-Flash-Write-Operation/m-p/1897276#M56345</guid>
      <dc:creator>_Ferrari_</dc:creator>
      <dc:date>2024-07-02T07:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S28 Internal Flash Write Operation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-Internal-Flash-Write-Operation/m-p/1897433#M56352</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202847"&gt;@_Ferrari_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes.&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>Tue, 02 Jul 2024 10:48:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-Internal-Flash-Write-Operation/m-p/1897433#M56352</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-07-02T10:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S28 Internal Flash Write Operation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-Internal-Flash-Write-Operation/m-p/1910645#M56477</link>
      <description>&lt;P&gt;dear &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works, but I have another problem.&lt;/P&gt;&lt;P&gt;Since this is an audio application, I can't modify the system clock. Many CPU-generated signals depend on it. Therefore, I decided to write to the flash during power-off. There's a hardware interface that detects the system supply voltage. When the voltage drops below 80 volts, the CPU stops generating hardware signals and starts writing to flash memory.&lt;/P&gt;&lt;P&gt;Unfortunately, the&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;BOARD_BootClockPLL96M() &lt;/LI-CODE&gt;&lt;P&gt;routine, which sets the clock to 96 MHz, takes too long, causing the system to power off before flash writing completes.&lt;/P&gt;&lt;P&gt;Could I possibly halve the system clock using the&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CLOCK_SetClkDiv(kCLOCK_DivAhbClk, 2U, false)&lt;/LI-CODE&gt;&lt;P&gt;routine, to set the clock under 100MHz ?&lt;/P&gt;&lt;P&gt;Thank you very much for your help and cooperation.&lt;BR /&gt;Best regards."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 14:44:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-Internal-Flash-Write-Operation/m-p/1910645#M56477</guid>
      <dc:creator>_Ferrari_</dc:creator>
      <dc:date>2024-07-17T14:44:10Z</dc:date>
    </item>
  </channel>
</rss>

