This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Aw: Re: Re: Re: Re: Debugging via JTAG - problems?
- From: Ilija Kocho <ilijak at siva dot com dot mk>
- To: Lukas Riezler <lukas dot riezler at gmx dot net>
- Cc: Edgar Grimberg <edgar dot grimberg at gmail dot com>, ecos-discuss at sourceware dot org
- Date: Wed, 08 May 2013 08:45:17 +0200
- Subject: Re: Aw: Re: Re: Re: Re: Debugging via JTAG - problems?
- References: <trinity-f282db46-eac2-47d3-8bb1-13e21542ba72-1366848816388 at 3capp-gmx-bs55> <5178E338 dot 3090307 at siva dot com dot mk> <trinity-ba72444c-8db1-461a-b4d5-1651ed21f6d2-1366894983433 at 3capp-gmx-bs14> <CAPrjMDBTTL3K=jw8bN=u0D3qL-K kbqraFgS4e2vL pTrN3mNw at mail dot gmail dot com>, <CAPrjMDBhM1YJEjsW9KE0AK5 U6YUmTa77zXBRDW41iQv-VV1 g at mail dot gmail dot com> <trinity-10f2c11b-1ef6-45c3-a766-d4e6770a2ac3-1366899590535 at 3capp-gmx-bs13>, <51794C56 dot 2070108 at siva dot com dot mk> <trinity-c31ca60c-87cb-457f-86d8-d5c6e079fdcc-1366981211319 at 3capp-gmx-bs42>, <5182C00C dot 3040804 at siva dot com dot mk>, <trinity-51602dbf-6aa8-4872-88b0-8d79a7709129-1367954157118 at 3capp-gmx-bs63>, <trinity-fbde8ec6-1f8b-4ba0-b5db-087df8c50d59-1367963877642 at 3capp-gmx-bs42> <trinity-8b9000a8-5f39-4abf-8f77-a5ccc1a222fe-1367969068682 at 3capp-gmx-bs49>
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