<?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: locate a hex into RAM in S32K</title>
    <link>https://community.nxp.com/t5/S32K/locate-a-hex-into-RAM/m-p/2017805#M44472</link>
    <description>I think the modification of the ld file is correct but I debug the elf by PE, the contents of the second block of the hex is not download in MCU RAM.</description>
    <pubDate>Fri, 20 Dec 2024 10:02:52 GMT</pubDate>
    <dc:creator>yin_qiu</dc:creator>
    <dc:date>2024-12-20T10:02:52Z</dc:date>
    <item>
      <title>locate a hex into RAM</title>
      <link>https://community.nxp.com/t5/S32K/locate-a-hex-into-RAM/m-p/2017719#M44465</link>
      <description>&lt;P&gt;dear NXP experts:&lt;/P&gt;&lt;P&gt;I have a question about ram code:&lt;/P&gt;&lt;P&gt;I want to download a "fct.hex" into RAM and jump into the "Fct.hex" to run the dedicated function.&lt;/P&gt;&lt;P&gt;because there is pure free memory only in DTCM and last 32K "int_sram_shareable " in bootloader. so I think the FCT.hex can only be placed in the two areas.&amp;nbsp;&lt;/P&gt;&lt;P&gt;so I modify the link file as attached. and the final hex is show as picture below.&lt;/P&gt;&lt;P&gt;after I debug the hex by PE it failed in the function that located in the second block.&lt;/P&gt;&lt;P&gt;if I do not split the hex into two blocks and it works OK if the whole hex is located in DTCM.&lt;/P&gt;&lt;P&gt;I&amp;nbsp; also try to take use of ".ROM.fct_text ROM(.fct_text)" and add a copy table in "init_table" which is in startup_cm7.s but it still failed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you pls help me and thank you very much.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yin_qiu_0-1734681454400.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/316818iBABCA556D59FD934/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yin_qiu_0-1734681454400.png" alt="yin_qiu_0-1734681454400.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yin_qiu_1-1734681470625.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/316819i386F470CB91C6440/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yin_qiu_1-1734681470625.png" alt="yin_qiu_1-1734681470625.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yin_qiu_2-1734681488570.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/316820iD1AE673DBDC7734E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yin_qiu_2-1734681488570.png" alt="yin_qiu_2-1734681488570.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 08:05:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/locate-a-hex-into-RAM/m-p/2017719#M44465</guid>
      <dc:creator>yin_qiu</dc:creator>
      <dc:date>2024-12-20T08:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: locate a hex into RAM</title>
      <link>https://community.nxp.com/t5/S32K/locate-a-hex-into-RAM/m-p/2017805#M44472</link>
      <description>I think the modification of the ld file is correct but I debug the elf by PE, the contents of the second block of the hex is not download in MCU RAM.</description>
      <pubDate>Fri, 20 Dec 2024 10:02:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/locate-a-hex-into-RAM/m-p/2017805#M44472</guid>
      <dc:creator>yin_qiu</dc:creator>
      <dc:date>2024-12-20T10:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: locate a hex into RAM</title>
      <link>https://community.nxp.com/t5/S32K/locate-a-hex-into-RAM/m-p/2020316#M44649</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am bit confused.&lt;/P&gt;
&lt;P&gt;But you have to place the code in to RAM section and then make sure once it is loaded in uC, you copy that section in your SW into RAM during initialization.&lt;/P&gt;
&lt;P&gt;After that you can use that function in RAM.&lt;/P&gt;
&lt;P&gt;There are lot of examples is S32DS for execution from RAM.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 05:51:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/locate-a-hex-into-RAM/m-p/2020316#M44649</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2024-12-30T05:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: locate a hex into RAM</title>
      <link>https://community.nxp.com/t5/S32K/locate-a-hex-into-RAM/m-p/2020405#M44650</link>
      <description>&lt;P&gt;hello ：&lt;/P&gt;&lt;P&gt;thank you for reply and I find the root cause that the "__INT_SRAM_END" is set to&amp;nbsp;ram_rsvd2.so once the SW runs ,the contents located in "int_sram_shareable" will be erased by startup code.&lt;/P&gt;&lt;P&gt;I modify the "linker_flash_s32K312.ld " to make it work as "inker_sram_s32K312.ld" do. so the code runs in sram without copying from pflash to sram.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 07:43:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/locate-a-hex-into-RAM/m-p/2020405#M44650</guid>
      <dc:creator>yin_qiu</dc:creator>
      <dc:date>2024-12-30T07:43:11Z</dc:date>
    </item>
  </channel>
</rss>

