<?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 use “ section ”function whith MCUXPRESSO IDE in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-section-function-whith-MCUXPRESSO-IDE/m-p/1262789#M60217</link>
    <description>&lt;P&gt;hello！&lt;/P&gt;&lt;P&gt;How to define a section in C file in mcuxpresso IDE, which has only one function.&lt;/P&gt;&lt;P&gt;Then I want to initialize the section in the "LD" file, and then copy the section program to ram in the C program？&lt;/P&gt;</description>
    <pubDate>Thu, 15 Apr 2021 12:02:32 GMT</pubDate>
    <dc:creator>ahjg_xu</dc:creator>
    <dc:date>2021-04-15T12:02:32Z</dc:date>
    <item>
      <title>How to use “ section ”function whith MCUXPRESSO IDE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-section-function-whith-MCUXPRESSO-IDE/m-p/1262789#M60217</link>
      <description>&lt;P&gt;hello！&lt;/P&gt;&lt;P&gt;How to define a section in C file in mcuxpresso IDE, which has only one function.&lt;/P&gt;&lt;P&gt;Then I want to initialize the section in the "LD" file, and then copy the section program to ram in the C program？&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 12:02:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-section-function-whith-MCUXPRESSO-IDE/m-p/1262789#M60217</guid>
      <dc:creator>ahjg_xu</dc:creator>
      <dc:date>2021-04-15T12:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to use “ section ”function whith MCUXPRESSO IDE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-section-function-whith-MCUXPRESSO-IDE/m-p/1262819#M60218</link>
      <description>&lt;P&gt;I don't know about MCUXPRESSO, however if I understand your question you want to copy a specific section of code from Flash to RAM at start up via the linker script.&lt;BR /&gt;&lt;BR /&gt;This is commonly needed for Flash programming routines where the code must be run from RAM to program the flash.&amp;nbsp; I've attached the code that I use.&lt;BR /&gt;&lt;BR /&gt;Looking in vectors.c you will find a structurer that holds information about the sections that need copied to RAM and the function to do it.&amp;nbsp; The linker script is setup to supply the information needed.&lt;BR /&gt;For example to get flash_kinetis_cmd.c copied to RAM at startup.&lt;BR /&gt;&lt;BR /&gt;flash_kinetis.c/.h are included for completeness then don't really play a part in getting things moved to RAM.&lt;BR /&gt;&lt;BR /&gt;There may be some missing headers that you'll need to fill in for your specific part and case.&amp;nbsp; This code is for the KL27.&amp;nbsp; The linker script technique is the same for most any GCC based part.&amp;nbsp; The linker script is hopefully well enough commented to follow.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 12:40:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-section-function-whith-MCUXPRESSO-IDE/m-p/1262819#M60218</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2021-04-15T12:40:09Z</dc:date>
    </item>
  </channel>
</rss>

