<?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>CodeWarrior Development ToolsのトピックRe: CodeWarrior 5.9, MPC5634, can't relocate function to special address in Flash</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-5-9-MPC5634-can-t-relocate-function-to-special/m-p/650336#M5710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Martin:&lt;/P&gt;&lt;P&gt;your comment is helpful. thanks a lot&lt;/P&gt;&lt;P&gt;Further question is:&lt;/P&gt;&lt;P&gt;how to place a group of global variables into specified RAM section?&lt;/P&gt;&lt;P&gt;I updated the LCF file like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; internal_ram:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org = 0x40000000,&amp;nbsp;&amp;nbsp; len = 0x00013000&lt;BR /&gt;&amp;nbsp;&lt;EM&gt;calcram:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org = 0x40013000,&amp;nbsp;&amp;nbsp; len = 0x00001000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and add section:&lt;/P&gt;&lt;P&gt;&amp;nbsp;/*calbiration section*/&lt;BR /&gt;&amp;nbsp;.calc_symbols(NOLOAD) : {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; *(.calc_symbols)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;BR /&gt;&amp;nbsp;} &amp;gt; calcram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the global varible is declared as:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;__attribute__ ((section(".calc_symbols"))) uint16_t&amp;nbsp; TaskTick;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the CodeWarrior always reports an error:&lt;/P&gt;&lt;P&gt;section '.calc_symbols' must have an uninitialized data section for object 'TaskTick'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, I prefer to use #pragma command to specify data section or code secton for some variables or functions.&lt;/P&gt;&lt;P&gt;keywords '__attribute__' and '__declspec' are not good, because it can be used only for one global variable.&lt;/P&gt;&lt;P&gt;I believe codeWarrior can support it, but how to use it? And where to find a helpful document on NXP website?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please see the attachment OldCCP.zip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jun 2017 08:53:20 GMT</pubDate>
    <dc:creator>yizhou</dc:creator>
    <dc:date>2017-06-05T08:53:20Z</dc:date>
    <item>
      <title>CodeWarrior 5.9, MPC5634, can't relocate function to special address in Flash</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-5-9-MPC5634-can-t-relocate-function-to-special/m-p/650334#M5708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear:&lt;/P&gt;&lt;P&gt;My environment is CodeWarrior 5.9.0, MPC5634.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've taken the document AN4329 and AN4497 as the reference. like below:&lt;/P&gt;&lt;P&gt;code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;#pragma section RX ".romsymbols" data_mode=far_abs&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;__declspec(section ".romsymbols") void delay(int ms); &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;void delay(int ms)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;{ &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int ii,jj;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (ms&amp;lt;1) ms=1;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for(ii=0;ii&amp;lt;ms;ii++)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for(jj=0;jj&amp;lt;5500;jj++){} &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the lcf file is:&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt; resetvector: org = 0x00000000, len = 0x00000008&lt;BR /&gt; init: org = 0x00000020, len = 0x00000FE0 &lt;BR /&gt; exception_handlers: org = 0x00001000, len = 0x00001000&lt;BR /&gt; internal_flash: org = 0x00002000, len = 0x00007000&lt;BR /&gt; myrom: org = 0x00008000, len = 0x00001000&lt;/P&gt;&lt;P&gt;internal_ram: org = 0x40000000, len = 0x00014000&lt;BR /&gt; heap : org = 0x40014000, len = 0x00002000 &lt;BR /&gt; stack : org = 0x40016000, len = 0x00001800&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.rom_symbols :&lt;BR /&gt; {&lt;BR /&gt; __ROM_SYMBOLS = . ; &lt;BR /&gt; . = ALIGN (0x4);&lt;BR /&gt; *(.romsymbols) &lt;BR /&gt; . = ALIGN (0x4);&lt;BR /&gt; } &amp;gt; myrom&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I always got link warning :&amp;nbsp;&lt;/P&gt;&lt;P&gt;No linker command file input for section '.romsymbols' in file ....&lt;/P&gt;&lt;P&gt;overlap of the .__bam_bootdata section and .romsymbols section&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Several options in the community are tried. but still failed.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337837"&gt;OldCCP.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2017 12:13:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-5-9-MPC5634-can-t-relocate-function-to-special/m-p/650334#M5708</guid>
      <dc:creator>yizhou</dc:creator>
      <dc:date>2017-04-05T12:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior 5.9, MPC5634, can't relocate function to special address in Flash</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-5-9-MPC5634-can-t-relocate-function-to-special/m-p/650335#M5709</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 did several changes in your project and now it works correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At first, I changed linker file and I created group for rom_symbols section. Second I changed name of section used in pragma in file delay.c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the example in the attachment and compare it with your original example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any other questions, please feel free to write me back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 14:30:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-5-9-MPC5634-can-t-relocate-function-to-special/m-p/650335#M5709</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2017-04-11T14:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior 5.9, MPC5634, can't relocate function to special address in Flash</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-5-9-MPC5634-can-t-relocate-function-to-special/m-p/650336#M5710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Martin:&lt;/P&gt;&lt;P&gt;your comment is helpful. thanks a lot&lt;/P&gt;&lt;P&gt;Further question is:&lt;/P&gt;&lt;P&gt;how to place a group of global variables into specified RAM section?&lt;/P&gt;&lt;P&gt;I updated the LCF file like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; internal_ram:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org = 0x40000000,&amp;nbsp;&amp;nbsp; len = 0x00013000&lt;BR /&gt;&amp;nbsp;&lt;EM&gt;calcram:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org = 0x40013000,&amp;nbsp;&amp;nbsp; len = 0x00001000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and add section:&lt;/P&gt;&lt;P&gt;&amp;nbsp;/*calbiration section*/&lt;BR /&gt;&amp;nbsp;.calc_symbols(NOLOAD) : {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; *(.calc_symbols)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;BR /&gt;&amp;nbsp;} &amp;gt; calcram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the global varible is declared as:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;__attribute__ ((section(".calc_symbols"))) uint16_t&amp;nbsp; TaskTick;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the CodeWarrior always reports an error:&lt;/P&gt;&lt;P&gt;section '.calc_symbols' must have an uninitialized data section for object 'TaskTick'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, I prefer to use #pragma command to specify data section or code secton for some variables or functions.&lt;/P&gt;&lt;P&gt;keywords '__attribute__' and '__declspec' are not good, because it can be used only for one global variable.&lt;/P&gt;&lt;P&gt;I believe codeWarrior can support it, but how to use it? And where to find a helpful document on NXP website?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please see the attachment OldCCP.zip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 08:53:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-5-9-MPC5634-can-t-relocate-function-to-special/m-p/650336#M5710</guid>
      <dc:creator>yizhou</dc:creator>
      <dc:date>2017-06-05T08:53:20Z</dc:date>
    </item>
  </channel>
</rss>

