0

library build error with adafruitio_15_temp_humidity
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

library build error with adafruitio_15_temp_humidity

by jim_frankfort on Sun Feb 07, 2021 7:19 pm

I'm experimenting with AdafruitIO using ESP32 (DEVKITV1) and cannot build example code adafruitio_15_temp_humidity. The error I'm getting is "The SoftwareSerial library encountered an unknown path resolve error.C*: 41:27: fatal error: avr/interrupt.h: No such file or directory compilation terminated". All the #Include files are recognized in both the example and in SoftwareSerial.h. I have versions 4.0.2 of Adafruit IO Arduino Library 4.0.2 and ver 1.4.1 or DHT sensor by Adafruit. I'm using Visual Studio 19 with Visual Micro extension. The platforms installed include "Arduino AVR Boards built-in version 1.8.3" and esp32 version 1.0.4. In Visual Studio, I'm coding for the ESP32 Dev Module. I searched my computer for interrupt.h and don't find it. I searched GitHub for a repo of that name and didn't find it. I do realize that I'm coding for an ESP32 and not an AVR board....which makes me wonder if I have an incorrect library somewhere. I don't have a lot of experience but have successfully gotten other programs to work on the ESP32. Any help you can give me is much appreciated......my head is a bit sore and there is a definite dent in the wall :-)

jim_frankfort
 
Posts: 7
Joined: Sun Feb 07, 2021 6:25 pm

Re: library build error with adafruitio_15_temp_humidity

by brubell on Mon Feb 08, 2021 11:39 am

You may be compiling the project for the wrong board. Please make sure you're able to compile other examples for the ESP32 before compiling Adafruit IO Arduino.

brubell
 
Posts: 1412
Joined: Fri Jul 17, 2015 10:33 pm

Re: library build error with adafruitio_15_temp_humidity

by jim_frankfort on Tue Feb 09, 2021 2:03 pm

yes, I can compile other code for the ESP32 without encountering errors. I've tested with blink uploaded through a usb port and have also gotten OTA to work so I can upload and debug over Wi-Fi. I've also wrote a test program that uses the OneWire bus to talk to DallasTemperature sensors.....works fine with USB and Wi-Fi upload.

I have the esp32 platform version 1.04 installed. The board version I'm using is ESP32 Dev Module. I changed the board to Adafruit ESP32 feather.....recompiled and got the same error:

Compiling debug version of 'adafruitio_15_temp_humidity' for 'Adafruit ESP32 Feather'

"The SoftwareSerial-master library encountered an unknown path resolve error.C*: 41:27: fatal error: avr/interrupt.h: No such file or directory compilation terminated
An error was encountered during the 'Deep Search' library discovery process.
Debug build failed for project 'adafruitio_15_temp_humidity' "

Any help is much appreciated.....jim

jim_frankfort
 
Posts: 7
Joined: Sun Feb 07, 2021 6:25 pm

Re: library build error with adafruitio_15_temp_humidity

by brubell on Thu Feb 11, 2021 1:18 pm

Which version of the ESP32 board support package do you have installed?

brubell
 
Posts: 1412
Joined: Fri Jul 17, 2015 10:33 pm

Re: library build error with adafruitio_15_temp_humidity

by jim_frankfort on Thu Feb 11, 2021 7:08 pm

I have three "board packages" installed. The one for the ESP32 is esp32 platform version 1.04 by Espressif Systems
I'm using Visual Studio 19 with Visual Micro extension. There is a dialog to add the URL for additional boards. Below is url of the additional boards (also image of dialogue). Apologies if I'm not answering the question you asked....if I haven't, please point me to what your asking about. thanks.....jim

"https://raw.githubusercontent.com/espressif/arduino-esp32/gh-ges/package_esp32_index.json,http://arduino.esp8266.com/stable/package_esp8266com_index.json,https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json,https://adafruit.github.io/arduino-board-index/package_adafruit_index.json,https://dl.espressif.com/dl/package_esp32_index.json,

Screenshot 2021-02-11 180232.jpg
ESP board package dialogue
Screenshot 2021-02-11 180232.jpg (328.53 KiB) Viewed 124 times

jim_frankfort
 
Posts: 7
Joined: Sun Feb 07, 2021 6:25 pm

Re: library build error with adafruitio_15_temp_humidity

by brubell on Fri Feb 12, 2021 10:59 am

I was able to compile the example on my board but the #include's in the screenshot you provided make me think you're using an older version of this sketch. (an updated version is here: https://github.com/adafruit/Adafruit_IO ... midity.ino). I use the Arduino IDE.

Since this isn't an issue with our library, and I don't have experience with this development setup. You should contact visual micro (either via their forums or support channels) that you're having difficulties compiling for the ESP32, the compiler seems to be targeting an AVR board by mistake.

brubell
 
Posts: 1412
Joined: Fri Jul 17, 2015 10:33 pm

Re: library build error with adafruitio_15_temp_humidity

by jim_frankfort on Sat Feb 13, 2021 3:02 pm

It turns out that the issue was that I had the wrong SoftwareSerial library installed. The one I had was for AVR boards and I needed one for the ESP. I downloaded https://www.arduino.cc/reference/en/lib ... areserial/ and installed using the library manager.

That got me a lot further in the build process but still not all the way through, there was an error found in AdafruitIO_FONA.h: 75:16: error: extra qualification 'AdafruitIO_FONA::' on member 'networkStatus' [-fpermissive]
aio_status_t AdafruitIO_FONA*: networkStatus() {

I plan on opening a separate forum entry for that one.
Thanks for the help.....jim

jim_frankfort
 
Posts: 7
Joined: Sun Feb 07, 2021 6:25 pm

Please be positive and constructive with your questions and comments.