<?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>Kinetis MicrocontrollersのトピックRe: Mapping variable to user-defined section</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mapping-variable-to-user-defined-section/m-p/175981#M1493</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;#pragma define_section MYSECTION ".mysection" abs32 RW__declspec(MYSECTION) uint16_t adcIn[8*2*512];/* lcf file  .mysection :  {    __START_MYSECTION = .;    * (.mysection)    __END_MYSECTION = .;    . = ALIGN(0x4);  } &amp;gt; mysection*/&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The above is working, but ProcessorExpert must be configured to not generate linker file due to the manually added code in lcf file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2020 09:24:48 GMT</pubDate>
    <dc:creator>PeterFromSweden</dc:creator>
    <dc:date>2020-10-29T09:24:48Z</dc:date>
    <item>
      <title>Mapping variable to user-defined section</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mapping-variable-to-user-defined-section/m-p/175979#M1491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I cannot get any way to map a variable to a specific section to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Memory section is created by processor expert, here it is called &lt;STRONG&gt;mysection&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From processorexpert.lcf&lt;/P&gt;&lt;PRE&gt;MEMORY {  interrupts  (RX) : ORIGIN = 0x1FFF0000, LENGTH = 0x000001E0  code        (RX) : ORIGIN = 0x1FFF01E0, LENGTH = 0x00015220  data14000000 (RW) : ORIGIN = 0x14000000, LENGTH = 0x00001000  data        (RW) : ORIGIN = 0x20005400, LENGTH = 0x00006C00  mysection   (RW) : ORIGIN = 0x2000C000, LENGTH = 0x00004000  cfmprotrom  (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Here are some traces on what I have tried to map a variable to "mysection"&lt;/P&gt;&lt;PRE&gt;#pragma define_section MYSECTION ".bss"  far_absolute RW//#pragma section MYSECTION begin//uint16_t adcIn[8192] __attribute__ ((align (8));uint16_t adcIn[8192] __attribute__ ((section ("MYSECTION")));//__declspec(MYSECTION) uint16_t adcIn[8192];//uint16_t adcIn[8192];//#pragma section MYSECTION end&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The compilation/linking is OK, but the variable "adcIn" maps to section "data" no matter what.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:24:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mapping-variable-to-user-defined-section/m-p/175979#M1491</guid>
      <dc:creator>PeterFromSweden</dc:creator>
      <dc:date>2020-10-29T09:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping variable to user-defined section</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mapping-variable-to-user-defined-section/m-p/175980#M1492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way, the following code makes CW10 arm compiler to crash:&lt;/P&gt;&lt;PRE&gt;#pragma define_section MYSECTION ".sec1" ".sec2" ".sec3" ".sec4" far_absolute RW&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:24:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mapping-variable-to-user-defined-section/m-p/175980#M1492</guid>
      <dc:creator>PeterFromSweden</dc:creator>
      <dc:date>2020-10-29T09:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping variable to user-defined section</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mapping-variable-to-user-defined-section/m-p/175981#M1493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;#pragma define_section MYSECTION ".mysection" abs32 RW__declspec(MYSECTION) uint16_t adcIn[8*2*512];/* lcf file  .mysection :  {    __START_MYSECTION = .;    * (.mysection)    __END_MYSECTION = .;    . = ALIGN(0x4);  } &amp;gt; mysection*/&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The above is working, but ProcessorExpert must be configured to not generate linker file due to the manually added code in lcf file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:24:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mapping-variable-to-user-defined-section/m-p/175981#M1493</guid>
      <dc:creator>PeterFromSweden</dc:creator>
      <dc:date>2020-10-29T09:24:48Z</dc:date>
    </item>
  </channel>
</rss>

