RCC toolchain problem with leon2
joel.sherrill at OARcorp.com
Thu Apr 19 20:53:31 UTC 2012
The RCC toolset is supplied by Aeroflex Gaisler. Those folks are on
this mailing list but may not see this. If there is an official forum
for RCC support, you are better off asking this there if you don't
get an answer quickly.
On 04/19/2012 11:28 AM, Luca Cinquepalmi wrote:
> Hi all,
> I compiled a simple "Hello word" C program with sparc-rtems-gcc v4.10.
> I tested it with TSIM sparc simulator and it works.
> I also developed a toolchain to load program on a leon2 board that
> a .exe file into a .hex file but the program doesn't work.
> The same program, compiled with sparc-elf-gcc and converted with the same
> toolchain works with no problem.
> Here's summerized my toolchain:
> CC = sparc-rtems-gcc
> CFLAGS = -msoft-float -qleon2 -mcpu=v8
> LIBS = -lgcc -lm -msoft-float
> LDFLAGS = -mcpu=v8
> $(CC) $(LDFLAGS) $(SOURCES) $(LIBS) -o $@.exe
> cp $@.exe u$@.exe
> sparc-rtems-objdump -d $@.exe > $(OUTDIR)/$@.disas
> sparc-rtems-strip $@.exe
> sparc-rtems-objcopy --remove-section=.comment $@.exe
> sparc-rtems-objdump -s $@.exe > $@.dat
> sparc-rtems-size $@.exe
> Dat2Hex.pl $@.dat text > code.hex
> Dat2Hex.pl $@.dat data > data.hex
> cat code.hex data.hex > program.hex
> I have two question:
> 1) can the toolchain also be used for sparc-rtems-gcc?
> 2) shall I necessary use mkprom to create a loadble program or
> another kind of toolchain can be used?
> Thank a lot for your answer
Joel Sherrill, Ph.D. Director of Research& Development
joel.sherrill at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the users