avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Problem with debbuggin with AVRStudio, WinAvr and JtagIce


From: antonioromano
Subject: [avr-gcc-list] Problem with debbuggin with AVRStudio, WinAvr and JtagIce mkII
Date: 16 Nov 2005 13:08:42 -0000

Hi,

I'm new here.
I'm working  with ATmega128, Stk500, stk501 and jTagIce mkII.
i have installed on my windows XP AvrStudio 4.12 and WinAvr 20050214.
WinAvr uses Avr-Gcc 3.4.3 and GDB 6.1. I have a problem with the following code:

#include <avr/io.h>

int somma(int a, int b)

{
                return a+b;
}

int main ()
{               int e = 10;             
                int r = 1;      
                r = somma(e,r);
                r=r+1;
                                return r;               
}

it's a stupid program. When debbugging it step by step the main regularly calls 
somma(e,r).
After somma(e,r) finished, the control flow does not return in main at r=r+1 
but in a part of memory without code  (after the exit() of the main). Can you 
help me with  this problem?

Best regards

Antonio

-------------------------------------------------------------------------
Visita http://domini.interfree.it, il sito di Interfree dove trovare
soluzioni semplici e complete che soddisfano le tue esigenze in Internet,
ecco due esempi di offerte:

-  Registrazione Dominio: un dominio con 1 MB di spazio disco +  2 caselle
   email a soli 18,59 euro
-  MioDominio: un dominio con 20 MB di spazio disco + 5 caselle email 
   a soli 51,13 euro

Vieni a trovarci!

Lo Staff di Interfree 
-------------------------------------------------------------------------





reply via email to

[Prev in Thread] Current Thread [Next in Thread]