RCC toolchain problem with leon2
joel.sherrill at OARcorp.com
Fri Apr 20 11:18:04 UTC 2012
I don't think it is wrong for you to answer it here. I was just worrying he wouldn't get an answer here. :)
Daniel Hellstrom <daniel at gaisler.com> wrote:
>You can post LEON related questions at the leon_sparc Yahoo group.
>On 04/19/2012 10:53 PM, Joel Sherrill wrote:
>> 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 convert
>>> 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
>> rtems-users mailing list
>> rtems-users at rtems.org
>rtems-users mailing list
>rtems-users at rtems.org
More information about the users