Alessandro Aneggi
Alessandro Aneggi

Reputation: 11

fatal error: avr/interrupt.h rtcLib.h platform.io Esp32 Arduino

I am developing with VisualStudio Code and Platform.IO installed.

I am using ESP32 / TTGO T-CALL with Arduino Framework and added the RTCLib.h Adafruit v 1.11.0 Unfortunately the software is not compiling because I got the following error:

    Building in release mode
Compiling .pio\build\esp32dev\src\main.cpp.o
Compiling .pio\build\esp32dev\libfa0\TinyWireM\USI_TWI_Master.cpp.o
C:\Users\aleil\.platformio\lib\TinyWireM\USI_TWI_Master.cpp:28:27: fatal error: avr/interrupt.h: No such file or directory
compilation terminated.
Archiving .pio\build\esp32dev\lib46d\libRTClib.a
*** [.pio\build\esp32dev\libfa0\TinyWireM\USI_TWI_Master.cpp.o] Error 1
============================================ [FAILED] Took 8.69 seconds ============================================
The terminal process "C:\Users\aleil\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

Here there is the INCLUDING code:

#include <Arduino.h>
#include <StreamDebugger.h>
#include <ArduinoHttpClient.h>
#include <ArduinoJson.h>
#include <OneWire.h>                // x ds18b20 temperature sensors
#include <DallasTemperature.h>      // x ds18b20 temperature sensors
#include <esp_task_wdt.h>
#include "SPI.h" // Used to define SPI on SPI1
#include "SD.h"
#include <Wire.h>
#include <RTClib.h>

So I try to find a solution but I cannot find one. Does someone have some hint or solutions?

Upvotes: 0

Views: 5014

Answers (1)

A&#228;ron
A&#228;ron

Reputation: 11

I had the same problem, but uninstalling the TinyWireM library (PlatformIO > Libraries > Installed) solved the problem.

I think the TinyWireM library is installed automatically with the RTClib library.

Upvotes: 1

Related Questions