Building for cortex-m3
Federico Terraneo
fede.tft@hotmail.it
Mon Apr 18 22:06:00 GMT 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 04/18/2011 05:35 PM, Grissiom wrote:
> 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
>
I can confirm newlib works on Cortex M3, and can provide a build script
(that also build GCC, binutils, ...) here
http://gitorious.org/miosix-kernel/miosix-kernel/blobs/master/miosix/compiler/install-script.sh
Don't know if crt0.s works, as I'm using customized boot code.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJNrLHiAAoJECkLFtN5Xr9f4usIAKWY7YvFwMfXuztQuhJZswW/
JGp2ihIIFkneOkf2mfKhsk3twj5jrIed0umUblaiuxrcoOtDdBc9xGY6KoVmSR7t
J50Wm7MX0mZio69mH55SO2XbSXXTTCU7QbuooQXgr8uG4lGFb5VOfLWohwz9QECC
bWlnzl0KF0i2aT+OmN7sBM40k4XjntYVaHsYjTvznlbgvJnt1C39rtzzFVA38N1y
aNQ3Ghn24/78Q6arKo02dnWpmbFYvgl2d0189LdZu1SFzSMVgXx5xgH0APwNcEJp
eMH4vK9jbYvHsicuiZdn+mkaJuPV9o8HybOwgE+sATKiRczr6jkVPb4srPZtmNA=
=Bpyk
-----END PGP SIGNATURE-----
More information about the Newlib
mailing list