<?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: Help running a standalone application on U-Boot based 8548 Power PC Target in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/Help-running-a-standalone-application-on-U-Boot-based-8548-Power/m-p/175266#M1216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I supose Codewarrior doesn´t know that the u-boot is running. I think that U-BOOT has changed the immr´s address and your elf doesn´t find it, for exmaple.&lt;BR /&gt;&lt;BR /&gt;You can debug your elf with codewarrior and usb-tap. By this way you can see the added code by codewarrior.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That is only a thought/suggestions. I hope help you.&lt;BR /&gt;&lt;BR /&gt;Medina&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Aug 2008 18:18:42 GMT</pubDate>
    <dc:creator>medina</dc:creator>
    <dc:date>2008-08-01T18:18:42Z</dc:date>
    <item>
      <title>Help running a standalone application on U-Boot based 8548 Power PC Target</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Help-running-a-standalone-application-on-U-Boot-based-8548-Power/m-p/175265#M1215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;My latest endaevor has me cross compiling a stand alone application for MPC8548 PPC for a U-Boot Based target.&amp;nbsp; There is no Operating System to run on the target to speak of, just my application.&amp;nbsp; I'm building the application in Code Warrior using an 8548_init.S hardware intialization file.&lt;/P&gt;&lt;P&gt;1) My first thought was that this should be as simple as using the .ELF image that codewarrior produces, right?&amp;nbsp; So I build a simple hello_world application and sent it down to my target.&amp;nbsp; U-Boot recognizes it as an ELF image, sets up the segements, and tries to run it!&amp;nbsp; But then low and behold, the U-Boot flash image comes up again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;=&amp;gt; bootelf 400000&lt;BR /&gt;Loading .init @ 0x00002000 (972 bytes)&lt;BR /&gt;Loading .text @ 0x000023d0 (7624 bytes)&lt;BR /&gt;Loading .rodata @ 0x00004198 (256 bytes)&lt;BR /&gt;Loading .ctors @ 0x00004298 (8 bytes)&lt;BR /&gt;Loading .dtors @ 0x000042a0 (8 bytes)&lt;BR /&gt;Loading extab @ 0x000042a8 (16 bytes)&lt;BR /&gt;Loading extabindex @ 0x000042b8 (72 bytes)&lt;BR /&gt;Loading .data @ 0x00004300 (1024 bytes)&lt;BR /&gt;Loading .sdata @ 0x00004700 (44 bytes)&lt;BR /&gt;Clearing .sbss @ 0x00004730 (28 bytes)&lt;BR /&gt;Clearing .bss @ 0x00004750 (784 bytes)&lt;BR /&gt;Loading .abs.00000c00 @ 0x00000c00 (244 bytes)&lt;BR /&gt;## Starting application at 0x00002044 ...&lt;/P&gt;&lt;P&gt;U-Boot 1.3.0 (Jul 21 2008 - 12:20:51)&lt;/P&gt;&lt;P&gt;CPU:&amp;nbsp;&amp;nbsp; 8548_E, Version: 2.1, (0x80390021)&lt;BR /&gt;Core:&amp;nbsp; E500, Version: 2.2, (0x80210022)&lt;BR /&gt;Clock Configuration:&lt;/P&gt;&lt;P&gt;2) My next thought was to try and wrap it as a stand alone application image using "mkimage"&amp;nbsp; Ok, Great &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&amp;nbsp; To no avail....&lt;/P&gt;&lt;P&gt;$ mkimage -A ppc -O u-boot -T standalone -C none -a 2000 -e 2044 -n "Hiya stranger" -d debug.bin uDebug.bin&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;## Total Size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x00003ea0 = 16032 Bytes&lt;BR /&gt;=&amp;gt; bootm 400000&lt;BR /&gt;## Booting image at 00400000 ...&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Image Name:&amp;nbsp;&amp;nbsp; Hiya stranger&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Image Type:&amp;nbsp;&amp;nbsp; PowerPC U-Boot Standalone Program (uncompressed)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Data Size:&amp;nbsp;&amp;nbsp;&amp;nbsp; 15968 Bytes = 15.6 kB&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Load Address: 00002000&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Entry Point:&amp;nbsp; 00002044&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Verifying Checksum ... OK&lt;BR /&gt;OK&lt;BR /&gt;**bleep**: 00000000 XER: 20000000 LR: 0FFD6378 REGS: 0ff9dc98 TRAP: 0700 DAR: 00000000&lt;BR /&gt;MSR: 00021200 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 00&lt;/P&gt;&lt;P&gt;GPR00: 0FFD634C 0FF9DD88 00000200 00000001 0FFA048C 00000000 00005E5C 00000000&lt;BR /&gt;GPR08: 00000000 0FF9E00C 00000170 0FFD398C 0FF9DB70 0000C700 0FFF9A00 10040000&lt;BR /&gt;GPR16: 00000000 0FFEC9B4 00000000 00400040 00000001 00400000 00000000 00000001&lt;BR /&gt;GPR24: 0FFF52F8 0FFA0488 00000002 00002044 00400040 0FF9DF80 0FFFA2AC 00400000&lt;BR /&gt;** Illegal Instruction **&lt;BR /&gt;Call backtrace:&lt;BR /&gt;0FFD634C 0FFE3790 0FFE28E4 0FFE2D54 0FFD4600 0FFCABC8 0FFC162C&lt;BR /&gt;Program Check Exception&lt;BR /&gt;**bleep**: 0&lt;/P&gt;&lt;P&gt;How do I go about exporting my code warrior application so that I can run it as stand-alone on a U-Boot based target?&amp;nbsp; Thanks so much&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 07:27:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Help-running-a-standalone-application-on-U-Boot-based-8548-Power/m-p/175265#M1215</guid>
      <dc:creator>EricMT</dc:creator>
      <dc:date>2008-07-23T07:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help running a standalone application on U-Boot based 8548 Power PC Target</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Help-running-a-standalone-application-on-U-Boot-based-8548-Power/m-p/175266#M1216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I supose Codewarrior doesn´t know that the u-boot is running. I think that U-BOOT has changed the immr´s address and your elf doesn´t find it, for exmaple.&lt;BR /&gt;&lt;BR /&gt;You can debug your elf with codewarrior and usb-tap. By this way you can see the added code by codewarrior.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That is only a thought/suggestions. I hope help you.&lt;BR /&gt;&lt;BR /&gt;Medina&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 18:18:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Help-running-a-standalone-application-on-U-Boot-based-8548-Power/m-p/175266#M1216</guid>
      <dc:creator>medina</dc:creator>
      <dc:date>2008-08-01T18:18:42Z</dc:date>
    </item>
  </channel>
</rss>

