Arduino Forum

Products => Arduino Due => Topic started by: DeonM on Dec 28, 2012, 01:07 pm

Title: Initialisation source code
Post by: DeonM on Dec 28, 2012, 01:07 pm
Hi all,

Does anyone know where to get the init() called in main.cpp (and for that matter the complete run time library) source code ?

I have downloaded arm-2010q1-188-arm-none-eabi-toolchain-win32.zip and gcc-arm-none-eabi-latest-win32.zip from http://static.leaflabs.com/pub/codesourcery/ but all they have are the same binaries as provided in arduino-1.5.1r2-windows.zip
Title: Re: Initialisation source code
Post by: aethaniel on Dec 28, 2012, 08:17 pm
Hi,

The init() function is in hardware/arduino/sam/variants/arduino_due_x/variant.cpp.

The GCC runtime library is in NewLib libc, which is part of any ARM Embedded GCC distribution.