<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<pre style="word-wrap:break-word; font-size:10.0pt; font-family:Tahoma; color:black">Avr is a tiny architecture. Largest CPU only had 64k address space for sixteen bit words. Also the compiler has bugs which avr provided tools have many patches. It really is not appropriate target for RTL.
Shsim may be a different matter. Look at the help from the sh-rtens4.11-run command and see if there is a memory size option. If there is we can use that argument, make the Sim script pass it and fix the linkcmds. Otherwise we need to look at the Sim source in gdb and check into increasing it. I did that with sis a few years ago.
Peng Fan <van.freenix@gmail.com> wrote:
</pre>
<div>
<div dir="ltr">hi,
<div style="">I do not have a stable internet connection now and was often dropped on the IRC, so I asked here.</div>
<div style=""><br>
</div>
<div style="">1.</div>
<div style="">I am tring to make rtl run on avrtest and shsim bsp, but I found that they have small ram with avr 64KB and shsim 256KB. I am not sure whether it is needed to do this or not.</div>
<div style="">2.</div>
<div style=""> I compiled rtems for avr, but the compilation failed.</div>
<div style="">The configure command is :</div>
<div style="">../rtems/configure --prefix=/opt/rtems-4.11 --target=avr-rtems4.11 --enable-tests=samples<br>
</div>
<div style="">The following is the error message.</div>
<div style="">
<div>../../../../../../temp-rtems/c/src/../../cpukit/libblock/src/flashdisk.c: In function 'rtems_fdisk_recycle_segment':</div>
<div>../../../../../../temp-rtems/c/src/../../cpukit/libblock/src/flashdisk.c:1392:1: error: unable to find a register to spill in class 'POINTER_REGS'</div>
<div> }</div>
<div> ^</div>
<div>../../../../../../temp-rtems/c/src/../../cpukit/libblock/src/flashdisk.c:1392:1: error: this is the insn:</div>
<div>(insn 382 381 383 19 (set (reg:HI 26 r26)</div>
<div> (reg/v/f:HI 69 [ dpd ])) ../../../../../../temp-rtems/c/src/../../cpukit/libblock/src/flashdisk.c:1321 82 {*movhi}</div>
<div> (nil))</div>
<div>../../../../../../temp-rtems/c/src/../../cpukit/libblock/src/flashdisk.c:1392: confused by earlier errors, bailing out</div>
<div>gmake[5]: *** [src/flashdisk.o] Error 1</div>
</div>
</div>
</div>
</body>
</html>