Re: [arm-gnu] C run-time initialization code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] C run-time initialization code



On Mar 9, 2010, at 10:35 AM, 42Bastian wrote:

> Richard
> 
>> I’m looking for the c-runtime initialization.  The code clears the .bss and
>> that copies initialization values from rom to .data and then calls main.  On
>> the M3, it generally also has the exception/interrupt vectors.
> 
> Since it is CM3, you do not need any assembler. Just take the code you
> found as reference.
> 
> The vectors are fine defined as array placed at 0, the cstartup can be
> done with a set of memcpy and memset.
> 
I think you can find the latest released version of CMSIS (v1.30) at: http://www.onarm.com/download/download395.asp.  It contains device support for six different manufacturers (Atmel, EnergyMicro, NXP, ST, TI and Toshiba).  Perhaps your micro is one of these.

Steve Loudon
> -- 
> 42Bastian
> +
> | http://www.sciopta.com
> | Fastest direct message passing kernel.
> | IEC61508 certified.
> +