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

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

Re: [avr-gcc-list] use of PROGMEM


From: varsha
Subject: Re: [avr-gcc-list] use of PROGMEM
Date: Thu, 20 Oct 2005 13:19:56 +0530

hi..ya..
there was no problem with PROGMEM...
there was some declaration problem..
thanks for the help...

regards ,
varsha

----- Original Message ----- 
From: "Vincent Trouilliez" <address@hidden>
To: <address@hidden>
Sent: Thursday, October 20, 2005 12:36 PM
Subject: Re: [avr-gcc-list] use of PROGMEM


> 
> > const char conc_pattern_2s50[] PROGMEM={0x0a.....
> > unsigned char * conc_ptr ;
> > conc_ptr=conc_pattern_2s50;
> >  
> > While compiling i am getting the following error messages
> > fpga_conf.c:94: warning: assignment discards qualifiers from pointer
> > target type
> > How do i solve it??
> 
> 
> Looks like it's not a problem with PROGMEM, but rather that there is a
> type mismatch between your pointer and your data. You declared your
> array as "const char", but your pointer is of type "unsigned char". Try
> fixing your pointer declaration like this:
> 
> const char * conc_ptr;
> 
> 
> 
> HTH,
> 
> 
> --
> Vince
> 
> 
> 
> _______________________________________________
> AVR-GCC-list mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
> 
> 
> -- 
> Internal Virus Database is out-of-date.
> Checked by AVG Anti-Virus.
> Version: 7.0.322 / Virus Database: 267.11.9/115 - Release Date: 9/29/05
> 
> 

***********************Confidentiality Notice***************************

 The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain confidential or privileged information. If you are not
the intended recipient, please notify the sender at Divinet or
address@hidden  immediately and destroy all copies of this
message and any attachments.

************************************************************************ 





reply via email to

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