EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

CrossWorks - CrossStudio for ARM "Build" question

Started by Markus Zingg May 8, 2008
I would like to have a build configuration (preferably ARM Flash
Release) where STARTUP_FROM_RESET is defined.

I figure I could either modify the startup.s file to include something like

#ifdef NDEBUG
#define STARTUP_FROM_RESET
#endif

but I would prefer not to change the startup file just because of this.

Is there an easier/cleaner way to get the same result?

TIA

Markus

An Engineer's Guide to the LPC2100 Series

Markus,

> -----Original Message-----
> From: l... [mailto:l...] On
> Behalf Of Markus Zingg
> Sent: 08 May 2008 16:30
> To: l...
> Subject: [lpc2000] CrossWorks - CrossStudio for ARM "Build" question
>
> I would like to have a build configuration (preferably ARM Flash
> Release) where STARTUP_FROM_RESET is defined.
>
> I figure I could either modify the startup.s file to include something
> like
>
> #ifdef NDEBUG
> #define STARTUP_FROM_RESET
> #endif
>
> but I would prefer not to change the startup file just because of this.

Create a new private configuration, e.g. "Auto Startup". In it set the
pre-processor definitions to "STARTUP_FROM_RESET".

Then create some new configurations, e.g. ARM Debug Auto Startup and inherit
the configuration sets ARM, Debug, and Auto Startup. Now you can build in
that configuration and have it automatically start up. The ARM Debug
configuration won't define STARTUP_FROM_RESET so you'll get standard
behaviour.

You can do the same for ARM Release Auto Startup and so on.

-- Paul.


The 2024 Embedded Online Conference