ESP32 Library problem

Hello everyone,
Im currently working on a program for automotive tests using the "Seed Arduino CAN master" library with the "Arduino Uno" board, everything is working perfectly but the sram and flash of the Uno is to low to complete my future needs so I decided to try using an ESP32 board.

At the moment Im able to upload a random sketch like "blink" on the ESP32 board but I cannot upload my sketch; this result in (I can upload this sketch on a Uno):

"In file included from C:\Users\agarel\Documents\Arduino\libraries\Seeed_Arduino_CAN-master\src\can-serial.cpp:16:0:
C:\Users\agarel\Documents\Arduino\libraries\Seeed_Arduino_CAN-master\src\can-serial.h:24:28: fatal error: SoftwareSerial.h: No such file or directory
compilation terminated.
exit status 1
Erreur de compilation pour la carte ESP32 Dev Module"

My question is why does this message mean? And how do I fix it (Should I use esp32 dedicated libraries?) ?
Regards.

I found a solution at my problem.
The ESP32 doesn't have a softwareserial library, so you need to download the library "ESPSoftwareSerial" from the library manager, and then It should be ok.

Use ESP32CAN specially wrote for the ESP32 that is a background sender receiver and even does send receive queues.

And, as noted above, software serial does not work well with the ESP32.

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.