<?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>i.MX ProcessorsのトピックRe: How do I use uboot to run stand alone applications that I compile with ARM DS-5 on the i.MX6 ?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-do-I-use-uboot-to-run-stand-alone-applications-that-I/m-p/278178#M31483</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your fast reply Leo, I haven't tried that as my UBoot version does not have the bootelf command in it and I was trying to avoid compiling my own UBoot. But I have a good set of instructions on how to do that and how to add the bootelf command to my UBoot. Hopefully this helps my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Oct 2013 19:24:35 GMT</pubDate>
    <dc:creator>kyleengstrom</dc:creator>
    <dc:date>2013-10-14T19:24:35Z</dc:date>
    <item>
      <title>How do I use uboot to run stand alone applications that I compile with ARM DS-5 on the i.MX6 ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-do-I-use-uboot-to-run-stand-alone-applications-that-I/m-p/278176#M31481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made a couple simple programs using the ARM DS-5 compiler and now I would like to run them on the i.MX6 through UBOOT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Uboot version:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U-Boot 2013.10-rc1-00097-g75ad664 (Sep 17 2013 - 14:40:03)&lt;/P&gt;&lt;P&gt;arm-linux-gcc (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) 4.6.2 20110630 (prerelease)&lt;/P&gt;&lt;P&gt;GNU ld (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) 2.21.52.20110702&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1: Compile .axf file with ARM DS-5 Compiler&lt;/P&gt;&lt;P&gt;Step 2: Use makeelf.exe to make a .bin file from the .axf file&lt;/P&gt;&lt;P&gt;Step 3: Save .bin file onto an USB drive&lt;/P&gt;&lt;P&gt;Step 4: Execute the following commands into UBOOT&lt;/P&gt;&lt;P&gt;usb dev 0:1&lt;/P&gt;&lt;P&gt;fatload usb 0:1 0x900000 serial.bin&lt;/P&gt;&lt;P&gt;go 0x900000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run my binary file I always get a software interrupt error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;U-Boot &amp;gt; go 0x900000&lt;/P&gt;
