Re: [avr-gcc-list] array of structures with variables in flash

2005-06-10 Thread katreniak
> Oops! missed that. Thanks for pointing out. And how do i declare a > variable to be in You have to think the way the compiler does. Struct is just a bunch of data. Accessing the member of a structure means looking to a memory location incremented by the member offset. There is nothing like one

Re: [avr-gcc-list] array of structures with variables in flash

2005-06-10 Thread Kitts
On Friday 10 Jun 2005 4:16 pm IST, Brano Katreniak wrote: > You have to place the array of structures to the flash not the members > of the structure. PGM_P type is a pointer to the string supposed to be > in flash. It says nothing about the fact, where the pointer itself is > stored. Oops! missed

Re: [avr-gcc-list] array of structures with variables in flash

2005-06-10 Thread Brano Katreniak
> I have an array of structures in global space and would like access > these structures from within my code. The structure is declared as > follows: > > struct { > PGM_P name; > const uint8_t no_of_param PROGMEM; > PGM_P parameters; > }command[256]; > > On compile i get the w