This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
some V850 questions, some general questions
- From: Torsten Mohr <tmohr at s dot netic dot de>
- To: newlib at sources dot redhat dot com
- Date: Fri, 12 Aug 2005 22:25:51 +0200
- Subject: some V850 questions, some general questions
Hi,
i configured and installed:
binutils-2.16
gcc-3.4.4
newlib-13.0
with options --target=v850-unknown-elf --prefix=/opt/v850-unknown-elf
I'd like to develop programs for an embedded V850E core in a
V850 F-Line uC. This uC has its ROM starting at 0x000000 and
its RAM at 0x03ffc000.
I tried to tell gcc this with some linker options:
$(F_ELF): $(OBJ)
$(CC) -o $@ \
-Wl,-Map=$(F_MAP) \
-Wl,--section-start=.vectors=0x000000 \
-Wl,--section-start=.text=0x000640 \
-Wl,--section-start=.data=0x00ffe000 \
$(OBJ)
This leads to an error:
/opt/v850-unknown-elf/lib/gcc/v850-unknown-elf/3.4.4/v850e/libgcc.a \
(_callt_save_interrupt.o): In function `__callt_return_interrupt':
../../gcc-3.4.4/gcc/config/v850/lib1funcs.asm:(.call_table_data+0x2): \
relocation truncated to fit: R_V850_CALLT_16_16_OFFSET against `.text'
collect2: ld returned 1 exit status
It looks to me that some addressing mode can't be resolved with
my chosen memory layout, is this correct?
1.
What is the preferred solution to write programs for this micro?
2.
newlib provides a malloc(). How do i tell newlib() about the memory
and which part it can use for malloc() ?
3.
How do i tell newlib how and where to handle stdin/stdout/stderr?
If my program does a printf(), where do the characters go? And how
can i redirect them to a place i want them to be?
Best regards,
Torsten.