ESP32Marauder icon indicating copy to clipboard operation
ESP32Marauder copied to clipboard

Error with SoftwareSerial.h

Open BirdGGbro opened this issue 1 year ago • 4 comments

I get this error: In file included from C:\Users\Lyric\Downloads\ESP32Marauder-0.13.6\ESP32Marauder-0.13.6\esp32_marauder\esp32_marauder.ino:28: C:\Users\Lyric\Downloads\ESP32Marauder-0.13.6\ESP32Marauder-0.13.6\esp32_marauder\GpsInterface.h:7:10: fatal error: SoftwareSerial.h: No such file or directory #include <SoftwareSerial.h> ^~~~~~~~~~~~~~~~~~ compilation terminated. Multiple libraries were found for "SD.h" Used: C:\Users\Lyric\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.10\libraries\SD Not used: C:\Users\Lyric\AppData\Local\Arduino15\libraries\SD exit status 1

Compilation error: SoftwareSerial.h: No such file or directory

then after installing the library I get this error: C:\Users\Lyric\AppData\Local\Arduino15\libraries\SoftwareSerial\src\SoftwareSerial.cpp:41:10: fatal error: avr/interrupt.h: No such file or directory #include <avr/interrupt.h> ^~~~~~~~~~~~~~~~~ compilation terminated.

exit status 1

Compilation error: exit status 1

BirdGGbro avatar Jan 21 '24 12:01 BirdGGbro

What board are you targeting?

chmod771 avatar Jan 28 '24 21:01 chmod771

I use the ESP32-WROOM-32U board, but in the Arduino program I set LOLIN D32

BirdGGbro avatar Jan 29 '24 07:01 BirdGGbro

@BirdGGbro i had the same problem but turns out for esp32 boards you have to install EspSoftwareSerial library

Ryan-py avatar Feb 04 '24 10:02 Ryan-py

@Ryan-py thank you, I will try later and if it works, I will be very grateful to you

BirdGGbro avatar Feb 04 '24 10:02 BirdGGbro