<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Pablo,<br>
Where are the variables stored? THey need to be in RAM. The
linkcmds should ensure that.<br>
Pete.<br>
<div class="moz-cite-prefix">On 03/11/2014 03:33 PM, Martínez, Pablo
wrote:<br>
</div>
<blockquote
cite="mid:CA+=9m0bpXUtTE=cVqyWBNSbL1kNPsHPcNwPuuosu0nL0j0mSrw@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div dir="ltr">
<div style="font-family:arial,sans-serif;font-size:13px">
<div>Hello all,<br>
<br>
</div>
following many posts and documentations on this group and
Gaisler support, I have proved many configurations about
loading a Rtems application on PROM.<br>
<br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">CODE:<br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">// The
following code write many memory address with the same value<br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">
<br>
#include <stdio.h><br>
#include <stdlib.h><br>
<br>
#define CONFIGURE_INIT<br>
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER<br>
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER<br>
#define CONFIGURE_MAXIMUM_TASKS 4<br>
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE<br>
#define CONFIGURE_EXTRA_TASK_STACKS (3 *
RTEMS_MINIMUM_STACK_SIZE)<br>
<br>
<br>
#define CONFIGURE_INIT<br>
#include "system.h"<br>
<br>
<br>
rtems_task Init(<br>
rtems_task_argument argument<br>
)<br>
{<br>
<br>
unsigned *mem1;<br>
int i;<br>
<br>
mem1 = 0X400a0000;<br>
<br>
for (i=0; i<200; i++)<br>
{<br>
<br>
(*mem1) = 0x55555555;<br>
mem1++;<br>
}<br>
<br>
exit(0);<br>
}<br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">
<div><br>
----------------------------------------------------<br>
<br>
</div>
<div>I Could implement and run in flash (PROM) the code
without Rtems (using: sparc-elf-gcc and mkprom2)<br>
</div>
<div><br>
</div>
<div>Now, I need implement the code with Rtems, for that
reason I have compiled the below code with:<br>
<br>
sparc-rtems-gcc and/or sparc-rtems4.10-gcc In both case I
can create the "executable" using Rtems Sparc and Rtems
Toolchain on Eclipse.those implementations have been proved
on target (Xilinx Kintex KC-705) and they run perfect.<br>
<br>
</div>
<div>Now, I need to have this code in PROM. for that reason I
did the following steps:<br>
<br>
</div>
<div>1) Created the ".exe" file with Rtems Toolchain on
Eclipse<br>
</div>
<div>2) Created the prom.out using mkprom (with many
configurations)<br>
<br>
mkprom2 -msoft-float -ramsize 1024000 -nosram -sdram 1024
-romsize 128000 -romwidth 16 -freq 50 -baud 83400 -rmw
-ccprefix sparc-rtems mem_prom_rtems<br>
<br>
</div>
<div>I can generate the "prom.out" but is not working on the
target.... (flash erase all; flash load prom.out, flash lock
all)<br>
<br>
</div>
<div>Could somebody give me an explanation about what I'm
doing wrong?, or give me an advice to create the prom.out
successfully?</div>
<div><br>
</div>
<div>Regards,</div>
</div>
<div><br>
</div>
-- <br>
Martínez, Pablo Agustín
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
rtems-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a>
<a class="moz-txt-link-freetext" href="http://www.rtems.org/mailman/listinfo/rtems-users">http://www.rtems.org/mailman/listinfo/rtems-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
D. Peter Siddons
Detector Development Group Leader
Bldg. 535B
Photon Sciences Directorate,
Brookhaven National Laboratory
Upton, NY 11973
email: <a class="moz-txt-link-abbreviated" href="mailto:siddons@bnl.gov">siddons@bnl.gov</a>
Phone: (631) 344-2738
</pre>
</body>
</html>