<?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: Linker script section alignment exceeds memory region size (RTD, AR: 4.7.0, SW: 2.0.0) in S32 SDK</title>
    <link>https://community.nxp.com/t5/S32-SDK/Linker-script-section-alignment-exceeds-memory-region-size-RTD/m-p/1892344#M3852</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/215919"&gt;@M_SCH&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ALIGN(n) instructs the compiler to align a variable on an n-byte boundary starting from the ORIGIN address. This just limits the location of a memory region to a certain n-byte size, this should not interfere with other memory regions as the memory region size does not exceed the n-byte boundary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;B.R.&lt;/P&gt;
&lt;P&gt;VaneB&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2024 21:35:20 GMT</pubDate>
    <dc:creator>VaneB</dc:creator>
    <dc:date>2024-06-21T21:35:20Z</dc:date>
    <item>
      <title>Linker script section alignment exceeds memory region size (RTD, AR: 4.7.0, SW: 2.0.0)</title>
      <link>https://community.nxp.com/t5/S32-SDK/Linker-script-section-alignment-exceeds-memory-region-size-RTD/m-p/1890375#M3839</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have installed the S32DS v3.5.12 together with the latest RTD (AR: 4.7.0, SW: 2.0.0) for an S32k148 MCU.&lt;/P&gt;&lt;P&gt;I have generated the FreeRTOS example project for the S32K148 MCU as shown in the image below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="M_SCH_0-1718797520523.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/284886iE7B4BAEF0BCB4B45/image-size/medium?v=v2&amp;amp;px=400" role="button" title="M_SCH_0-1718797520523.png" alt="M_SCH_0-1718797520523.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have studied the Linker file linker_flash_s32k148.ld and think I found an error in the generated file. First, examine the memory definition. According to the file 1024 bytes are reserved for the interrupt table inside the flash memory and then additional 16 bytes for the flash configuration flags/bits, etc.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;MEMORY
{
    int_flash_interrupts    : ORIGIN = 0x00000000, LENGTH = 0x00000400    /* 1K */    /* Do not change this section */
    int_flash_config        : ORIGIN = 0x00000400, LENGTH = 0x00000010    /* 16bytes */ /* Do not change this section */
    int_flash               : ORIGIN = 0x00000410, LENGTH = 0x0017FBF0    /* ~1.5MB */
    int_sram_results        : ORIGIN = 0x1FFE0000, LENGTH = 0x00000100    /* 256bytes */
    int_sram                : ORIGIN = 0x1FFE0100, LENGTH = 0x0003DF00    /* ~248K */
    int_sram_stack_c0       : ORIGIN = 0x2001E000, LENGTH = 0x00001000    /* 4K  */
    ram_rsvd2               : ORIGIN = 0x2001F000, LENGTH = 0             /* End of SRAM */
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;If you continue analyzing the section definition at the beginning&lt;/P&gt;&lt;LI-CODE lang="c"&gt;SECTIONS
{

    .flash_interrupts :
    {
        . = ALIGN(2048);
        __interrupts_rom_start = .;
        KEEP(*(.intc_vector))
        . = ALIGN(4);
        __interrupts_rom_end = .;
    } &amp;gt; int_flash_interrupts&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;you see that the memory region int_flash_interrupts, which has an assigned size of 1024 bytes contains a 2048 byte alignment instruction, which exceeds the defined region size.&lt;BR /&gt;&lt;BR /&gt;Am I correct? If not, can you explain, what I am missing here.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;M_SCH&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 12:07:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/Linker-script-section-alignment-exceeds-memory-region-size-RTD/m-p/1890375#M3839</guid>
      <dc:creator>M_SCH</dc:creator>
      <dc:date>2024-06-19T12:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Linker script section alignment exceeds memory region size (RTD, AR: 4.7.0, SW: 2.0.0)</title>
      <link>https://community.nxp.com/t5/S32-SDK/Linker-script-section-alignment-exceeds-memory-region-size-RTD/m-p/1892344#M3852</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/215919"&gt;@M_SCH&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ALIGN(n) instructs the compiler to align a variable on an n-byte boundary starting from the ORIGIN address. This just limits the location of a memory region to a certain n-byte size, this should not interfere with other memory regions as the memory region size does not exceed the n-byte boundary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;B.R.&lt;/P&gt;
&lt;P&gt;VaneB&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 21:35:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/Linker-script-section-alignment-exceeds-memory-region-size-RTD/m-p/1892344#M3852</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2024-06-21T21:35:20Z</dc:date>
    </item>
  </channel>
</rss>

