From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1300 invoked by alias); 10 Jul 2007 15:14:33 -0000 Received: (qmail 1292 invoked by uid 22791); 10 Jul 2007 15:14:32 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 10 Jul 2007 15:14:30 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1I8HPw-0004xy-00; Tue, 10 Jul 2007 17:14:20 +0200 Date: Tue, 10 Jul 2007 15:14:00 -0000 From: Andrew Lunn To: Alexandre Cc: Sergei Gavrikov , ecos-discuss@ecos.sourceware.org Message-ID: <20070710151420.GC10830@lunn.ch> Mail-Followup-To: Alexandre , Sergei Gavrikov , ecos-discuss@ecos.sourceware.org References: <20070705205321.GA10274@ubuntu> <1183718456.13495.20.camel@sg-ubuntu> <20070706164818.GB6854@ubuntu> <20070706172338.GA8127@ubuntu> <20070710101535.GB10830@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-11) X-IsSubscribed: yes 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/msg00093.txt.bz2 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