<?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>LPC Microcontrollers中的主题 Re: LPC55S16 Issue Using Custom Flash Section For Data</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16-Issue-Using-Custom-Flash-Section-For-Data/m-p/1897053#M56342</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192892"&gt;@jmorel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any where? We can not&amp;nbsp; place the data into memory that code used.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you check the size of your image, then reserve the data after image.&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 02:25:37 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2024-07-02T02:25:37Z</dc:date>
    <item>
      <title>LPC55S16 Issue Using Custom Flash Section For Data</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16-Issue-Using-Custom-Flash-Section-For-Data/m-p/1877579#M56168</link>
      <description>&lt;P&gt;I'm trying to reserve a section of memory for a struct in my code but the second it tries to edit the stored value it hard faults. is their a specific flag that needs to be set to allow the code in execution to edit a reserved section of flash?&lt;BR /&gt;&lt;BR /&gt;this is what i have set in my .Id file&lt;/P&gt;&lt;P&gt;m_Diagnotics (RX) : ORIGIN = 0x00000800, LENGTH = 0x00000200&lt;/P&gt;&lt;P&gt;.Diagnotics :&lt;BR /&gt;{&lt;BR /&gt;KEEP(*(.Diagnotics)) /* keep my variable even if not referenced */&lt;BR /&gt;. = ALIGN(4);&lt;BR /&gt;__Diagnotics_start__ = .;&lt;BR /&gt;*(.Diagnotics)&lt;BR /&gt;*(.Diagnotics*)&lt;BR /&gt;. = ALIGN(4);&lt;BR /&gt;__Diagnotics_end__ = .;&lt;BR /&gt;} &amp;gt; m_Diagnotics&lt;BR /&gt;ASSERT( LENGTH(m_Diagnotics) &amp;gt;= (__Diagnotics_end__ - __Diagnotics_start__), "m_Diagnotics overflowed !")&lt;/P&gt;&lt;P&gt;in the code:&lt;/P&gt;&lt;P&gt;Diagnostic_Data_t stDiagnostics_Flash __attribute__((section(".Diagnotics")));&lt;/P&gt;&lt;P&gt;and the second it tries to write to the struct it hard faults.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 20:13:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16-Issue-Using-Custom-Flash-Section-For-Data/m-p/1877579#M56168</guid>
      <dc:creator>jmorel</dc:creator>
      <dc:date>2024-05-29T20:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S16 Issue Using Custom Flash Section For Data</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16-Issue-Using-Custom-Flash-Section-For-Data/m-p/1878052#M56173</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192892"&gt;@jmorel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Recommend refer to " 20.13.1 Placing code and data into different memory regions " of &amp;lt;MCUXpresso IDE User guide&amp;gt;. This method does not require any change to the source code.&lt;/P&gt;
&lt;P&gt;If you want to change code by hand like your sharing, please uncheck “Manager linker script".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_1-1717059254884.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/281714iEB55EA30E5310F6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_1-1717059254884.png" alt="Alice_Yang_1-1717059254884.png" /&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 09:06:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16-Issue-Using-Custom-Flash-Section-For-Data/m-p/1878052#M56173</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-05-30T09:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S16 Issue Using Custom Flash Section For Data</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16-Issue-Using-Custom-Flash-Section-For-Data/m-p/1896710#M56339</link>
      <description>&lt;P&gt;thanks for the help in the end i had to reserve the location in the data field of the flash memory. if i try and reserve it any where else it hard faults when i try to write to it, must be a protection flag that is set. we atleast got a working solution but if you know what might be the setting required would be helpful. im also not using mcuxpresso we long moved away from it due to crash related issue this is why im using the .id file, this is all in vscode.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 13:53:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16-Issue-Using-Custom-Flash-Section-For-Data/m-p/1896710#M56339</guid>
      <dc:creator>jmorel</dc:creator>
      <dc:date>2024-07-01T13:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S16 Issue Using Custom Flash Section For Data</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16-Issue-Using-Custom-Flash-Section-For-Data/m-p/1897053#M56342</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192892"&gt;@jmorel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any where? We can not&amp;nbsp; place the data into memory that code used.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you check the size of your image, then reserve the data after image.&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 02:25:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16-Issue-Using-Custom-Flash-Section-For-Data/m-p/1897053#M56342</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-07-02T02:25:37Z</dc:date>
    </item>
  </channel>
</rss>

