Reply by Leon Heller March 28, 20082008-03-28
--- In l..., "B. van Essen" wrote:
>
> Hi
>
> I'm working with Rowley Crossstudio and with a embedded artists
board with the
> lpc2194. I want the microcontroller to start the program after a
reset or power
> off. But it doesn't the program is stil in the flash because a can
start it
> again with corssstudio without programming it again. but how can I
make it
> start again on itself?
>
> many thanks
>
> Bertus van Essen
>

Have a look at the FAQs on the Rowley web site - you need to add
START_FROM_RESET to the startup file preprocessor options.

Leon

An Engineer's Guide to the LPC2100 Series

Reply by "B. van Essen" March 27, 20082008-03-27
Hi

one tip for some who have something similar, cleaning the solution en
rebuilding all wil help sometimes, that was the reason it didn't work the first
time.

greets

bertus van essen
Citeren "B. van Essen" :

> Hi Paul Curtis
>
> I think you are right, after step 6 im in the break is in the startup file,
> at
> this point in the code
>
> #ifndef STARTUP_FROM_RESET
> reset_wait:
> b reset_wait
> #endif
>
> when I add the STARTUP_FROM_RESET now is does work, i don't really know what
> i
> did different for now and the last time, but when i disconnect the power and
>
> reconnectit, it starts running.
>
> many thanks
>
> Bertus van Essen
> Citeren Paul Curtis :
>
> > Hi,
> >
> > > thanks for the quick response but I had already added
> > > STARTUP_FROM_RESET to the
> > > preprocessor definitions of the file ...startup.s.
> > >
> > > i'm talking about a manual reset from the board or a power of
> >
> > STARTUP_FROM_RESET disables the infinite loop at the start of the code.
> > That loop is there so that if you accidentally flash a program that nukes
> > the part (e.g. disables JTAG) then the part can be recovered simply by
> > resetting (and the processor will go into a spin cycle with the JTAG
> > enabled). If it wasn't there then your part would be bricked.
> >
> > I suggest you see whether you have set this correctly or not. Do this:
> >
> >
> > 1. Physically connect your JTAG device up to the board.
> > 2. Ensure you have the correct project loaded in CrossStudio.
> > 3. Reset the part. Confirm you're not starting up.
> > 4. In CrossStudio, use the Targets window to connect your JTAG adapter to
> > the board.
> > 5. Select Debug > Attach Debugger.
> > 6. Select Debug > Break.
> >
> > If you're in an infinite loop in the startup code you have not set
> > STARTUP_FROM_RESET correctly. If you're somewhere else, typically an
> abort
> > handler or in the weeds, you have another problem to debug.
> >
> > Regards,
> >
> > --
> > Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
> > CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors
> >
> >
> >
> >
> >
> >
> >
>
Reply by "B. van Essen" March 27, 20082008-03-27
hi leon,

thanks for the quick response but I had already added STARTUP_FROM_RESET to the
preprocessor definitions of the file ...startup.s.

i'm talking about a manual reset from the board or a power of

greetings

Citeren Leon Heller :

> --- In l..., "B. van Essen" wrote:
> >
> > Hi
> >
> > I'm working with Rowley Crossstudio and with a embedded artists
> board with the
> > lpc2194. I want the microcontroller to start the program after a
> reset or power
> > off. But it doesn't the program is stil in the flash because a can
> start it
> > again with corssstudio without programming it again. but how can I
> make it
> > start again on itself?
> >
> > many thanks
> >
> > Bertus van Essen
> > Have a look at the FAQs on the Rowley web site - you need to add
> START_FROM_RESET to the startup file preprocessor options.
>
> Leon
>

Reply by "B. van Essen" March 27, 20082008-03-27
Hi

I'm working with Rowley Crossstudio and with a embedded artists board with the
lpc2194. I want the microcontroller to start the program after a reset or power
off. But it doesn't the program is stil in the flash because a can start it
again with corssstudio without programming it again. but how can I make it
start again on itself?

many thanks

Bertus van Essen