From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8613 invoked by alias); 25 Apr 2013 15:31:42 -0000 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 Received: (qmail 8571 invoked by uid 89); 25 Apr 2013 15:31:41 -0000 X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,SPF_NEUTRAL autolearn=no version=3.3.1 Received: from gateway08.websitewelcome.com (HELO gateway08.websitewelcome.com) (67.18.62.17) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 25 Apr 2013 15:31:40 +0000 Received: by gateway08.websitewelcome.com (Postfix, from userid 5007) id 1250C23C921E; Thu, 25 Apr 2013 10:31:39 -0500 (CDT) Received: from ham03.websitewelcome.com (ham.websitewelcome.com [173.192.100.229]) by gateway08.websitewelcome.com (Postfix) with ESMTP id C1CC123C9104 for ; Thu, 25 Apr 2013 10:31:38 -0500 (CDT) Received: by ham03.websitewelcome.com (Postfix, from userid 666) id BA1F94F1534CB; Thu, 25 Apr 2013 10:31:38 -0500 (CDT) X-Spam-Flag2999: NO X-Spam-Level2999: X-Spam-Status2999: "No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received: from montecarlo.websitewelcome.com (montecarlo.websitewelcome.com [174.120.9.66]) by ham03.websitewelcome.com (Postfix) with ESMTP id 600204F15317F for ; Thu, 25 Apr 2013 10:31:37 -0500 (CDT) Received: from [195.189.206.101] (port=53749 helo=[192.168.209.11]) by montecarlo.websitewelcome.com with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.80) (envelope-from ) id 1UVO92-0005Wv-SS; Thu, 25 Apr 2013 10:31:37 -0500 Message-ID: <51794C56.2070108@siva.com.mk> Date: Thu, 25 Apr 2013 15:31:00 -0000 From: Ilija Kocho User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: Lukas Riezler CC: Edgar Grimberg , ecos-discuss@sourceware.org References: <5178E338.3090307@siva.com.mk> , In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BWhitelist: no X-Source-Sender: ([192.168.209.11]) [195.189.206.101]:53749 X-Source-Auth: ilijak+siva.mk X-Email-Count: 1 X-Source-Cap: c2l2YW1rO2JpYmltYW47bW9udGVjYXJsby53ZWJzaXRld2VsY29tZS5jb20= Subject: Re: Aw: Re: Re: [ECOS] Debugging via JTAG - problems? X-SW-Source: 2013-04/txt/msg00028.txt.bz2 On 25.04.2013 16:19, Lukas Riezler wrote: > Hi Edgar! > >> - Be sure everything is compiled with -O0 (no optimization). > So I have to add this flag at the global build options in the configuration tool? > >> - Be sure you have compiled the latest version of the source code. > I have ecos installed like it is described here: http://ecos.sourceware.org/getstart.html > Is this ecos source code the latest one? I know about the CVS but I thougt the only difference is that there are more ports listed. I strongly advise you to switch to CVS. Although it is not a release it is pretty much stable. eCos CVS is not a development repository but rather a rolling release. >> - Be sure you have loaded the elf file to the target (I assume it's a RAM application, isn't it?) > Yes, it is a RAM application. But I selected JTAG as startup type in the configuration tool. > But how can I get sure the elf file is loaded to the target? Sorry for my silly question :/ It would be best to start with configuration that only employs on-chip memory. I do not know your configuration (CDL, memory layout) so I shall talk in terms of Kinetis and STM32 port. They have SRAM startup type that is intended for usage with JTAG. Provided that your controller has enough internal RAM this is the simplest way to bring system to life and JTAG should work from scratch. ROM startup that uses only on-chip ROM ans RAM is almost equally easy provided that you have a tool to program controller's flash. To sum up try to build system with on-chip memory first. Ilija -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss