[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] Bug info WINAVR-20030424-bin-install
From: |
Rune Christensen |
Subject: |
RE: [avr-gcc-list] Bug info WINAVR-20030424-bin-install |
Date: |
Thu, 25 Sep 2003 12:37:03 +0200 |
Hello
Did you remember the
#include <inttypes.h>
Have you tried to replace the
uint8_t
with
unsigned char
Rune
-----Original Message-----
From: address@hidden
[mailto:address@hidden Behalf Of Vinay.S
Sent: Thursday, September 25, 2003 6:18 AM
To: address@hidden
Subject: [avr-gcc-list] Bug info WINAVR-20030424-bin-install
> Hi!
> I am using latest version of WinAVR-20030424-bin-install along with
winavr
> avr coff beta install.
> My problems are as follows
>
> 1.) i declare a variable as uint8_t packets[10][20];
> Problem: The complier says type of packets unknown, using void.In the
> Simulator , in the watch window, When i try to watch variable packet, it
> says "not in scope". But, In the Data Memory, I can see that at the
> address of packet,the data is being written to.(searched address in
> assembly)
>
> 2.) I declare a global variable uint8_t global_array[20];
> Problem: The variable is allocated memory space in the program memory
> instead of DATA
> I change of variable to say global_array1[20] then, it allocates
memory
> space for variable in data.But if i recompile, then it again allocates
> memory space in PROGRAM MEMORY(CODE).
> What is the cause and the solution to above problem?
>
> 3.) I declare local Variable say uint8_t ki; and I initiliase it as ki=0;
> but, in the simulator, the variable ki is not initialised to 0, instead it
> contains some default value.
>
> These problems,how ever simple they may seem ,are delaying the
> debugging/testing of our project. I request U guys out there to help us
> out.
> Regards,
> Vinay
>
>
_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list