Hello,
I have an Arduino UNO (an older revision I believe, if that matters) and running Arduino 1.6.3 IDE. I cannot get most of the examples to compile and it appears to be an issue with the libraries. I know I have the libraries installed as they show up in the dropdown menu in the IDE, however I keep getting errors like this:
lfo.pde:36:10: error: 'prog_int16_t' does not name a type
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/WString.h:29:0,
from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Print.h:26,
from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Stream.h:26,
from C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire/Wire.h:26,
from lfo.pde:17:
lfo.pde: In function 'void __vector_11()':
lfo.pde:89:30: error: 'sinewave' was not declared in this scope
lfo.pde:98:30: error: 'sinewave' was not declared in this scope
Error compiling.
Is there a compatibility issue I missed? Sorry, I'm kind of a noob.
- It is currently Thu Dec 05, 2019 11:03 pm • All times are UTC - 8 hours [ DST ]
Arduino 1.6.3 library errors
5 posts
• Page 1 of 1
Re: Arduino 1.6.3 library errors
it looks like same problem with the new avr-gcc that arduino comes with. they changed how they put data into program memory. i will have to rewrite the library. you can follow the FHT/FFT threads in regards to progmem if you want to have a look at the issue yourself.
check to see that everything works EXCEPT for sketches that include progmem (sine generator). that pretty much just leaves the delay programs.
check to see that everything works EXCEPT for sketches that include progmem (sine generator). that pretty much just leaves the delay programs.
- guest
- Site Admin
- Posts: 449
- Joined: Thu May 20, 2010 11:58 pm
Re: Arduino 1.6.3 library errors
ok, can you try this for me: open up the sine_generator sketch. change the initial progmem definition at the top frome:
to
- Code: Select all
PROGMEM prog_int16_t sinewave[] = {
// this file is stored in AudioCodec.h and is a 1024 value
// sinewave lookup table of signed 16bit integers
// you can replace it with your own waveform if you like
#include <sinetable.inc>
};
to
- Code: Select all
extern const int16_t sinewave[] PROGMEM = {
// this file is stored in AudioCodec.h and is a 1024 value
// sinewave lookup table of signed 16bit integers
// you can replace it with your own waveform if you like
#include <sinetable.inc>
};
- guest
- Site Admin
- Posts: 449
- Joined: Thu May 20, 2010 11:58 pm
Re: Arduino 1.6.3 library errors
Thank you! Yes, your code worked for me.
- jayache80
- Posts: 4
- Joined: Tue Apr 07, 2015 1:54 am
Re: Arduino 1.6.3 library errors
excellent, thanks for helping debug that with me. i will update the libraries.
- guest
- Site Admin
- Posts: 449
- Joined: Thu May 20, 2010 11:58 pm
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest