<?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 LPC54018 persistent variable storage in single SPI Flash across power cycles in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-persistent-variable-storage-in-single-SPI-Flash-across/m-p/1595986#M51568</link>
    <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm using an LPC54S018 microcontroller with a single 16 MB SPIFI flash. &amp;nbsp;The application code is too large to fit into RAM and so I am using the XIP_IMAGE flag during compile. &amp;nbsp;I need to store variables in the flash for access across power cycles. &amp;nbsp;I have been following the steps listed in this forum post:&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/STORING-VARIABLES-IN-FLASH/m-p/650092" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/Kinetis-Microcontrollers/STORING-VARIABLES-IN-FLASH/m-p/650092&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;but I can't modify the "test" variable once the code is running, because it is read-only. &amp;nbsp;Is there a way to make the test variable read/write, and able to be saved across power cycles?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for your help,&lt;/DIV&gt;&lt;DIV&gt;Mitch&lt;/DIV&gt;</description>
    <pubDate>Wed, 08 Feb 2023 21:58:32 GMT</pubDate>
    <dc:creator>mitchkapa</dc:creator>
    <dc:date>2023-02-08T21:58:32Z</dc:date>
    <item>
      <title>LPC54018 persistent variable storage in single SPI Flash across power cycles</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-persistent-variable-storage-in-single-SPI-Flash-across/m-p/1595986#M51568</link>
      <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm using an LPC54S018 microcontroller with a single 16 MB SPIFI flash. &amp;nbsp;The application code is too large to fit into RAM and so I am using the XIP_IMAGE flag during compile. &amp;nbsp;I need to store variables in the flash for access across power cycles. &amp;nbsp;I have been following the steps listed in this forum post:&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/STORING-VARIABLES-IN-FLASH/m-p/650092" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/Kinetis-Microcontrollers/STORING-VARIABLES-IN-FLASH/m-p/650092&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;but I can't modify the "test" variable once the code is running, because it is read-only. &amp;nbsp;Is there a way to make the test variable read/write, and able to be saved across power cycles?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for your help,&lt;/DIV&gt;&lt;DIV&gt;Mitch&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Feb 2023 21:58:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-persistent-variable-storage-in-single-SPI-Flash-across/m-p/1595986#M51568</guid>
      <dc:creator>mitchkapa</dc:creator>
      <dc:date>2023-02-08T21:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 persistent variable storage in single SPI Flash across power cycles</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-persistent-variable-storage-in-single-SPI-Flash-across/m-p/1596359#M51580</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/193669"&gt;@mitchkapa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is XIP demo under SDK demo, you can have a look:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1675930047424.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/210256iDACA24A4D01CEC9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1675930047424.png" alt="Alice_Yang_0-1675930047424.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&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;</description>
      <pubDate>Thu, 09 Feb 2023 08:07:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-persistent-variable-storage-in-single-SPI-Flash-across/m-p/1596359#M51580</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2023-02-09T08:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 persistent variable storage in single SPI Flash across power cycles</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-persistent-variable-storage-in-single-SPI-Flash-across/m-p/1596869#M51589</link>
      <description>&lt;P&gt;Hi, Alice, thanks for your reply but I am afraid that demo isn't helpful for us.&amp;nbsp; We are currently able to do XIP but our problem is specifically that we cannot do an Erase/Write within another partition of the same physical flash while we are XIP from that same flash part.&lt;/P&gt;&lt;P&gt;I am now exploring if we can execute our code from Board SDRAM which will then allow us to manipulate the SPI Flash while in application.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 22:27:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-persistent-variable-storage-in-single-SPI-Flash-across/m-p/1596869#M51589</guid>
      <dc:creator>mitchkapa</dc:creator>
      <dc:date>2023-02-09T22:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 persistent variable storage in single SPI Flash across power cycles</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-persistent-variable-storage-in-single-SPI-Flash-across/m-p/1598096#M51620</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/193669"&gt;@mitchkapa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How about "lpcxpresso54s018_spifi_polling_transfer"?&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, 13 Feb 2023 10:08:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-persistent-variable-storage-in-single-SPI-Flash-across/m-p/1598096#M51620</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2023-02-13T10:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 persistent variable storage in single SPI Flash across power cycles</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-persistent-variable-storage-in-single-SPI-Flash-across/m-p/1598912#M51632</link>
      <description>&lt;P&gt;I think this example does cover some of what we need to accomplish.&amp;nbsp; However, our code is too large to fit into SRAMX.&amp;nbsp; I think we need to be able to execute from Board_SDRAM.&amp;nbsp; Is there any example code available for that?&lt;/P&gt;&lt;P&gt;I found document AN12423 but I haven't had success trying to follow it yet.&amp;nbsp; Possibly because of section 2.3 of that document.&amp;nbsp; It was unclear to me exactly where those code changes for the MPU needed to be made.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 13:58:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-persistent-variable-storage-in-single-SPI-Flash-across/m-p/1598912#M51632</guid>
      <dc:creator>mitchkapa</dc:creator>
      <dc:date>2023-02-14T13:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 persistent variable storage in single SPI Flash across power cycles</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-persistent-variable-storage-in-single-SPI-Flash-across/m-p/1600265#M51651</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/193669"&gt;@mitchkapa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;About&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;MPU&amp;nbsp; configuration, please refer to &amp;lt;Arm®v7-M Architecture Reference Manual&amp;gt; -&amp;gt;&amp;nbsp;B3.5.7 &lt;SPAN class=""&gt;MPU Region Number Register, &lt;SPAN class="highlight selected appended"&gt;MPU_RNR, you can download from Arm website, I also attached it for you.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="highlight selected appended"&gt;BR&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="highlight selected appended"&gt;Alice&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 07:25:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-persistent-variable-storage-in-single-SPI-Flash-across/m-p/1600265#M51651</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2023-02-16T07:25:00Z</dc:date>
    </item>
  </channel>
</rss>

