<?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: Adding Data to Specific Memory Area in S32 SDK</title>
    <link>https://community.nxp.com/t5/S32-SDK/Adding-Data-to-Specific-Memory-Area/m-p/1498938#M2583</link>
    <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I founded the problem.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I was just adding the appheader in the MEMORY field, the addition in the SECTION field was missing.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Aug 2022 16:51:02 GMT</pubDate>
    <dc:creator>dsilva</dc:creator>
    <dc:date>2022-08-01T16:51:02Z</dc:date>
    <item>
      <title>Adding Data to Specific Memory Area</title>
      <link>https://community.nxp.com/t5/S32-SDK/Adding-Data-to-Specific-Memory-Area/m-p/1498884#M2579</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Hello.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I need to add some values in a specific area of s32k144 memory.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I'm using s32ds 2.2.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I added a new area definition to the linker as follows:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"m_appheader(RX) : ORIGIN = 0x00006800, LENGTH = 0x00000400"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;In the main.c file I added the following line:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;__atribute__ ((section(".appheader"))) const FLASH_APPHEADER_INFO APP_HEADER ={ ...DATA...};&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;The compilation runs without errors, the appheader appears in the map file, but when opening the hex or bin the data was not added.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;The entire appheader region is set to 0xFF.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Is there any configuration needed in the compilation so that this data is not removed?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 14:46:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/Adding-Data-to-Specific-Memory-Area/m-p/1498884#M2579</guid>
      <dc:creator>dsilva</dc:creator>
      <dc:date>2022-08-01T14:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Data to Specific Memory Area</title>
      <link>https://community.nxp.com/t5/S32-SDK/Adding-Data-to-Specific-Memory-Area/m-p/1498905#M2580</link>
      <description>&lt;P&gt;I assume it has to do with your APP_HEADER being constant and thus the access to the .&lt;SPAN class=""&gt;appheader &lt;/SPAN&gt;region is being optimized away.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 15:04:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/Adding-Data-to-Specific-Memory-Area/m-p/1498905#M2580</guid>
      <dc:creator>Joey_van_Hummel</dc:creator>
      <dc:date>2022-08-01T15:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Data to Specific Memory Area</title>
      <link>https://community.nxp.com/t5/S32-SDK/Adding-Data-to-Specific-Memory-Area/m-p/1498929#M2581</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I removed the "const" and it didn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also added an ''IF" to that const and it didn't work too.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 16:31:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/Adding-Data-to-Specific-Memory-Area/m-p/1498929#M2581</guid>
      <dc:creator>dsilva</dc:creator>
      <dc:date>2022-08-01T16:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Data to Specific Memory Area</title>
      <link>https://community.nxp.com/t5/S32-SDK/Adding-Data-to-Specific-Memory-Area/m-p/1498938#M2583</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I founded the problem.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I was just adding the appheader in the MEMORY field, the addition in the SECTION field was missing.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 16:51:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/Adding-Data-to-Specific-Memory-Area/m-p/1498938#M2583</guid>
      <dc:creator>dsilva</dc:creator>
      <dc:date>2022-08-01T16:51:02Z</dc:date>
    </item>
  </channel>
</rss>

