From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3857 invoked by alias); 5 Jul 2007 16:04:13 -0000 Received: (qmail 3837 invoked by uid 22791); 5 Jul 2007 16:04:12 -0000 X-Spam-Check-By: sourceware.org Received: from elasmtp-spurfowl.atl.sa.earthlink.net (HELO elasmtp-spurfowl.atl.sa.earthlink.net) (209.86.89.66) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 05 Jul 2007 16:04:07 +0000 Received: from [24.218.187.237] (helo=PAULD) by elasmtp-spurfowl.atl.sa.earthlink.net with asmtp (Exim 4.34) id 1I6ToG-0006XJ-Dr for ecos-discuss@ecos.sourceware.org; Thu, 05 Jul 2007 12:04:00 -0400 From: "Paul D. DeRocco" To: "'ecos-discuss'" Date: Thu, 05 Jul 2007 16:04:00 -0000 Message-ID: <039e01c7bf1e$1a220630$887ba8c0@PAULD> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook, Build 10.0.6822 In-Reply-To: X-ELNK-Trace: bd7d5d4e6f8f652c74cfc7ce3b1ad11381c87f5e51960688a4f5ec12339a4e09f327b110e4ac798c350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c 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] eCos invalidating JTAG on ARM architecture ? X-SW-Source: 2007-07/txt/msg00053.txt.bz2 > From: Alexandre >=20 > After I upload my eCos code to my board via JTAG (code which=20 > is fully functioning by the way), I can't by any mean reach=20 > it again via JTAG. OpenOCD just says it can't communicate=20 > with my board. Seems like eCos just disable my JTAG. The only=20 > way I can access my micro controller again is by UART,=20 > erasing the flash using ISP, and then reflashing it by JTAG=20 > works anew. So it works, but I can't debug the thing. In general, JTAG debugging is best for getting your startup code working. Once you've done that, you're better off debugging over serial, or if you have it, Ethernet. As far as I know, OpenOCD doesn't have any particular support for eCos threads (correct me if I'm wrong). To do that, the debugger must be able to execute some eCos code, invoked through the virtual vector table. I don't think any JTAG debugger can do that. I suggest configuring a full-featured version of Redboot, and getting that into the flash. Then debug your application in RAM over serial or Ethernet. You can ultimately get Redboot to boot your application from an image stored in flash. --=20 Ciao, Paul D. DeRocco Paul mailto:pderocco@ix.netcom.com=20 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss