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: Vincent Trouilliez
Subject: Re: [avr-gcc-list] use of PROGMEM
Date: Thu, 20 Oct 2005 09:06:01 +0200

> 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





reply via email to

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