You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I tried to run the ServoTimer2 library on an Sparkfun Pro Micro board, (also on a Adafruit feather 32u4) with a 32u4 cpu 8 MHz, but doesn't work. The errors are:
Arduino:1.8.12 (Windows 10), Scheda:"SparkFun Pro Micro, ATmega32U4 (3.3V, 8 MHz)"
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp: In function 'void TIMER2_OVF_vect()':
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:24:6: warning: 'TIMER2_OVF_vect' appears to be a misspelled signal handler, missing __vector prefix [-Wmisspelled-isr]
ISR (TIMER2_OVF_vect)
^
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:29:2: error: 'TCNT2' was not declared in this scope
TCNT2 = servos[Channel].remainder; // yes, set count for overflow after remainder ticks
^
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:39:2: error: 'TCNT2' was not declared in this scope
TCNT2 = 0; // reset the clock counter register
^
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp: In function 'void initISR()':
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:124:2: error: 'TIMSK2' was not declared in this scope
TIMSK2 = 0; // disable interrupts
^
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:125:2: error: 'TCCR2A' was not declared in this scope
TCCR2A = 0; // normal counting mode
^
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:126:2: error: 'TCCR2B' was not declared in this scope
TCCR2B = _BV(CS21); // set prescaler of 8
^
In file included from c:\users\paolo\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\io.h:99:0,
from c:\users\paolo\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\interrupt.h:38,
from D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:4:
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:126:15: error: 'CS21' was not declared in this scope
TCCR2B = _BV(CS21); // set prescaler of 8
^
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:127:2: error: 'TCNT2' was not declared in this scope
TCNT2 = 0; // clear the timer2 count
^
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:128:2: error: 'TIFR2' was not declared in this scope
TIFR2 = _BV(TOV2); // clear pending interrupts;
^
In file included from c:\users\paolo\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\io.h:99:0,
from c:\users\paolo\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\interrupt.h:38,
from D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:4:
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:128:14: error: 'TOV2' was not declared in this scope
TIFR2 = _BV(TOV2); // clear pending interrupts;
^
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:129:16: error: 'TOIE2' was not declared in this scope
TIMSK2 = _BV(TOIE2) ; // enable the overflow interrupt
^
Uso la libreria ServoTimer2 nella cartella: D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2 (legacy)
exit status 1
Errore durante la compilazione per la scheda SparkFun Pro Micro.
The text was updated successfully, but these errors were encountered:
Hi, I tried to run the ServoTimer2 library on an Sparkfun Pro Micro board, (also on a Adafruit feather 32u4) with a 32u4 cpu 8 MHz, but doesn't work. The errors are:
Arduino:1.8.12 (Windows 10), Scheda:"SparkFun Pro Micro, ATmega32U4 (3.3V, 8 MHz)"
D:\Programmi\Arduino\arduino-builder -dump-prefs -logger=machine -hardware D:\Programmi\Arduino\hardware -hardware C:\Users\Paolo\AppData\Local\Arduino15\packages -hardware D:\D\Arduino_doc\sorgenti101\hardware -tools D:\Programmi\Arduino\tools-builder -tools D:\Programmi\Arduino\hardware\tools\avr -tools C:\Users\Paolo\AppData\Local\Arduino15\packages -built-in-libraries D:\Programmi\Arduino\libraries -libraries D:\D\Arduino_doc\sorgenti101\libraries -fqbn=SparkFun:avr:promicro:cpu=8MHzatmega32U4 -ide-version=10812 -build-path C:\Users\Paolo\AppData\Local\Temp\arduino_build_819664 -warnings=all -build-cache C:\Users\Paolo\AppData\Local\Temp\arduino_cache_287673 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.1.1 -prefs=runtime.tools.arduinoOTA-1.1.1.path=C:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.1.1 -prefs=runtime.tools.avrdude.path=C:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9 -prefs=runtime.tools.avrdude-6.3.0-arduino9.path=C:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9 -prefs=runtime.tools.avr-gcc.path=C:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -prefs=runtime.tools.avr-gcc-4.9.2-atmel3.5.4-arduino2.path=C:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -verbose D:\D\Arduino_doc\sorgenti101\Libraries\ServoTimer2\examples\threeservos\threeservos.ino
D:\Programmi\Arduino\arduino-builder -compile -logger=machine -hardware D:\Programmi\Arduino\hardware -hardware C:\Users\Paolo\AppData\Local\Arduino15\packages -hardware D:\D\Arduino_doc\sorgenti101\hardware -tools D:\Programmi\Arduino\tools-builder -tools D:\Programmi\Arduino\hardware\tools\avr -tools C:\Users\Paolo\AppData\Local\Arduino15\packages -built-in-libraries D:\Programmi\Arduino\libraries -libraries D:\D\Arduino_doc\sorgenti101\libraries -fqbn=SparkFun:avr:promicro:cpu=8MHzatmega32U4 -ide-version=10812 -build-path C:\Users\Paolo\AppData\Local\Temp\arduino_build_819664 -warnings=all -build-cache C:\Users\Paolo\AppData\Local\Temp\arduino_cache_287673 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.1.1 -prefs=runtime.tools.arduinoOTA-1.1.1.path=C:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.1.1 -prefs=runtime.tools.avrdude.path=C:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9 -prefs=runtime.tools.avrdude-6.3.0-arduino9.path=C:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9 -prefs=runtime.tools.avr-gcc.path=C:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -prefs=runtime.tools.avr-gcc-4.9.2-atmel3.5.4-arduino2.path=C:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -verbose D:\D\Arduino_doc\sorgenti101\Libraries\ServoTimer2\examples\threeservos\threeservos.ino
Using board 'promicro' from platform in folder: C:\Users\Paolo\AppData\Local\Arduino15\packages\SparkFun\hardware\avr\1.1.12
Using core 'arduino' from platform in folder: C:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21
Detecting libraries used...
"C:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=8000000L -DARDUINO=10812 -DARDUINO_AVR_PROMICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x1b4f -DUSB_PID=0x9204 "-DUSB_MANUFACTURER="Unknown"" "-DUSB_PRODUCT="SparkFun Pro Micro"" "-IC:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\Paolo\AppData\Local\Arduino15\packages\SparkFun\hardware\avr\1.1.12\variants\promicro" "C:\Users\Paolo\AppData\Local\Temp\arduino_build_819664\sketch\threeservos.ino.cpp" -o nul
Alternatives for ServoTimer2.h: [ServoTimer2]
ResolveLibrary(ServoTimer2.h)
-> candidates: [ServoTimer2]
"C:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=8000000L -DARDUINO=10812 -DARDUINO_AVR_PROMICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x1b4f -DUSB_PID=0x9204 "-DUSB_MANUFACTURER="Unknown"" "-DUSB_PRODUCT="SparkFun Pro Micro"" "-IC:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\Paolo\AppData\Local\Arduino15\packages\SparkFun\hardware\avr\1.1.12\variants\promicro" "-ID:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2" "C:\Users\Paolo\AppData\Local\Temp\arduino_build_819664\sketch\threeservos.ino.cpp" -o nul
"C:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=8000000L -DARDUINO=10812 -DARDUINO_AVR_PROMICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x1b4f -DUSB_PID=0x9204 "-DUSB_MANUFACTURER="Unknown"" "-DUSB_PRODUCT="SparkFun Pro Micro"" "-IC:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\Paolo\AppData\Local\Arduino15\packages\SparkFun\hardware\avr\1.1.12\variants\promicro" "-ID:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2" "D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp" -o nul
Generating function prototypes...
"C:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=8000000L -DARDUINO=10812 -DARDUINO_AVR_PROMICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x1b4f -DUSB_PID=0x9204 "-DUSB_MANUFACTURER="Unknown"" "-DUSB_PRODUCT="SparkFun Pro Micro"" "-IC:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\Paolo\AppData\Local\Arduino15\packages\SparkFun\hardware\avr\1.1.12\variants\promicro" "-ID:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2" "C:\Users\Paolo\AppData\Local\Temp\arduino_build_819664\sketch\threeservos.ino.cpp" -o "C:\Users\Paolo\AppData\Local\Temp\arduino_build_819664\preproc\ctags_target_for_gcc_minus_e.cpp"
"D:\Programmi\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\Paolo\AppData\Local\Temp\arduino_build_819664\preproc\ctags_target_for_gcc_minus_e.cpp"
Sto compilando lo sketch...
"C:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega32u4 -DF_CPU=8000000L -DARDUINO=10812 -DARDUINO_AVR_PROMICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x1b4f -DUSB_PID=0x9204 "-DUSB_MANUFACTURER="Unknown"" "-DUSB_PRODUCT="SparkFun Pro Micro"" "-IC:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\Paolo\AppData\Local\Arduino15\packages\SparkFun\hardware\avr\1.1.12\variants\promicro" "-ID:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2" "C:\Users\Paolo\AppData\Local\Temp\arduino_build_819664\sketch\threeservos.ino.cpp" -o "C:\Users\Paolo\AppData\Local\Temp\arduino_build_819664\sketch\threeservos.ino.cpp.o"
Compiling libraries...
Compiling library "ServoTimer2"
"C:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega32u4 -DF_CPU=8000000L -DARDUINO=10812 -DARDUINO_AVR_PROMICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x1b4f -DUSB_PID=0x9204 "-DUSB_MANUFACTURER="Unknown"" "-DUSB_PRODUCT="SparkFun Pro Micro"" "-IC:\Users\Paolo\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\Paolo\AppData\Local\Arduino15\packages\SparkFun\hardware\avr\1.1.12\variants\promicro" "-ID:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2" "D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp" -o "C:\Users\Paolo\AppData\Local\Temp\arduino_build_819664\libraries\ServoTimer2\ServoTimer2.cpp.o"
In file included from D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:4:0:
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp: In function 'void TIMER2_OVF_vect()':
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:24:6: warning: 'TIMER2_OVF_vect' appears to be a misspelled signal handler, missing __vector prefix [-Wmisspelled-isr]
ISR (TIMER2_OVF_vect)
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:29:2: error: 'TCNT2' was not declared in this scope
TCNT2 = servos[Channel].remainder; // yes, set count for overflow after remainder ticks
^
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:39:2: error: 'TCNT2' was not declared in this scope
TCNT2 = 0; // reset the clock counter register
^
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp: In function 'void initISR()':
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:124:2: error: 'TIMSK2' was not declared in this scope
TIMSK2 = 0; // disable interrupts
^
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:125:2: error: 'TCCR2A' was not declared in this scope
TCCR2A = 0; // normal counting mode
^
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:126:2: error: 'TCCR2B' was not declared in this scope
TCCR2B = _BV(CS21); // set prescaler of 8
^
In file included from c:\users\paolo\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\io.h:99:0,
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:126:15: error: 'CS21' was not declared in this scope
TCCR2B = _BV(CS21); // set prescaler of 8
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:127:2: error: 'TCNT2' was not declared in this scope
TCNT2 = 0; // clear the timer2 count
^
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:128:2: error: 'TIFR2' was not declared in this scope
TIFR2 = _BV(TOV2); // clear pending interrupts;
^
In file included from c:\users\paolo\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\io.h:99:0,
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:128:14: error: 'TOV2' was not declared in this scope
TIFR2 = _BV(TOV2); // clear pending interrupts;
D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2\ServoTimer2.cpp:129:16: error: 'TOIE2' was not declared in this scope
TIMSK2 = _BV(TOIE2) ; // enable the overflow interrupt
Uso la libreria ServoTimer2 nella cartella: D:\D\Arduino_doc\sorgenti101\libraries\ServoTimer2 (legacy)
exit status 1
Errore durante la compilazione per la scheda SparkFun Pro Micro.
The text was updated successfully, but these errors were encountered: