Building for cortex-m3

Grissiom chaos.proton@gmail.com
Mon Apr 18 21:50:00 GMT 2011


On Mon, Apr 18, 2011 at 12:21 AM, Simon Wright <simon@pushface.org> wrote:
> I'm a newbie at Newlib, so please pardon any stupidities.
>
> I've been trying to build newlib-1.19.0 with GCC-4.6.0 for use with a bare cortex-m3 (under qemu at the moment).
>
> The configurations I've tried include as basis
>
> $ ../newlib-1.19.0/configure  --target=arm-none-eabi  --disable-newlib-supplied-syscalls
>
> and with just this I see that libgloss/arm/crt0.S and newlib/libc/sys/arm/crt0.S both compile _mainCRTStartup in ARM mode; which (I think) isn't going to work on the M3. They define FUNC_START as
>

Actually, when I build newlib/gcc toolchain for cortex-m3, I will
disable libgloss. And it have complied code successfully for my board
;-)

Ref: http://www.eluaproject.net/en_tc_cortex.html

-- 
Cheers,
Grissiom



More information about the Newlib mailing list