<?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>P-SeriesのトピックRe: Running a standalone executable file in P1020RDB</title>
    <link>https://community.nxp.com/t5/P-Series/Running-a-standalone-executable-file-in-P1020RDB/m-p/1641464#M5128</link>
    <description>&lt;P&gt;You could download&amp;nbsp;&lt;SPAN&gt;hello_world.srec in u-boot through tftp commands.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2023 09:47:30 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2023-04-27T09:47:30Z</dc:date>
    <item>
      <title>Running a standalone executable file in P1020RDB</title>
      <link>https://community.nxp.com/t5/P-Series/Running-a-standalone-executable-file-in-P1020RDB/m-p/1631582#M5123</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I intend to run some simple programs in a P1020RDB (without any interference from an OS, as I am interested in some real-time aspects of my programs) but I have no experience in dealing with u-boot or any board that is more complex than old MCU SDKs (which run bare-metal programs without much configuration).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Is there any empty RAM space where I could upload an ELF or binary file? I assume the 2GB DDR3 goes from 0x0 to 0x200000 but I am not sure about it... when looking at this memory range via u-boot "md" command, it did not look empty.&lt;/P&gt;&lt;P&gt;- Is it possible to call a standalone program from u-boot using "go" or "bootelf"?&lt;/P&gt;&lt;P&gt;If none of my thoughts make sense, I am open to other ideas and corrections, of course. For the moment, I intend to use only the basic environment (board + serial connection via UART0 + Tera Term). I intend to generate my executable files using a Green Hills compiler that is able to generate code for this board.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Ricardo&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 21:34:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Running-a-standalone-executable-file-in-P1020RDB/m-p/1631582#M5123</guid>
      <dc:creator>ricardofranca</dc:creator>
      <dc:date>2023-04-11T21:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Running a standalone executable file in P1020RDB</title>
      <link>https://community.nxp.com/t5/P-Series/Running-a-standalone-executable-file-in-P1020RDB/m-p/1631846#M5125</link>
      <description>&lt;P&gt;In u-boot, DDR memory map is as the following.&lt;/P&gt;
&lt;P&gt;* 0x0000_0000 0x7fff_ffff&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DDR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Up to 2GB cacheable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically U-Boot is built to reside/execute in the upper portion of main memory, and the remainder of low memory is available for whatever.&lt;/P&gt;
&lt;P&gt;U-Boot will start its stack at the end of SDRAM, or BASE+SIZE. So the region between&amp;nbsp;CONFIG_SYS_TEXT_BASE+(size of u-boot.bin) and the end of SDRAM is the available stack area should be available.&lt;/P&gt;
&lt;P&gt;U-Boot will also use memory below&amp;nbsp;CONFIG_SYS_TEXT_BASE&amp;nbsp;for its&amp;nbsp;malloc()&amp;nbsp;pool. The size of that region is defined by&amp;nbsp;CONFIG_SYS_MALLOC_LEN.&lt;/P&gt;
&lt;P&gt;So the memory between&amp;nbsp;CONFIG_SYS_SDRAM_BASE&amp;nbsp;and&lt;BR /&gt;CONFIG_SYS_TEXT_BASE-CONFIG_SYS_MALLOC_LEN&amp;nbsp;should be available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'examples/hello_world.c' contains a small "Hello World" Demo&lt;BR /&gt;application; it is automatically compiled when you build U-Boot.&lt;BR /&gt;It's configured to run at address 0x00040004, so you can play with it&lt;BR /&gt;like that:&lt;/P&gt;
&lt;P&gt;=&amp;gt; loads&lt;BR /&gt;## Ready for S-Record download ...&lt;BR /&gt;~&amp;gt;examples/hello_world.srec&lt;BR /&gt;1 2 3 4 5 6 7 8 9 10 11 ...&lt;BR /&gt;[file transfer complete]&lt;BR /&gt;[connected]&lt;BR /&gt;## Start Addr = 0x00040004&lt;/P&gt;
&lt;P&gt;=&amp;gt; go 40004 Hello World! This is a test.&lt;BR /&gt;## Starting application at 0x00040004 ...&lt;BR /&gt;Hello World&lt;BR /&gt;argc = 7&lt;BR /&gt;argv[0] = "40004"&lt;BR /&gt;argv[1] = "Hello"&lt;BR /&gt;argv[2] = "World!"&lt;BR /&gt;argv[3] = "This"&lt;BR /&gt;argv[4] = "is"&lt;BR /&gt;argv[5] = "a"&lt;BR /&gt;argv[6] = "test."&lt;BR /&gt;argv[7] = "&amp;lt;NULL&amp;gt;"&lt;BR /&gt;Hit any key to exit ...&lt;/P&gt;
&lt;P&gt;## Application terminated, rc = 0x0&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 06:45:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Running-a-standalone-executable-file-in-P1020RDB/m-p/1631846#M5125</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2023-04-12T06:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Running a standalone executable file in P1020RDB</title>
      <link>https://community.nxp.com/t5/P-Series/Running-a-standalone-executable-file-in-P1020RDB/m-p/1634115#M5126</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks for your advice! Though I did not find the actual hello.srec (U-Boot was already built in the board and I did not find either the source or the binary file in the board documentation USB drive), I managed to run some other simple code.&lt;/P&gt;&lt;P&gt;Is it possible to read and send characters via UART0? According to the processor documentation, the default address for CCSRBAR is 0xFF700000,&amp;nbsp; but it seems to be elsewhere in this board, as any attempt to read or write in this 0xFF704500 (which, I suppose, would be UART0, register 1) causes a bad trap. What is the actual CCSRBAR address?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 21:43:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Running-a-standalone-executable-file-in-P1020RDB/m-p/1634115#M5126</guid>
      <dc:creator>ricardofranca</dc:creator>
      <dc:date>2023-04-14T21:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Running a standalone executable file in P1020RDB</title>
      <link>https://community.nxp.com/t5/P-Series/Running-a-standalone-executable-file-in-P1020RDB/m-p/1641464#M5128</link>
      <description>&lt;P&gt;You could download&amp;nbsp;&lt;SPAN&gt;hello_world.srec in u-boot through tftp commands.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 09:47:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Running-a-standalone-executable-file-in-P1020RDB/m-p/1641464#M5128</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2023-04-27T09:47:30Z</dc:date>
    </item>
  </channel>
</rss>

