View Single Post
Old 01-03-2014, 10:00 AM   #279 (permalink)
t vago
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Hungary
Posts: 1,807

iNXS - '10 Opel Zafira 111 Anniversary

Suzi - '02 Suzuki Swift GL
Thanks: 829
Thanked 708 Times in 456 Posts
Quote:
Originally Posted by NotJimCarrey View Post
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?
  Reply With Quote