[ECOS] Re: eCos invalidating JTAG on ARM architecture ?

Andy Jackson list@xylanta.com
Tue Jul 10 15:52:00 GMT 2007


Have you tried the CDL option

CYGHWR_HAL_ARM_LPC2XXX_IDLE_PWRSAVE

Here is the description. I put it in when I was having problems with the 
JTAG dropping out.

           Select this option when it is desired to save power by
           stoping the processor clock in the idle loop. This is
           controlled by the PCON register. Generally this is a good
           thing, but it may be necessary to disable this when
           debugging via JTAG, as stopping the clock can prevent the
           debugger getting control of the system."

Hope that helps,

    Andy..

----- Original Message ----- 
From: "Andrew Lunn" <andrew@lunn.ch>
To: "Alexandre" <thekyz@gmail.com>
Cc: "Sergei Gavrikov" <w3sg@softhome.net>; 
<ecos-discuss@ecos.sourceware.org>
Sent: Tuesday, July 10, 2007 4:14 PM
Subject: Re: [ECOS] Re: eCos invalidating JTAG on ARM architecture ?


> On Tue, Jul 10, 2007 at 05:02:12PM +0200, Alexandre wrote:
>> Okay i seem to have identified the problem and narrowed it down again.
>> The modification on the PINSEL1 register init now enables me to debug
>> eCos properly IF i don't use the function cyg_thread_delay().
>> For some obscure reason this particular function seems to deactivate
>> the JTAG definitely (JTAG1 and 2) on my controller.
>>
>> Should it be expected ?
>
> No.
>
> cyg_thread_delay() does nothing with hardware. It just waits until the
> correct number of timer ticks have gone off and then brings sleeping
> process back to running state.
>
> Does the system continue to run even though JTAG has stopped?
>
> Im just wondering if JTAG stops working with the system crashes?  It
> could be your stack is too small, which sometimes causes crashes in
> cyg_thread_delay().
>
> What test programs are you using? All the standard tests should work
> without problems, so i would use them for the moment until you get a
> stable system.
>
>    Andrew
>
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
> 


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list