<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>