lpc2378 startup file GNU

Started by karelvergauwe October 9, 2007
Hello,

I'm searching a working startup file for lpc2378. I thought I could
get it out of the Rowley example for FreeRTOS for 2368. In this
project there is linked to lpc23xx.s, but I don't have this file. It's
not included in the project.

I'm using Keil with the GNU compiler. Are there a lot of advantages if
I upgrade to a latest GNU version. If so, how can I do this on the
easest way. I searched for it but cannot get it to work.

thanks

An Engineer's Guide to the LPC2100 Series

Hi

Try using Sartup.s file from other LPC FreeRTOS examples, they are more
or less the same.

--- In l..., "karelvergauwe" wrote:
>
> Hello,
>
> I'm searching a working startup file for lpc2378. I thought I could
> get it out of the Rowley example for FreeRTOS for 2368. In this
> project there is linked to lpc23xx.s, but I don't have this file. It's
> not included in the project.
>
> I'm using Keil with the GNU compiler. Are there a lot of advantages if
> I upgrade to a latest GNU version. If so, how can I do this on the
> easest way. I searched for it but cannot get it to work.
>
> thanks
>
You only need as much stack as you're going to actually use. If you
FULLY characterized your system, and know that the FIQ (for example)
only needs 20 bytes, you could set it to 20 bytes. No vendor can
foresee how much you might actually need, so they pick an arbitrary
value. Most of the values are probably just large enough for whatever
demos the vendor might provide.

There's no point in allocating a 512 byte stack frame for the FIQ stack
(again, for example) if you're not using FIQs. So either empirically
determine what you need, or take a SWAG, add a safety margin, and try
again. THEN characterize your system. If you don't know what your
system needs, you don't know what you're doing.

--jc

karelvergauwe wrote:
>
> I found another startup file for lpc2xxx for GNU. Is it normal that
> the Stack configuration has other values for the different modes if
> you compare it with a startup file wich is generated/provided by keil??
>
>