&lt;P&gt;go 0x900000&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;## Starting application at 0x00900000 ...&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;software interrupt&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;pc : [&amp;lt;00902f78&amp;gt;]&amp;nbsp;&amp;nbsp; lr : [&amp;lt;00902f78&amp;gt;]&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;sp : 0093efe0&amp;nbsp; ip : 0093e010 fp : 00903f24&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;r10: 00903f24&amp;nbsp; r9 : 00000002 r8 : 2f357f38&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;r7 : 00903f13&amp;nbsp; r6 : 00000000 r5 : 00000000&amp;nbsp; r4 : 00000000&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;r3 : 00000000&amp;nbsp; r2 : 0093e000 r1 : 00000000&amp;nbsp; r0 : 00000010&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Flags: nzCv&amp;nbsp; IRQs off&amp;nbsp; FIQs off&amp;nbsp; Mode SVC_32&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Resetting CPU ...&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;resetting ...&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;U-Boot 2013.10-rc1-00097-g75ad664 (Sep 17 2013 - 14:40:03)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;CPU:&amp;nbsp;&amp;nbsp; Freescale i.MX6SOLO rev1.1 at 792 MHz&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Reset cause: &lt;STRONG&gt;WDOG&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Board: Nitrogen6X&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the 'go' command only for running specialized uboot applications or can I run binary files compiled from the ARM DS-5 Compiler?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Austin is an amazing place!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 17:55:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-do-I-use-uboot-to-run-stand-alone-applications-that-I/m-p/278176#M31481</guid>
      <dc:creator>kyleengstrom</dc:creator>
      <dc:date>2013-10-14T17:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use uboot to run stand alone applications that I compile with ARM DS-5 on the i.MX6 ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-do-I-use-uboot-to-run-stand-alone-applications-that-I/m-p/278177#M31482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kyle, I fully agree with your last statement about Austin :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not used the 'go' command instead I have used 'bootelf'. Can you try it with bootelf?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a related document ysing the iMX6 Platform SDK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-95853"&gt;iRAM (OCRAM) i.MX6 SDK Application&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 19:14:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-do-I-use-uboot-to-run-stand-alone-applications-that-I/m-p/278177#M31482</guid>
      <dc:creator>LeonardoSandova</dc:creator>
      <dc:date>2013-10-14T19:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use uboot to run stand alone applications that I compile with ARM DS-5 on the i.MX6 ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-do-I-use-uboot-to-run-stand-alone-applications-that-I/m-p/278178#M31483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your fast reply Leo, I haven't tried that as my UBoot version does not have the bootelf command in it and I was trying to avoid compiling my own UBoot. But I have a good set of instructions on how to do that and how to add the bootelf command to my UBoot. Hopefully this helps my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 19:24:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-do-I-use-uboot-to-run-stand-alone-applications-that-I/m-p/278178#M31483</guid>
      <dc:creator>kyleengstrom</dc:creator>
      <dc:date>2013-10-14T19:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use uboot to run stand alone applications that I compile with ARM DS-5 on the i.MX6 ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-do-I-use-uboot-to-run-stand-alone-applications-that-I/m-p/278179#M31484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I ran into trouble (building issue) adding the macro (&lt;SPAN style="color: black; font-size: 10pt; font-family: Tahoma;"&gt;+#define CONFIG_CMD_ELF) &lt;/SPAN&gt;on LTIB u-boot, but then I moved to latest code (remotes/origin/imx_v2013.04_3.5.7_1.0.0_alpha, I think) and worked fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 19:38:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-do-I-use-uboot-to-run-stand-alone-applications-that-I/m-p/278179#M31484</guid>
      <dc:creator>LeonardoSandova</dc:creator>
      <dc:date>2013-10-14T19:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use uboot to run stand alone applications that I compile with ARM DS-5 on the i.MX6 ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-do-I-use-uboot-to-run-stand-alone-applications-that-I/m-p/278180#M31485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, after spending way to long figuring out how to compile U-Boot with the boot elf command I finally got it working and here are my results. Nothing really changed...&lt;/P&gt;&lt;P&gt;In more detail...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;U-Boot &amp;gt; fatload usb 0:1 0x12000000 serial.axf&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;fatload usb 0:1 0x12000000 serial.axf&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;reading serial.axf&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;88256 bytes read in 50 ms (1.7 MiB/s)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;U-Boot &amp;gt; bootelf&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;bootelf&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;## Starting application at 0x00900000 ...&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;software interrupt&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;pc : [&amp;lt;00902f78&amp;gt;]&amp;nbsp;&amp;nbsp; lr : [&amp;lt;00902f78&amp;gt;]&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;sp : 0093efe0&amp;nbsp; ip : 0093e010 fp : 00903f24&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;r10: 00903f24&amp;nbsp; r9 : 2f359f38 r8 : 2f35b9a0&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;r7 : 00903f13&amp;nbsp; r6 : 00000000 r5 : 00000000&amp;nbsp; r4 : 00000000&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;r3 : 00000000&amp;nbsp; r2 : 0093e000 r1 : 00000000&amp;nbsp; r0 : 00000010&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Flags: nzCv&amp;nbsp; IRQs off&amp;nbsp; FIQs off&amp;nbsp; Mode SVC_32&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Resetting CPU ...&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;resetting ...&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;So I loaded serial.axf into memory at hex 12 million and then proceeded to use the boot elf command. I got the exact same problem, a software interrupt. Is it safe to assume that the problem is not with U-Boot but in the .axf code itself?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I miss the Alamo Drafthouse!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 19:16:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-do-I-use-uboot-to-run-stand-alone-applications-that-I/m-p/278180#M31485</guid>
      <dc:creator>kyleengstrom</dc:creator>
      <dc:date>2013-10-15T19:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use uboot to run stand alone applications that I compile with ARM DS-5 on the i.MX6 ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-do-I-use-uboot-to-run-stand-alone-applications-that-I/m-p/278181#M31486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Really dummy question: Does your app have printf statements? what does your app suppose to do/print?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 19:40:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-do-I-use-uboot-to-run-stand-alone-applications-that-I/m-p/278181#M31486</guid>
      <dc:creator>LeonardoSandova</dc:creator>
      <dc:date>2013-10-15T19:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use uboot to run stand alone applications that I compile with ARM DS-5 on the i.MX6 ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-do-I-use-uboot-to-run-stand-alone-applications-that-I/m-p/278182#M31487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My app opens up a comm port and transmits "Hello World." on a loop. It does not have printf statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 19:45:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-do-I-use-uboot-to-run-stand-alone-applications-that-I/m-p/278182#M31487</guid>
      <dc:creator>kyleengstrom</dc:creator>
      <dc:date>2013-10-15T19:45:10Z</dc:date>
    </item>
  </channel>
</rss>

