Good work everyone. I currently have an ARDINO NANO EVERY (cloned) card in my hand. I just bought the card and it works without any problems. But when the job comes with servo or pwm, when I add the servo library, I get errors, I have indicated the errors in the picture, I have not encountered such a situation before. I would be glad if you help me. I wish you good work:
error Image:
I deliberately wanted to add a library without writing any code and I got the same error.
Welcome to the forum
Please do not post screenshots of code or error messages
Copy them and paste them here in code tags
Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'
Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination
See also FAQ - Arduino Forum for general rules on forum behaviour and etiquette.
Hello,
Welcome to the Arduino Forum.
This guide explains how to get the best out of this forum. Please read and follow the instructions below.
Being new here you might think this is having rules for the sake of rules, but that is not the case. If you don’t follow the guidelines all that happens is there is a long exchange of posts while we try to get you to tell us what we need in order to help you, which is fru…
Download Arduino nano bootloader from here, it will work fine for you
Please post your code as well; please use code tags as described in How to get the best out of this forum .
If you did not use the standard libraries, please indicate where we can find the libraries.
I've tried one of the standard servo examples and it happily compiles for the Nano Every in both register emulation modes.
This topic fits better in the Programming Questions section and is therefore moved; Installation and Troubleshooting is not for problems with (nor for advise on) your project
Your errors seem to indicate that the library that you're using is specific for AVR based boards. TCCR1B, TIFR1 and so on are AVR specific and don't exist in the megaAVR.
How would that solve a programming issue?
Servo.h does indeed work with the Arduino Core for the megaAVR boards. The Thinary core is different. I don't know if you can run the Thinary every with the Arduino core, but MCUDude MegaCoreX should support the 4808. I would think that the Servo library would work with that core if you can't get the Thinary core to work with Servo.h.
Since I was the first, I did not know much, I was torn between the two. Thank you for your warning. I will be careful from now on.
During the download I got the following message:
Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "Thinary Nano Every, None (ATMEGA4808)"
Specified folder/zip file does not contain a valid library
You don't need that bootloader. And it's not a library.
Well, what should I do? I've just started programming ARDUINO. I would appreciate it if you could help me.
Unfortunately it didn't work, I tried all kinds, the error I got:
Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "Thinary Nano Every, None (ATMEGA4808)"
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\asus\OneDrive\Belgeler\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\asus\OneDrive\Belgeler\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\asus\OneDrive\Belgeler\libraries -fqbn=thinary:avr:nona4808:mode=off -ide-version=10819 -build-path C:\Users\asus\AppData\Local\Temp\arduino_build_298753 -warnings=all -build-cache C:\Users\asus\AppData\Local\Temp\arduino_cache_945813 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Users\asus\OneDrive\Belgeler\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino16 -prefs=runtime.tools.avrdude-6.3.0-arduino16.path=C:\Users\asus\OneDrive\Belgeler\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino16 -prefs=runtime.tools.arduinoOTA.path=C:\Users\asus\OneDrive\Belgeler\ArduinoData\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\asus\OneDrive\Belgeler\ArduinoData\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avr-gcc.path=C:\Users\asus\OneDrive\Belgeler\ArduinoData\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=C:\Users\asus\OneDrive\Belgeler\ArduinoData\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5 -verbose C:\Users\asus\AppData\Local\Temp\arduino_modified_sketch_17397\sketch_feb20a.ino
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\arduino-builder -compile -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\asus\OneDrive\Belgeler\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\asus\OneDrive\Belgeler\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\asus\OneDrive\Belgeler\libraries -fqbn=thinary:avr:nona4808:mode=off -ide-version=10819 -build-path C:\Users\asus\AppData\Local\Temp\arduino_build_298753 -warnings=all -build-cache C:\Users\asus\AppData\Local\Temp\arduino_cache_945813 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Users\asus\OneDrive\Belgeler\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino16 -prefs=runtime.tools.avrdude-6.3.0-arduino16.path=C:\Users\asus\OneDrive\Belgeler\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino16 -prefs=runtime.tools.arduinoOTA.path=C:\Users\asus\OneDrive\Belgeler\ArduinoData\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\asus\OneDrive\Belgeler\ArduinoData\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avr-gcc.path=C:\Users\asus\OneDrive\Belgeler\ArduinoData\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=C:\Users\asus\OneDrive\Belgeler\ArduinoData\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5 -verbose C:\Users\asus\AppData\Local\Temp\arduino_modified_sketch_17397\sketch_feb20a.ino
Using board 'nona4808' from platform in folder: C:\Users\asus\OneDrive\Belgeler\ArduinoData\packages\thinary\hardware\avr\1.0.0
Using core 'arduino' from platform in folder: C:\Users\asus\OneDrive\Belgeler\ArduinoData\packages\thinary\hardware\avr\1.0.0
Detecting libraries used...
"C:\\Users\\asus\\OneDrive\\Belgeler\\ArduinoData\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega4808 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_AVR -DMILLIS_USE_TIMERB2 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\asus\\OneDrive\\Belgeler\\ArduinoData\\packages\\thinary\\hardware\\avr\\1.0.0\\cores\\arduino/api/deprecated" "-IC:\\Users\\asus\\OneDrive\\Belgeler\\ArduinoData\\packages\\thinary\\hardware\\avr\\1.0.0\\cores\\arduino" "-IC:\\Users\\asus\\OneDrive\\Belgeler\\ArduinoData\\packages\\thinary\\hardware\\avr\\1.0.0\\variants\\nona4808" "C:\\Users\\asus\\AppData\\Local\\Temp\\arduino_build_298753\\sketch\\sketch_feb20a.ino.cpp" -o nul
Alternatives for Servo.h.: []
ResolveLibrary(Servo.h.)sketch_feb20a:1:10: fatal error: Servo.h.: No such file or directory
-> candidates: [] #include <Servo.h.>
^~~~~~~~~~
compilation terminated.
exit status 1
Servo.h.: No such file or directory
Hi,
Have you tried compiling the servo, sweep example?
Tom...
Yes I tried but I am getting the error in post 12.
I didn't write anything during the coding, I just added the library, but even though I added it, I get the error message in post12.
The Core for the Thinary Nano Every does not contain a Servo library and I don't know if the Windows Store Version of the 1.8.19 ide contains a Servo library and if indeed it has been updated to work with a Nano Every.
My best advice would be to try the MCUdude MegaCoreX which supports the 4808 and has a Servo library.
so what should i do? I would be glad if you help.I tried to download but got an error like this:
I tried to download but got an error like this:
Follow the procedure from the git hub site on how to load the core using the board manager of the ide
An Arduino hardware package for ATmega4809, ATmega4808, ATmega3209, ATmega3208, ATmega1609, ATmega1608, ATmega809 and ATmega808
Hi,
Get a Nano Every.
From....
https://www.arduino.cc/reference/en/libraries/servo/
I got the core loaded for the Thiny and the servo "sweep" example would not compile, but with the "Nano Every" selected it did compile.
Tom...