Quote:
Originally Posted by NotJimCarrey
Both lines are identical for me.
I'm trying to program an ATMEGA328P-PU via breadboard using an Arduino Micro as an ISP
|
Okay. Tried verifying to an Arduino Micro, still could not duplicate error. A Google search of "error: variable must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’" turned up some results, mostly dealing with downgrading the underlying AVR compiler. One result did sound promising, though.
Try changing the two lines as follows:
Code:
const char * const buttonPressAdrList[(unsigned int)(screenSize)] PROGMEM = {
Code:
const uint8_t * const S64programList[] PROGMEM = {
The modifications do not cause any errors when I compile it, so maybe it will work for you?