<?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 linker segment requests in library code in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/linker-segment-requests-in-library-code/m-p/181848#M7412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CodeWarrior for coldfire v7.1. linking a large (&amp;gt;4MB) project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Project has a set oif libs including one that contains bitmaps and translateable strings. I want to place the strings in a separate part of the memory map so that they may be updated sepearate from the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the resource file I have&lt;/P&gt;&lt;P&gt;#pragma&amp;nbsp;&amp;nbsp; &amp;nbsp;define_section&amp;nbsp;&amp;nbsp; &amp;nbsp;BCM_STRINGS ".bcm_strings"&lt;BR /&gt;/*---------------------------------------------------------------*/&lt;BR /&gt;ROMDATA PEGCHAR BCM_res_en_CurrentStr[] =&lt;BR /&gt;{&amp;nbsp;&amp;nbsp; 0x0043, 0x0075, 0x0072, 0x0072, 0x0065, 0x006e, 0x0074, 0x003a, 0};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and in the main project lcf file I have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; .= ALIGN(0x1000);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;*(.bcm_strings)&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; } &amp;gt; extflash&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However it seems the section directives are being ignored. I have tried several different approaches and they all give the same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only mechanism that seems to work is to put the resource file into the main build list rather than the library but this is not acceptable from a code management perspective.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anybody gotten this sort of memory mapping to work? am I missing something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any clues, pointers,etc etc gratefully received.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Mar 2010 07:29:04 GMT</pubDate>
    <dc:creator>ahunsdon2</dc:creator>
    <dc:date>2010-03-09T07:29:04Z</dc:date>
    <item>
      <title>linker segment requests in library code</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/linker-segment-requests-in-library-code/m-p/181848#M7412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CodeWarrior for coldfire v7.1. linking a large (&amp;gt;4MB) project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Project has a set oif libs including one that contains bitmaps and translateable strings. I want to place the strings in a separate part of the memory map so that they may be updated sepearate from the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the resource file I have&lt;/P&gt;&lt;P&gt;#pragma&amp;nbsp;&amp;nbsp; &amp;nbsp;define_section&amp;nbsp;&amp;nbsp; &amp;nbsp;BCM_STRINGS ".bcm_strings"&lt;BR /&gt;/*---------------------------------------------------------------*/&lt;BR /&gt;ROMDATA PEGCHAR BCM_res_en_CurrentStr[] =&lt;BR /&gt;{&amp;nbsp;&amp;nbsp; 0x0043, 0x0075, 0x0072, 0x0072, 0x0065, 0x006e, 0x0074, 0x003a, 0};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and in the main project lcf file I have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; .= ALIGN(0x1000);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;*(.bcm_strings)&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; } &amp;gt; extflash&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However it seems the section directives are being ignored. I have tried several different approaches and they all give the same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only mechanism that seems to work is to put the resource file into the main build list rather than the library but this is not acceptable from a code management perspective.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anybody gotten this sort of memory mapping to work? am I missing something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any clues, pointers,etc etc gratefully received.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Mar 2010 07:29:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/linker-segment-requests-in-library-code/m-p/181848#M7412</guid>
      <dc:creator>ahunsdon2</dc:creator>
      <dc:date>2010-03-09T07:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: linker segment requests in library code</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/linker-segment-requests-in-library-code/m-p/181849#M7413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The pragma define_section only defines the section, it does not actually cause that future objects get automatically&amp;nbsp;added to the section. You have to qualify the objects (e.g. BCM_res_en_CurrentStr) with something like&amp;nbsp;__declspec(BCM_STRINGS).&lt;/P&gt;&lt;P&gt;(unless this is there hidden behind some macro, in C you never know)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Mar 2010 10:30:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/linker-segment-requests-in-library-code/m-p/181849#M7413</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2010-03-09T10:30:54Z</dc:date>
    </item>
  </channel>
</rss>

