[Top][All Lists]

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

Re: [avr-gcc-list] array of floats in program memory

From: Ernst den Broeder
Subject: Re: [avr-gcc-list] array of floats in program memory
Date: Mon, 7 Apr 2003 23:15:23 -0400 (EDT)

I figured it out.  I had placed this array definition in a subroutine.  
A dumb newbie mistake no doubt.  Should this gotcha be a comment in
pgmspace.h or this is common C knowledge that a newbie wouldn't know? 

:-)  Thanks for putting up with my posts...  I'll shut up.


On Mon, 7 Apr 2003, Ernst den Broeder wrote:

> Hi All,
> This piece of code does not compile (winavr-20030312).  I get a 
> __progmem__ attribute ignored warning message, and an inspection of the 
> listing shows that my data is indeed going to ram.
>    float PROGMEM afr_vs_voltage[62]=
>     {
>         1.40, 10.08,
>         1.45, 10.23, 
>         ...(trimmed for email)..
>         2.85, 19.66,
>         2.90, 20.66
>     };
> Any ideas?  I'm a newbie and I'm stumped.  I have just subscribed to the
> list, and I have searched the subject headers from the past year but I
> can't find anything related to my problem.
> Thank you,
> Ernst
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://www.avr1.org/mailman/listinfo/avr-gcc-list

reply via email to

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