Building for cortex-m3
Mon Apr 18 22:06:00 GMT 2011
-----BEGIN PGP SIGNED MESSAGE-----
On 04/18/2011 05:35 PM, Grissiom wrote:
> On Mon, Apr 18, 2011 at 12:21 AM, Simon Wright <email@example.com> 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
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/
-----END PGP SIGNATURE-----
More information about the Newlib