<?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 Copying object files from ROM to RAM in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Copying-object-files-from-ROM-to-RAM/m-p/949749#M4225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am confused on how to copy an object file that contains functions that erase, write, and read flash memory through flexspi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with MIMXRT1060-EVK dev-kit. I followed the&amp;nbsp;IAR C/C++ Development Guide for Linking and compiling (&lt;A class="link-titled" href="http://supp.iar.com/FilesPublic/UPDINFO/013240/arm/doc/EWARM_DevelopmentGuide.ENU.pdf" title="http://supp.iar.com/FilesPublic/UPDINFO/013240/arm/doc/EWARM_DevelopmentGuide.ENU.pdf"&gt;http://supp.iar.com/FilesPublic/UPDINFO/013240/arm/doc/EWARM_DevelopmentGuide.ENU.pdf&lt;/A&gt;&amp;nbsp;).&lt;/P&gt;&lt;P&gt;But when check the map file, none of them seems to work with my code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I am doing something wrong while I am working with the linker file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my linker file, I typed initialize by copy, which copies the&amp;nbsp;file from ROM to RAM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialize by copy {&lt;BR /&gt; readwrite,&lt;BR /&gt; /* Place in RAM flash and performance dependent functions */&lt;BR /&gt; object flexspi_nor_flash_ops.o,&lt;BR /&gt; object fsl_flexspi.o,&lt;BR /&gt; section .textrw&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is sitting in flash, I just wanted to copy and run the flexspi_erase, write, and read functions from the RAM to erase and write to the Flash memory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is possible could you help me to tackle the problem?&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Sep 2019 17:37:25 GMT</pubDate>
    <dc:creator>bjargalsaikhan</dc:creator>
    <dc:date>2019-09-04T17:37:25Z</dc:date>
    <item>
      <title>Copying object files from ROM to RAM</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Copying-object-files-from-ROM-to-RAM/m-p/949749#M4225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am confused on how to copy an object file that contains functions that erase, write, and read flash memory through flexspi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with MIMXRT1060-EVK dev-kit. I followed the&amp;nbsp;IAR C/C++ Development Guide for Linking and compiling (&lt;A class="link-titled" href="http://supp.iar.com/FilesPublic/UPDINFO/013240/arm/doc/EWARM_DevelopmentGuide.ENU.pdf" title="http://supp.iar.com/FilesPublic/UPDINFO/013240/arm/doc/EWARM_DevelopmentGuide.ENU.pdf"&gt;http://supp.iar.com/FilesPublic/UPDINFO/013240/arm/doc/EWARM_DevelopmentGuide.ENU.pdf&lt;/A&gt;&amp;nbsp;).&lt;/P&gt;&lt;P&gt;But when check the map file, none of them seems to work with my code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I am doing something wrong while I am working with the linker file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my linker file, I typed initialize by copy, which copies the&amp;nbsp;file from ROM to RAM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialize by copy {&lt;BR /&gt; readwrite,&lt;BR /&gt; /* Place in RAM flash and performance dependent functions */&lt;BR /&gt; object flexspi_nor_flash_ops.o,&lt;BR /&gt; object fsl_flexspi.o,&lt;BR /&gt; section .textrw&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is sitting in flash, I just wanted to copy and run the flexspi_erase, write, and read functions from the RAM to erase and write to the Flash memory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is possible could you help me to tackle the problem?&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2019 17:37:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Copying-object-files-from-ROM-to-RAM/m-p/949749#M4225</guid>
      <dc:creator>bjargalsaikhan</dc:creator>
      <dc:date>2019-09-04T17:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Copying object files from ROM to RAM</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Copying-object-files-from-ROM-to-RAM/m-p/949750#M4226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="346813" data-username="bjargalsaikhan@calamp.com" href="https://community.nxp.com/people/bjargalsaikhan@calamp.com"&gt;Baasanjav Jargalsaikhan&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and &lt;BR /&gt;for the opportunity to serve you.&lt;BR /&gt;Maybe you can consider to do that via using the Syntax: &lt;A href="https://mcu-things.com/blog/ram-function-easy-way-en/"&gt;__ramfunc&lt;/A&gt;.&lt;BR /&gt;As the question is mainly about the IAR IDE, you'd better contact the expert of IAR for tech support.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2019 06:10:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Copying-object-files-from-ROM-to-RAM/m-p/949750#M4226</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-09-06T06:10:38Z</dc:date>
    </item>
  </channel>
</rss>

