From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19931 invoked by alias); 8 May 2013 06:45:27 -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 19903 invoked by uid 89); 8 May 2013 06:45:23 -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 gateway15.websitewelcome.com (HELO gateway15.websitewelcome.com) (70.85.130.11) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 08 May 2013 06:45:22 +0000 Received: by gateway15.websitewelcome.com (Postfix, from userid 5007) id 5417B41D792A3; Wed, 8 May 2013 01:45:21 -0500 (CDT) Received: from ham01.websitewelcome.com (ham.websitewelcome.com [173.192.111.52]) by gateway15.websitewelcome.com (Postfix) with ESMTP id DC4B341D79094 for ; Wed, 8 May 2013 01:45:20 -0500 (CDT) Received: by ham01.websitewelcome.com (Postfix, from userid 666) id B8BC1E3B16C0E; Wed, 8 May 2013 01:45:30 -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 ham01.websitewelcome.com (Postfix) with ESMTP id 9CBBBE3B1679C for ; Wed, 8 May 2013 01:45:29 -0500 (CDT) Received: from [195.189.206.101] (port=53068 helo=[192.168.209.11]) by montecarlo.websitewelcome.com with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.80) (envelope-from ) id 1UZy7r-00043i-8r; Wed, 08 May 2013 01:45:19 -0500 Message-ID: <5189F47D.5080106@siva.com.mk> Date: Wed, 08 May 2013 06:45:00 -0000 From: Ilija Kocho User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130404 Thunderbird/17.0.5 MIME-Version: 1.0 To: Lukas Riezler CC: Edgar Grimberg , ecos-discuss@sourceware.org References: <5178E338.3090307@siva.com.mk> , , <51794C56.2070108@siva.com.mk> , <5182C00C.3040804@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]:53068 X-Source-Auth: ilijak+siva.mk X-Email-Count: 1 X-Source-Cap: c2l2YW1rO2JpYmltYW47bW9udGVjYXJsby53ZWJzaXRld2VsY29tZS5jb20= Subject: Re: Aw: Re: Re: Re: Re: [ECOS] Debugging via JTAG - problems? X-SW-Source: 2013-05/txt/msg00009.txt.bz2 It is likely that compiler has optimised the code out. Try to declare the variables volatile or some output with diag_printf(). Or compile with -O0. I hope this helps. Ilija On 08.05.2013 01:24, Lukas Riezler wrote: > Hi all, > > sorry for my mail storm! ;) > The problems I've told from in the last 2-3 mails are over. > > I reach now my main(). I think the problem was my interrupt stacksize which was too big. > Okay, now I reach main() - but I can't really do any steps. The "debug cursor" always stays > at the first line. > Is this a "normal" problem or does it indicate anything I should know? > > The function looks like this (only some lines of code for test purposes): > > __________________________ > > int main() > { > int i=0; > int k=0; > > while(1) > { > if(i==0) k=0; > else k=1; > } > > return 0; > } > __________________________ > > > With kind regards, Lukas > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss