<?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 How to execute a bare metal app (CW built) from u-boot command line in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/How-to-execute-a-bare-metal-app-CW-built-from-u-boot-command/m-p/1432053#M10260</link>
    <description>&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;we are using an LS1043A-RDB evaluation board, using LSDK21.08 as build environment&lt;/P&gt;&lt;P&gt;target and CodeWarrior (with a codewarrior TAP adapter too) as debug tool.&lt;/P&gt;&lt;P&gt;We built easily a set of images in order to boot Linux from SD with a custom RCW as&lt;/P&gt;&lt;P&gt;required from our target application, it boots linux without problems.&lt;/P&gt;&lt;P&gt;Then the hard section!&lt;/P&gt;&lt;P&gt;We started coding our custom application that should starts from u-boot, we don't have&lt;/P&gt;&lt;P&gt;to use Linux as OS, and the application should be at first a simple bare metal app ('hello&lt;/P&gt;&lt;P&gt;world' style...). It starts correctly when we execute it from CW ide &amp;amp; TAP.&lt;/P&gt;&lt;P&gt;But we are in trouble because, it doesn't not starts correctly when we run it from u-boot CLI.&lt;/P&gt;&lt;P&gt;The first things that seems to be wrong is that the EL level with which the application starts&lt;/P&gt;&lt;P&gt;is not correct! And this is what we get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;=&amp;gt; go 80000e00&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;## Starting application at 0x80000E00 ...&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;"Synchronous Abort" handler, esr 0x02000000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;elr: 000000000a4e3e08 lr : 0000000082007760 (reloc)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;elr: 0000000080000e08 lr : 00000000f7b24760&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x0 : 0000000080000000 x1 : 00000000f7a56c28&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x2 : 00000000f7a56c28 x3 : 0000000000000001&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x4 : 00000000ffffffff x5 : 00000000f7a14ea8&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x6 : 0000000000000030 x7 : 000000000000000f&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x8 : 00000000f7a15318 x9 : 0000000000000008&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x10: 00000000ffffffd0 x11: 0000000000000010&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x12: 0000000000000004 x13: 0000000000000200&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x14: 000000000000000f x15: 0000000000000001&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x16: 0000000080000e00 x17: 0000000000000000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x18: 00000000f7a18da0 x19: 00000000f7a56c28&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x20: 0000000080000e00 x21: 0000000000000002&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x22: 00000000f7a56c20 x23: 0000000000000002&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x24: 00000000f7be3974 x25: 0000000000000000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x26: 0000000000000000 x27: 0000000000000000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x28: 00000000f7a56d10 x29: 00000000f7a15350&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Code: 00000000 00000000 d5033fdf 10ff8fe0 (d51ec000) &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Resetting CPU ...&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;resetting ...&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obviously 0x80000e00 is the entry point of the __start: symbol in the binary image.&lt;/P&gt;&lt;P&gt;Has anyone observed this, and solved it?!&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2022 14:45:05 GMT</pubDate>
    <dc:creator>Simone_Dep</dc:creator>
    <dc:date>2022-03-22T14:45:05Z</dc:date>
    <item>
      <title>How to execute a bare metal app (CW built) from u-boot command line</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-execute-a-bare-metal-app-CW-built-from-u-boot-command/m-p/1432053#M10260</link>
      <description>&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;we are using an LS1043A-RDB evaluation board, using LSDK21.08 as build environment&lt;/P&gt;&lt;P&gt;target and CodeWarrior (with a codewarrior TAP adapter too) as debug tool.&lt;/P&gt;&lt;P&gt;We built easily a set of images in order to boot Linux from SD with a custom RCW as&lt;/P&gt;&lt;P&gt;required from our target application, it boots linux without problems.&lt;/P&gt;&lt;P&gt;Then the hard section!&lt;/P&gt;&lt;P&gt;We started coding our custom application that should starts from u-boot, we don't have&lt;/P&gt;&lt;P&gt;to use Linux as OS, and the application should be at first a simple bare metal app ('hello&lt;/P&gt;&lt;P&gt;world' style...). It starts correctly when we execute it from CW ide &amp;amp; TAP.&lt;/P&gt;&lt;P&gt;But we are in trouble because, it doesn't not starts correctly when we run it from u-boot CLI.&lt;/P&gt;&lt;P&gt;The first things that seems to be wrong is that the EL level with which the application starts&lt;/P&gt;&lt;P&gt;is not correct! And this is what we get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;=&amp;gt; go 80000e00&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;## Starting application at 0x80000E00 ...&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;"Synchronous Abort" handler, esr 0x02000000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;elr: 000000000a4e3e08 lr : 0000000082007760 (reloc)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;elr: 0000000080000e08 lr : 00000000f7b24760&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x0 : 0000000080000000 x1 : 00000000f7a56c28&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x2 : 00000000f7a56c28 x3 : 0000000000000001&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x4 : 00000000ffffffff x5 : 00000000f7a14ea8&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x6 : 0000000000000030 x7 : 000000000000000f&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x8 : 00000000f7a15318 x9 : 0000000000000008&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x10: 00000000ffffffd0 x11: 0000000000000010&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x12: 0000000000000004 x13: 0000000000000200&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x14: 000000000000000f x15: 0000000000000001&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x16: 0000000080000e00 x17: 0000000000000000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x18: 00000000f7a18da0 x19: 00000000f7a56c28&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x20: 0000000080000e00 x21: 0000000000000002&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x22: 00000000f7a56c20 x23: 0000000000000002&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x24: 00000000f7be3974 x25: 0000000000000000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x26: 0000000000000000 x27: 0000000000000000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;x28: 00000000f7a56d10 x29: 00000000f7a15350&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Code: 00000000 00000000 d5033fdf 10ff8fe0 (d51ec000) &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Resetting CPU ...&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;resetting ...&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obviously 0x80000e00 is the entry point of the __start: symbol in the binary image.&lt;/P&gt;&lt;P&gt;Has anyone observed this, and solved it?!&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 14:45:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-execute-a-bare-metal-app-CW-built-from-u-boot-command/m-p/1432053#M10260</guid>
      <dc:creator>Simone_Dep</dc:creator>
      <dc:date>2022-03-22T14:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a bare metal app (CW built) from u-boot command line</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-execute-a-bare-metal-app-CW-built-from-u-boot-command/m-p/1445061#M10409</link>
      <description>&lt;P&gt;You could start with u-boot source code&amp;nbsp;examples/standalone/hello_world.c.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 09:54:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-execute-a-bare-metal-app-CW-built-from-u-boot-command/m-p/1445061#M10409</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-04-18T09:54:27Z</dc:date>
    </item>
  </channel>
</rss>

