"#include <avr/eeprom.h>" in Arduino-IDE? - arduino

After a long time I tried to get back in Arduino Programming. But with my old code I get the following error:
fatal error: avr/eeprom.h: No such file or directory
#include <avr/eeprom.h>
^
compilation terminated.
exit status 1
So why doesn't he find the avr library. Do I need to install it manually? And where can I find a download of it?

The <avr/eeprom.h> is available only for the AVR architecture. It's not possible to use it on other MCU architectures.
And ESP8266 is definitely completely different MCU architecture.

Related

cc1plus.exe: fatal error: CommonHFile.h: No such file or directory compilation terminated. while used esp8266 and arduino

I tried to use esp8266 with my Uno board. when I start the basic example "hellosever", the IDE sends me back this message :
cc1plus.exe: fatal error: C:\Users\Propriétaire\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.1\cores\esp8266\CommonHFile.h: No such file or directory
I look at the directory and the file is there and there is no file/folder with space or things like this. Can you help me with this?

connect Modelica with arduino by firmata

I would like to connect my arduino with modelica by using the firmataprotokoll and the arduinolibrary.
But the compilation always fails because of the error:
LINK : fatal error LNK1181: cannot open input file 'ModelicaFirmata.lib'
Does anybody have an idea how to fix this problem?
The error was caused by a wrong version of the Modelica-Arduino-Library. Instead of downloading the code I should have downloaded the latest release on github.
In addition it is important to choose the right compiler in Modelica (Visual Studio 2015).

Scheduler.h library Arduino

I am trying to use the Arduino library Scheduler.h. I copied the code from here <1> and I imported the libary, but it didn't compile. Here the compilation error code.
Error:
Arduino: 1.6.9 (Linux), Placa:"Arduino Nano, ATmega328"
AVISO: a biblioteca Scheduler alega rodar em arquitetura(s) [sam e pode ser incompatível com sua placa atual, que roda em arquitetura(s) samd].
/tmp/ccAyeLMX.s: Assembler messages:
/tmp/ccAyeLMX.s:588: Error: constant value required
lto-wrapper: /home/ullisses/.arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc returned 1 exit status
/home/ullisses/.arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status
exit status 1
Erro compilando para a placa Arduino Nano
Please, how can I fix this?
As indicated by the warning message, the Scheduler library is written for SAM and SAMD architecture. The Arduino Nano you're attempting to compile for is AVR architecture so you can't use the library for that board. If you read the page you got the code from you will notice it says:
Hardware Required
Arduino Due Board
I recommend studying File > Examples > 02.Digital > BlinkWithoutDelay and the tutorial page for that example, which demonstrates a more sensible method for achieving multiple blinks on AVR.

Getting error while compiling Freertos library in Spark fun Arduino Pro Micro

Im Using latest arduino nightly build v 1.6.10 to compile sample program for Arduino Pro Micro Which uses ATmega32U4. I just downloaded FreeRtos Library from Library Manager. Using very simple empty sketch to compile using #include
but im getting following errror while compiling:
C:\Users\Rajendra\Documents\Arduino\libraries\FreeRTOS\src\variantHooks.c: In function 'initVariant':
C:\Users\Rajendra\Documents\Arduino\libraries\FreeRTOS\src\variantHooks.c:88:2: error: 'USBDevice' undeclared (first use in this function)
USBDevice.attach();
^
C:\Users\Rajendra\Documents\Arduino\libraries\FreeRTOS\src\variantHooks.c:88:2: note: each undeclared identifier is reported only once for each function it appears in
exit status 1
Error compiling for board SparkFun Pro Micro.
what is the possibility for getting this error?
This question was raised as Issue #22 on my FreeRTOS library, in July 2017.
Best resolved by ensuring that the latest version of the Library is installed.

Arduino Robot Motor core accidentally overriden

Emmm..I am supposedly to plug the USB cord to the top port, but I accidentally plugged it to the bottom port. I'm really new (know nothing) on Arduino. I'm trying to upload Robot_Motor_Core from File/Example/Robot_Motor, but the program does not even compile. The error message is as follow:
/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Motor/ArduinoRobotMotorBoard.cpp:
In member function 'void RobotMotorBoard::_refreshMotorAdjustment()':
/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Motor/ArduinoRobotMotorBoard.cpp:256:
error: 'TRIM' was not declared in this scope
Now I am just panicking because even the Robot_IR_Array_Test does not even compile as well. The error message is here:
Robot_IR_Array_Test.ino: In function 'void loop()':
Robot_IR_Array_Test:22: error: 'class RobotMotorBoard' has no member
named 'readIR'
Any advice???? How to set the Arduino robot back to default??
The help doc link is here: http://arduino.cc/en/Guide/Robot
The above problems appear to be with the IDE and not the robot. A brute force method of making a new directory with a fresh install or unzip of the IDE should fix the errors. And or a reboot or restart of Java.

Resources