<?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>S32KのトピックRe: How to complie Flash driver to RAM? while other source program still in flash?</title>
    <link>https://community.nxp.com/t5/S32K/How-to-complie-Flash-driver-to-RAM-while-other-source-program/m-p/1159473#M8295</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/162693"&gt;@459021854&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please check the following &lt;A href="https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Run-a-routine-from-RAM-in-S32-Design-Studio/ta-p/1113336" target="_self"&gt;post,&lt;/A&gt; explains how to modify the linker file to add the code allocation regions.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Alexis Andalon&lt;/P&gt;</description>
    <pubDate>Fri, 25 Sep 2020 17:31:42 GMT</pubDate>
    <dc:creator>Alexis_A</dc:creator>
    <dc:date>2020-09-25T17:31:42Z</dc:date>
    <item>
      <title>How to complie Flash driver to RAM? while other source program still in flash?</title>
      <link>https://community.nxp.com/t5/S32K/How-to-complie-Flash-driver-to-RAM-while-other-source-program/m-p/1158518#M8266</link>
      <description>&lt;P&gt;Hi, experts:&lt;/P&gt;&lt;P&gt;please do me a favor, when I develop a bootloader.&amp;nbsp; I need&amp;nbsp; separate &lt;STRONG&gt;Flash driver&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;with the &lt;STRONG&gt;other parts of bootloader code&lt;/STRONG&gt; to different places.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Flash driver, &lt;/STRONG&gt;such as&amp;nbsp;FLASH_DRV_Program, should be compiled as a separate .src file and be&amp;nbsp; placed at RAM.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;other parts of bootloader code&amp;nbsp;&lt;/STRONG&gt;should be placed in the flash.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tryed&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;__attribute__((section (".customSection")))&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;status_t &lt;STRONG&gt;__attribute__((section (".customSection")))&lt;/STRONG&gt; FLASH_DRV_Program(const flash_ssd_config_t * pSSDConfig,&lt;BR /&gt;uint32_t dest,&lt;BR /&gt;uint32_t size,&lt;BR /&gt;const uint8_t * pData)&lt;/P&gt;&lt;P&gt;but in .map&amp;nbsp; the result turn out to be&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="360截图20200924162616978.jpg" style="width: 742px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126081iD36C5B391114BEA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="360截图20200924162616978.jpg" alt="360截图20200924162616978.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this means&amp;nbsp;&amp;nbsp;function FLASH_DRV_Program &lt;STRONG&gt;is loaded from&lt;/STRONG&gt; address&amp;nbsp;0x00007acc to address&amp;nbsp;0x20000000, NOT I want.&lt;/P&gt;&lt;P&gt;I just want&amp;nbsp;FLASH_DRV_Program &lt;STRONG&gt;is&lt;/STRONG&gt; &lt;STRONG&gt;directly&lt;/STRONG&gt; &lt;STRONG&gt;placed&lt;/STRONG&gt; in RAM by compiler, &lt;STRONG&gt;NOT&lt;/STRONG&gt; loaded from flash.&lt;/P&gt;&lt;P&gt;If the &lt;STRONG&gt;flash driver&lt;/STRONG&gt; which placed in RAM be compiler as a separate&amp;nbsp;.src,&amp;nbsp; that's better.&lt;/P&gt;&lt;P&gt;How can I solve those problem?&amp;nbsp; please help me, much appreciated. my MCU is S32K144.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/12881"&gt;@all&lt;/a&gt; experts&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 08:43:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-complie-Flash-driver-to-RAM-while-other-source-program/m-p/1158518#M8266</guid>
      <dc:creator>459021854</dc:creator>
      <dc:date>2020-09-24T08:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to complie Flash driver to RAM? while other source program still in flash?</title>
      <link>https://community.nxp.com/t5/S32K/How-to-complie-Flash-driver-to-RAM-while-other-source-program/m-p/1158544#M8268</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not expert of GCC linker scripts, but as I understand it ": AT(xx)" in linker file instructs section to be loaded from xx.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .code : AT(__CODE_ROM)&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __CODE_RAM = .;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __code_start__ = .;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Create a global symbol at code start. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *(.code_ram)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Custom section for storing code in RAM */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __code_end__ = .;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Define a global symbol at code end. */&lt;BR /&gt;&amp;nbsp; } &amp;gt; m_data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;__CODE_ROM is a&amp;nbsp;location in flash while&amp;nbsp;m_data&amp;nbsp;is RAM. So try removing : AT(xx) and see.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 09:09:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-complie-Flash-driver-to-RAM-while-other-source-program/m-p/1158544#M8268</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2020-09-24T09:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to complie Flash driver to RAM? while other source program still in flash?</title>
      <link>https://community.nxp.com/t5/S32K/How-to-complie-Flash-driver-to-RAM-while-other-source-program/m-p/1158589#M8271</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;SPAN&gt;Edward&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have tryed your method that's not working.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="360截图20200924173725845.jpg" style="width: 915px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126095i77FAFAE62B637AA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="360截图20200924173725845.jpg" alt="360截图20200924173725845.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think because in c&amp;nbsp; file&amp;nbsp; &amp;nbsp; &amp;nbsp;"&amp;nbsp; &amp;nbsp;startup.c&amp;nbsp; &amp;nbsp; "&amp;nbsp; there is code to&amp;nbsp; copy code from FLASH to RAM,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="360截图20200924174335388.jpg" style="width: 451px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126097iFA8C977FE90E0C1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="360截图20200924174335388.jpg" alt="360截图20200924174335388.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;that's not I wanted. I &lt;STRONG&gt;do not&lt;/STRONG&gt; want any &lt;STRONG&gt;COPY happened,&lt;/STRONG&gt;&amp;nbsp;because i do not want &lt;STRONG&gt;a copy of flash driver be placed in flash&lt;/STRONG&gt;.&amp;nbsp; &amp;nbsp;just want&lt;STRONG&gt; only one&lt;/STRONG&gt; flash driver &lt;STRONG&gt;directly&amp;nbsp;&lt;/STRONG&gt;be&amp;nbsp; placed in &lt;STRONG&gt;RAM.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;PLEASE,&amp;nbsp; still need help.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 09:50:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-complie-Flash-driver-to-RAM-while-other-source-program/m-p/1158589#M8271</guid>
      <dc:creator>459021854</dc:creator>
      <dc:date>2020-09-24T09:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to complie Flash driver to RAM? while other source program still in flash?</title>
      <link>https://community.nxp.com/t5/S32K/How-to-complie-Flash-driver-to-RAM-while-other-source-program/m-p/1159473#M8295</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/162693"&gt;@459021854&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please check the following &lt;A href="https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Run-a-routine-from-RAM-in-S32-Design-Studio/ta-p/1113336" target="_self"&gt;post,&lt;/A&gt; explains how to modify the linker file to add the code allocation regions.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Alexis Andalon&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 17:31:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-complie-Flash-driver-to-RAM-while-other-source-program/m-p/1159473#M8295</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-09-25T17:31:42Z</dc:date>
    </item>
  </channel>
</rss>

