<?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>PowerQUICC ProcessorsのトピックCompiling Standalone Program in LTIB</title>
    <link>https://community.nxp.com/t5/PowerQUICC-Processors/Compiling-Standalone-Program-in-LTIB/m-p/514430#M1504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to compile and download standalone program on a custom MPC8309 development board. Uboot was ported successfully.Facing the problems during execution of the code.&lt;/P&gt;&lt;P&gt;I have written simple C code to write a letter to a 4 character display (same operations was done using MM command and it worked)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; volatile unsigned int *SET = (volatile unsigned int *)0xe0000c00;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; volatile unsigned int *DISP = (volatile unsigned int *)0xe0000c08;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *SET = 0xf7ff0000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *DISP= 0x02910000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;used the command ./ltib -m shell&lt;/P&gt;&lt;P&gt;LTIB&amp;gt; gcc -o test test.c&amp;nbsp;&amp;nbsp; (This generated test.exe)&lt;/P&gt;&lt;P&gt;LTIB&amp;gt; readelf -a test&amp;nbsp;&amp;nbsp; (Noted down start address 0x10000284)&lt;/P&gt;&lt;P&gt;Then I converted elf to bin using objcopy -O binary test test.bin.&lt;/P&gt;&lt;P&gt;I used loadb command from uboot, dumped the file using hyperterminal in kermit mode&lt;/P&gt;&lt;P&gt;Uboot returned start address as 0x02000000. I typed go 0x2000000. This lead to self reset of the system.&lt;/P&gt;&lt;P&gt;Please let me know what is wrong? Also I want to know how to determine the memory range occupied by uboot in DRAM and changing the relocatable address in C file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Jun 2016 07:41:50 GMT</pubDate>
    <dc:creator>garimella</dc:creator>
    <dc:date>2016-06-04T07:41:50Z</dc:date>
    <item>
      <title>Compiling Standalone Program in LTIB</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/Compiling-Standalone-Program-in-LTIB/m-p/514430#M1504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to compile and download standalone program on a custom MPC8309 development board. Uboot was ported successfully.Facing the problems during execution of the code.&lt;/P&gt;&lt;P&gt;I have written simple C code to write a letter to a 4 character display (same operations was done using MM command and it worked)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; volatile unsigned int *SET = (volatile unsigned int *)0xe0000c00;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; volatile unsigned int *DISP = (volatile unsigned int *)0xe0000c08;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *SET = 0xf7ff0000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *DISP= 0x02910000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;used the command ./ltib -m shell&lt;/P&gt;&lt;P&gt;LTIB&amp;gt; gcc -o test test.c&amp;nbsp;&amp;nbsp; (This generated test.exe)&lt;/P&gt;&lt;P&gt;LTIB&amp;gt; readelf -a test&amp;nbsp;&amp;nbsp; (Noted down start address 0x10000284)&lt;/P&gt;&lt;P&gt;Then I converted elf to bin using objcopy -O binary test test.bin.&lt;/P&gt;&lt;P&gt;I used loadb command from uboot, dumped the file using hyperterminal in kermit mode&lt;/P&gt;&lt;P&gt;Uboot returned start address as 0x02000000. I typed go 0x2000000. This lead to self reset of the system.&lt;/P&gt;&lt;P&gt;Please let me know what is wrong? Also I want to know how to determine the memory range occupied by uboot in DRAM and changing the relocatable address in C file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jun 2016 07:41:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/Compiling-Standalone-Program-in-LTIB/m-p/514430#M1504</guid>
      <dc:creator>garimella</dc:creator>
      <dc:date>2016-06-04T07:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling Standalone Program in LTIB</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/Compiling-Standalone-Program-in-LTIB/m-p/514431#M1505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure you are writing to proper memory location? Have you tried to write to the same locations, but using U-boot console commands?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alexander&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jun 2016 07:01:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/Compiling-Standalone-Program-in-LTIB/m-p/514431#M1505</guid>
      <dc:creator>alexander_yakov</dc:creator>
      <dc:date>2016-06-05T07:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling Standalone Program in LTIB</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/Compiling-Standalone-Program-in-LTIB/m-p/514432#M1506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you please elaborate what it means writing to proper memory location? Are the commands correct? . I do not understand how to relocate the code to specific memory location?. Practical advice will be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jun 2016 14:39:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/Compiling-Standalone-Program-in-LTIB/m-p/514432#M1506</guid>
      <dc:creator>garimella</dc:creator>
      <dc:date>2016-06-05T14:39:34Z</dc:date>
    </item>
  </channel>
</rss>

