This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Aw: Re: Re: Re: Re: Debugging via JTAG - problems?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]