Yahoo Groups archive

Lpc2000

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

Thread

program starting problem

program starting problem

2005-12-06 by arm_beta_tester

Hello,

I've written a simple program for ARM LPC2138 to flash on and off LED.
I use IAR EWARM software.
When the code is debbuged everything is ok.
But when I disconnet JTAG HW and reset microcontroller, it's not starting.

I noticed that if I disconnect the supply voltage and immediately
after that connect the plug program starting.

Regards

Hubert Gawinski

Re: [lpc2000] program starting problem

2005-12-06 by Mike Nelson

Hubert:

Have you configured IAR EWARM to program the flash?
See Project, Options, Debugger, Download.

Regards:

Mike Nelson

--- arm_beta_tester <h11@...> wrote:

> Hello,
> 
> I've written a simple program for ARM LPC2138 to
> flash on and off LED.
> I use IAR EWARM software.
> When the code is debbuged everything is ok.
> But when I disconnet JTAG HW and reset
> microcontroller, it's not starting.
> 
> I noticed that if I disconnect the supply voltage
> and immediately
> after that connect the plug program starting.
> 
> Regards
> 
> Hubert Gawinski
> 
> 
> 
> 
> 



		
__________________________________________ 
Yahoo! DSL \ufffd Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com

Re: [lpc2000] program starting problem

2005-12-06 by mfrazier@governors-america.com

Have you checked the reset circuit...in debug mode the jtag handles the 
reset...this could be why it's acting this way.
Good Luck,
The Wizard

[Non-text portions of this message have been removed]

Re: program starting problem

2005-12-06 by arm_beta_tester

The download option is turned on
(Project->Options->Debugger/Download->Use flash loader(s))
The flash memory is downloaded properly. 
As I mentioned sometimes the microcontroller starts and then work well.
But if I disconnect supplying plug for a second and connect once again
it doesn't work.


--- In lpc2000@yahoogroups.com, Mike Nelson <m1k3n3ls0n@y...> wrote:
Show quoted textHide quoted text
>
> Hubert:
> 
> Have you configured IAR EWARM to program the flash?
> See Project, Options, Debugger, Download.
> 
> Regards:
> 
> Mike Nelson
>

Re: program starting problem

2005-12-06 by arm_beta_tester

The reset pin of the microcontroller is connected by 10k to VCC and
also to GND in series with 100n capacitor.

--- In lpc2000@yahoogroups.com, mfrazier@g... wrote:
Show quoted textHide quoted text
>
> Have you looked at the reset circuit??
> 
> [Non-text portions of this message have been removed]
>

Re: [lpc2000] Re: program starting problem

2005-12-06 by Mauricio Scaff

Apears to be a reset problem or your start.s is not initializing 
properly the stack pointer.



arm_beta_tester wrote:
> The download option is turned on
> (Project->Options->Debugger/Download->Use flash loader(s))
> The flash memory is downloaded properly.
> As I mentioned sometimes the microcontroller starts and then work well.
> But if I disconnect supplying plug for a second and connect once again
> it doesn't work.
>
>
> --- In lpc2000@yahoogroups.com, Mike Nelson <m1k3n3ls0n@y...> wrote:
> >
> > Hubert:
> >
> > Have you configured IAR EWARM to program the flash?
> > See Project, Options, Debugger, Download.
> >
> > Regards:
> >
> > Mike Nelson
> >
>
>
>
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "lpc2000
>       <http://groups.yahoo.com/group/lpc2000>" on the web.
>        
>     *  To unsubscribe from this group, send an email to:
>        lpc2000-unsubscribe@yahoogroups.com
>       <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>        
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>



[Non-text portions of this message have been removed]

Re: program starting problem

2005-12-07 by fredvermejo

It can be a reset or oscillator problem too.
Check the rise time of reset and start-up time of oscillator.
If (rise time < start-up time) change the Caps value connected to 
XTAL.



--- In lpc2000@yahoogroups.com, Mauricio Scaff <scaffm@g...> wrote:
>
> Apears to be a reset problem or your start.s is not initializing 
> properly the stack pointer.
> 
> 
> 
> arm_beta_tester wrote:
> > The download option is turned on
> > (Project->Options->Debugger/Download->Use flash loader(s))
> > The flash memory is downloaded properly.
> > As I mentioned sometimes the microcontroller starts and then 
work well.
> > But if I disconnect supplying plug for a second and connect once 
again
> > it doesn't work.
> >
> >
> > --- In lpc2000@yahoogroups.com, Mike Nelson <m1k3n3ls0n@y...> 
wrote:
> > >
> > > Hubert:
> > >
> > > Have you configured IAR EWARM to program the flash?
> > > See Project, Options, Debugger, Download.
> > >
> > > Regards:
> > >
> > > Mike Nelson
> > >
> >
> >
> >
> >
> >
> > -----------------------------------------------------------------
-------
> > YAHOO! GROUPS LINKS
> >
> >     *  Visit your group "lpc2000
> >       <http://groups.yahoo.com/group/lpc2000>" on the web.
> >        
> >     *  To unsubscribe from this group, send an email to:
> >        lpc2000-unsubscribe@yahoogroups.com
> >       <mailto:lpc2000-unsubscribe@yahoogroups.com?
subject=Unsubscribe>
> >        
> >     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms 
of
> >       Service <http://docs.yahoo.com/info/terms/>.
> >
> >
> > -----------------------------------------------------------------
-------
Show quoted textHide quoted text
> >
> 
> 
> 
> [Non-text portions of this message have been removed]
>

Re: program starting problem

2005-12-07 by arm_beta_tester

Finally, I've found the problem.
A value of the MEMMAP register (it is used for memory mapping) was
equal to 0x00 by default. In this case interrupt vector are remapped
to boot block.

If I exchange the value of this register for 0x01(in debugger mode),
when the reset vector is reached the program works fine. In that case
interrupt vectors are not remapped and reside in flash.

So, I have to change the cstartup.s79 file. So far I use precompiled
runtime libraries, then I must to write a piece of code.

regards,
hg

--- In lpc2000@yahoogroups.com, "arm_beta_tester" <h11@o...> wrote:
>
> Hello,
> 
> I've written a simple program for ARM LPC2138 to flash on and off LED.
> I use IAR EWARM software.
> When the code is debbuged everything is ok.
> But when I disconnet JTAG HW and reset microcontroller, it's not
starting.
Show quoted textHide quoted text
> 
> I noticed that if I disconnect the supply voltage and immediately
> after that connect the plug program starting.
> 
> Regards
> 
> Hubert Gawinski
>

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.