<?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 How to create section in code flash with fixed memory address in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/How-to-create-section-in-code-flash-with-fixed-memory-address/m-p/2048175#M27296</link>
    <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;I am trying to create a section in the known fixed code flash address and would like to store 3 bytes in that address or section.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please assist me in creating the section in the .ld file and adding the necessary memory to it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already attempted the following, but I'm still unable to store the data in that section. I would appreciate your urgent assistance with this issue. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt;FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x00100000&lt;BR /&gt;RAM (rwx) : ORIGIN = 0x40000000, LENGTH = 0x00040000&lt;BR /&gt;MY_SECTION (rwx) : ORIGIN = 0x40040000, LENGTH = 0x00010000&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;SECTIONS&lt;BR /&gt;{&lt;BR /&gt;.text : { *(.text) } &amp;gt; FLASH&lt;BR /&gt;.data : { *(.data) } &amp;gt; RAM&lt;BR /&gt;.bss : { *(.bss) } &amp;gt; RAM&lt;BR /&gt;.my_section :&lt;BR /&gt;{&lt;BR /&gt;. = ALIGN(4);&lt;BR /&gt;*(.my_section)&lt;BR /&gt;. = ALIGN(4);&lt;BR /&gt;} &amp;gt; MY_SECTION&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;const uint8_t __attribute__ ((section (".my_section"))) Ecu_Cu8_SwVersionNum[3] = {0x19U, 0x08U, 0x08U}; /* Year=25, Week=08, Patch Level=8 */&lt;/P&gt;</description>
    <pubDate>Thu, 20 Feb 2025 11:46:09 GMT</pubDate>
    <dc:creator>Anilpatil_SasvaAuto</dc:creator>
    <dc:date>2025-02-20T11:46:09Z</dc:date>
    <item>
      <title>How to create section in code flash with fixed memory address</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-create-section-in-code-flash-with-fixed-memory-address/m-p/2048175#M27296</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;I am trying to create a section in the known fixed code flash address and would like to store 3 bytes in that address or section.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please assist me in creating the section in the .ld file and adding the necessary memory to it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already attempted the following, but I'm still unable to store the data in that section. I would appreciate your urgent assistance with this issue. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt;FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x00100000&lt;BR /&gt;RAM (rwx) : ORIGIN = 0x40000000, LENGTH = 0x00040000&lt;BR /&gt;MY_SECTION (rwx) : ORIGIN = 0x40040000, LENGTH = 0x00010000&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;SECTIONS&lt;BR /&gt;{&lt;BR /&gt;.text : { *(.text) } &amp;gt; FLASH&lt;BR /&gt;.data : { *(.data) } &amp;gt; RAM&lt;BR /&gt;.bss : { *(.bss) } &amp;gt; RAM&lt;BR /&gt;.my_section :&lt;BR /&gt;{&lt;BR /&gt;. = ALIGN(4);&lt;BR /&gt;*(.my_section)&lt;BR /&gt;. = ALIGN(4);&lt;BR /&gt;} &amp;gt; MY_SECTION&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;const uint8_t __attribute__ ((section (".my_section"))) Ecu_Cu8_SwVersionNum[3] = {0x19U, 0x08U, 0x08U}; /* Year=25, Week=08, Patch Level=8 */&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 11:46:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-create-section-in-code-flash-with-fixed-memory-address/m-p/2048175#M27296</guid>
      <dc:creator>Anilpatil_SasvaAuto</dc:creator>
      <dc:date>2025-02-20T11:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create section in code flash with fixed memory address</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-create-section-in-code-flash-with-fixed-memory-address/m-p/2048380#M27299</link>
      <description>&lt;P&gt;Possibly it could be a problem that you have define it as constant not as variable.&amp;nbsp;I think constants are placed to section .text (i.e. to flash).&lt;/P&gt;
&lt;P&gt;Does it work if you use volatile uint8_t?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 16:32:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-create-section-in-code-flash-with-fixed-memory-address/m-p/2048380#M27299</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2025-02-20T16:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create section in code flash with fixed memory address</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-create-section-in-code-flash-with-fixed-memory-address/m-p/2049572#M27311</link>
      <description>Please give me an example of storing 4 bytes of data at a fixed location by creating a new user section.</description>
      <pubDate>Mon, 24 Feb 2025 04:09:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-create-section-in-code-flash-with-fixed-memory-address/m-p/2049572#M27311</guid>
      <dc:creator>Anilpatil_SasvaAuto</dc:creator>
      <dc:date>2025-02-24T04:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create section in code flash with fixed memory address</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-create-section-in-code-flash-with-fixed-memory-address/m-p/2049573#M27312</link>
      <description>Its urgent please help me</description>
      <pubDate>Mon, 24 Feb 2025 04:09:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-create-section-in-code-flash-with-fixed-memory-address/m-p/2049573#M27312</guid>
      <dc:creator>Anilpatil_SasvaAuto</dc:creator>
      <dc:date>2025-02-24T04:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create section in code flash with fixed memory address</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-create-section-in-code-flash-with-fixed-memory-address/m-p/2049759#M27315</link>
      <description>&lt;P&gt;I thin it is correct, but section needs to be placed to flash, not ram.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 09:14:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-create-section-in-code-flash-with-fixed-memory-address/m-p/2049759#M27315</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2025-02-24T09:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create section in code flash with fixed memory address</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-create-section-in-code-flash-with-fixed-memory-address/m-p/2049762#M27316</link>
      <description>The section has been created, but I cannot see the data in the .hex file.</description>
      <pubDate>Mon, 24 Feb 2025 09:17:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-create-section-in-code-flash-with-fixed-memory-address/m-p/2049762#M27316</guid>
      <dc:creator>Anilpatil_SasvaAuto</dc:creator>
      <dc:date>2025-02-24T09:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create section in code flash with fixed memory address</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-create-section-in-code-flash-with-fixed-memory-address/m-p/2049763#M27317</link>
      <description>please send working example code</description>
      <pubDate>Mon, 24 Feb 2025 09:18:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-create-section-in-code-flash-with-fixed-memory-address/m-p/2049763#M27317</guid>
      <dc:creator>Anilpatil_SasvaAuto</dc:creator>
      <dc:date>2025-02-24T09:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create section in code flash with fixed memory address</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-create-section-in-code-flash-with-fixed-memory-address/m-p/2049769#M27318</link>
      <description>&lt;P&gt;Here you may find a procedure:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Place-custom-data-into-flash-memory/ta-p/1109178" target="_blank"&gt;https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Place-custom-data-into-flash-memory/ta-p/1109178&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Try to use keyword KEEP as described. &lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 09:24:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-create-section-in-code-flash-with-fixed-memory-address/m-p/2049769#M27318</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2025-02-24T09:24:36Z</dc:date>
    </item>
  </channel>
</rss>

