From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22226 invoked by alias); 10 Jul 2007 15:52:00 -0000 Received: (qmail 22217 invoked by uid 22791); 10 Jul 2007 15:51:59 -0000 X-Spam-Check-By: sourceware.org Received: from cadmium.webfusion.co.uk (HELO cadmium.webfusion.co.uk) (212.67.202.132) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 10 Jul 2007 15:51:55 +0000 Received: from grapevinetech.demon.co.uk ([80.177.222.235] helo=Kimbara) by cadmium.webfusion.co.uk with esmtpa (Exim 4.54) id 1I8I0G-00076i-5B; Tue, 10 Jul 2007 16:51:52 +0100 Message-ID: <003c01c7c30a$40480720$7101a8c0@Kimbara> Reply-To: "Andy Jackson" From: "Andy Jackson" To: "Alexandre" Cc: References: <20070705205321.GA10274@ubuntu> <1183718456.13495.20.camel@sg-ubuntu> <20070706164818.GB6854@ubuntu> <20070706172338.GA8127@ubuntu> <20070710101535.GB10830@lunn.ch> <20070710151420.GC10830@lunn.ch> Date: Tue, 10 Jul 2007 15:52:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook Express 6.00.2900.3138 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Re: eCos invalidating JTAG on ARM architecture ? X-SW-Source: 2007-07/txt/msg00094.txt.bz2 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" To: "Alexandre" Cc: "Sergei Gavrikov" ; 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