Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Re: FREERTOS problem on gcc and LPC2138

2005-10-23 by FreeRTOS Info

There are two separate threads here, one about startup code ensuring
Supervisor mode and the other about creating an ARM build using CrossWorks.

> But so far I hardly understand meaning of startup procedure before main().

The startup code being the code that executes to setup the C environment,
then calls main().  In this case it is called crt0.s, and is included in the
sample FreeRTOS project under the System Files folder (in the CrossWorks
Project Explorer window).

This code has to ensure the processor is in Supervisor mode when main() is
called.  CrossWorks makes this really easy - all you have to do is define
SUPERVISOR_START as a preprocessor macro.  If you look under menu option
Project->Properties->Preprocessor->Preprocessor Definitions you should see
how this is done.


> Finally I figured out there is a .hzp project file, You mean.
> First of all,the common configuration contain target name as LPC2124.
> Changing target in Thumb Debug configuration to LPC2138, will probably
> cause the common configuration don't apply any more.
> Am I correct?
>
> Secondly: for unknown reason my new configuration button is greyed out.
> Thirdly:  Common configuration is not accessible the normal way (
> through windows)

If you are new to CrossWorks I suggest looking over the relevant manual
pages on Solutions, projects and configurations:
http://www.rowley.co.uk/documentation/arm/arm_ide_tutorial.htm


Regards,
Richard.


http://www.FreeRTOS.org

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.