<?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 Re: Codewarrior 2.7 MPC5554 problem in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Codewarrior-2-7-MPC5554-problem/m-p/170792#M3389</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for providing the solution but i came across another problem&lt;/P&gt;&lt;P&gt;first the pragma preprocessor could nt be added to function definition(it couldn't remove error)&lt;/P&gt;&lt;P&gt;so i added it to function declaration as a trial..it did work.The linking&lt;/P&gt;&lt;P&gt;error was removed.However during debugging the sequence of execution&lt;/P&gt;&lt;P&gt;doesnt follow these particular function's call( i .e the functions with pragma preprocessor) .&lt;/P&gt;&lt;P&gt;Instead it starts executing main.asm.i have wriiten nothing useful in main.asm and&lt;/P&gt;&lt;P&gt;i have n't invoked it in my code either.Even then it moves there which is making trace of bug&lt;/P&gt;&lt;P&gt;&amp;nbsp;in program more difficult.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i would like to ask one more thing...can pragma preprocessor be used with assembly functions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Khurram Hameed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Dec 2010 19:00:15 GMT</pubDate>
    <dc:creator>khurram712</dc:creator>
    <dc:date>2010-12-21T19:00:15Z</dc:date>
    <item>
      <title>Codewarrior 2.7 MPC5554 problem</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Codewarrior-2-7-MPC5554-problem/m-p/170789#M3386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone tell what this error means and how to remove it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Link Error: Relocation of the symbol is out of range"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 19:22:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Codewarrior-2-7-MPC5554-problem/m-p/170789#M3386</guid>
      <dc:creator>khurram712</dc:creator>
      <dc:date>2010-12-20T19:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Codewarrior 2.7 MPC5554 problem</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Codewarrior-2-7-MPC5554-problem/m-p/170790#M3387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi khurram712,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd suggest you to see this thread:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.freescale.com/message/71562#71562" title="https://community.freescale.com/message/71562#71562"&gt;https://community.freescale.com/message/71562#71562&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stanish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 20:56:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Codewarrior-2-7-MPC5554-problem/m-p/170790#M3387</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2010-12-20T20:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Codewarrior 2.7 MPC5554 problem</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Codewarrior-2-7-MPC5554-problem/m-p/170791#M3388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks alot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 13:54:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Codewarrior-2-7-MPC5554-problem/m-p/170791#M3388</guid>
      <dc:creator>khurram712</dc:creator>
      <dc:date>2010-12-21T13:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Codewarrior 2.7 MPC5554 problem</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Codewarrior-2-7-MPC5554-problem/m-p/170792#M3389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for providing the solution but i came across another problem&lt;/P&gt;&lt;P&gt;first the pragma preprocessor could nt be added to function definition(it couldn't remove error)&lt;/P&gt;&lt;P&gt;so i added it to function declaration as a trial..it did work.The linking&lt;/P&gt;&lt;P&gt;error was removed.However during debugging the sequence of execution&lt;/P&gt;&lt;P&gt;doesnt follow these particular function's call( i .e the functions with pragma preprocessor) .&lt;/P&gt;&lt;P&gt;Instead it starts executing main.asm.i have wriiten nothing useful in main.asm and&lt;/P&gt;&lt;P&gt;i have n't invoked it in my code either.Even then it moves there which is making trace of bug&lt;/P&gt;&lt;P&gt;&amp;nbsp;in program more difficult.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i would like to ask one more thing...can pragma preprocessor be used with assembly functions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Khurram Hameed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 19:00:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Codewarrior-2-7-MPC5554-problem/m-p/170792#M3389</guid>
      <dc:creator>khurram712</dc:creator>
      <dc:date>2010-12-21T19:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Codewarrior 2.7 MPC5554 problem</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Codewarrior-2-7-MPC5554-problem/m-p/170793#M3390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi khurram712,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes you are right,&amp;nbsp; pragma should be used in combination with function prototype declaration.&lt;/P&gt;&lt;P&gt;I can debug the RAM code without any limitations/confusions.&lt;/P&gt;&lt;P&gt;See below the example how to place standalone assembler function into RAM:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;main.c&lt;/P&gt;&lt;P&gt;---------&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;#pragma push&lt;BR /&gt;#pragma section code_type ".my_RAM_code" ".my_RAM_code" data_mode=far_abs code_mode=far_abs&lt;BR /&gt;void my_C_ram_func(void);&amp;nbsp;&amp;nbsp;&lt;BR /&gt; extern void my_asm_ram_func(void);&lt;BR /&gt;#pragma pop&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;void&lt;/FONT&gt; &lt;FONT face="courier new,courier"&gt;my_C_ram_func&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; asm (nop);&lt;BR /&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;int main(void) {&lt;BR /&gt;&amp;nbsp;&lt;/FONT&gt; &lt;FONT face="courier new,courier"&gt;my_C_ram_func&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;();&lt;BR /&gt; &amp;nbsp; my_asm_ram_func();&lt;BR /&gt;&amp;nbsp; ...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;main_asm.s&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;----------&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;.globl my_asm_ram_func&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;.section .my_RAM_code,text&lt;BR /&gt;&lt;BR /&gt;my_asm_ram_func:&lt;BR /&gt;nop&lt;BR /&gt;nop&lt;BR /&gt;&lt;BR /&gt;blr&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;*.lcf&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;-----&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;SECTIONS&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; ...&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GROUP : {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .__uninitialized_intc_handlertable ALIGN(0x10) : {}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .data&amp;nbsp;&amp;nbsp; : {}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .sdata&amp;nbsp; : {}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .sbss&amp;nbsp;&amp;nbsp; : {}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .sdata2 : {}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .sbss2&amp;nbsp; : {}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .bss&amp;nbsp;&amp;nbsp;&amp;nbsp; : {}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .my_RAM_code: {}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;gt; internal_ram&lt;BR /&gt;}&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stanish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 21:01:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Codewarrior-2-7-MPC5554-problem/m-p/170793#M3390</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2010-12-21T21:01:02Z</dc:date>
    </item>
  </channel>
</rss>

