NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Support Forum » PROGMEM attribute ignored warning
July 19, 2010 by joel |
can anyone help me to determine why i get progmem attribute ignored warning. I was tying to generate some code for the led array project to scroll text with out the computer.i can get it to work if i let the text reside in ram.when i try to put it in flash it gives this warning.the progmem operates ok in the font.h file as it is put in flash at lower addresses.Below is my code
I am running windows 7 64 bit system and using the make file and programmers notepad in the led array kit to compile code. thanks a bunch |
---|---|
July 21, 2010 by hevans (NerdKits Staff) |
Hi joel, I think you are getting this error because you are trying to declare a static string into program memory in the middle of a method. This is inherently a strange thing to do because things inside methods should be evaluated a runtime. Place your static stings outside of any method (they are typically placed right after the include statements), and I think that will solve your problem. Humberto |
July 25, 2010 by joel |
thanks Humberto,that did solve my problem. Joel |
Please log in to post a reply.
Did you know that a piezoelectric buzzer can be used to play music with your microcontroller? Learn more...
|