Page 1 of 1

Errorcode by uploading from Raspi to Ardiuno Mega

Posted: Sun Feb 16, 2014 5:18 pm
by Potage
sorry for my english,
i dosn´t found a forum in german about these theme

the truble:
I using the 16x32 DMD and have already install the DMD-library on my Raspberry in this Foulder:
when I test the examplefile, before uploading, i´ll get this error massage:
… ´Arial_Black_16´ must be const in order to be put into read-only section by means of ´_attribute_((progmem))

What shall I do?
thanks al lot for support
greets from Germany

Re: Errorcode by uploading from Raspi to Ardiuno Mega

Posted: Tue Feb 18, 2014 5:24 am
by angusgr
Hi Potage,

Thanks for pointing this out. A lot of Linux distributions provide a "different" Arduino IDE that uses new and improved avr-gcc and avrlibc versions, and some newer versions have different requirements on data type declarations, etc.

I've just pushed a change to the DMD library that should fix this issue.

You can either re-download the library, or just look for the line in Arial_black_16.h that reads:

Code: Select all

static uint8_t Arial_Black_16[] PROGMEM = {
And add the keyword "const" to the beginning, like this:

Code: Select all

const static uint8_t Arial_Black_16[] PROGMEM = {
But if you re-downloaad the library, you'll have that change already.

Thanks again for pointing that out. Enjoy the DMD!