Errorcode by uploading from Raspi to Ardiuno Mega

The Dot Matrix Display (DMD) is a 32x16 array of high-brightness LEDs for visually striking effects. [Product Page]
Post Reply
Potage
Posts:1
Joined:Sun Feb 16, 2014 5:14 pm
Errorcode by uploading from Raspi to Ardiuno Mega

Post by Potage » Sun Feb 16, 2014 5:18 pm

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:
usr/share/ardiuno/libraries/DMDmaster
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
Potage

angusgr
Freetronics Staff
Freetronics Staff
Posts:853
Joined:Tue Apr 09, 2013 11:19 pm
Location:Melbourne, Australia
Contact:

Re: Errorcode by uploading from Raspi to Ardiuno Mega

Post by angusgr » Tue Feb 18, 2014 5:24 am

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!

Regards,


Angus

Post Reply