Error compiling for Esprit ESP32 board

Inquiry and support for Freematics products
Post Reply
acid_freddy
Posts: 3
Joined: Wed Jun 20, 2018 5:42 pm

Error compiling for Esprit ESP32 board

Post by acid_freddy »

Hi!

I know it's the wrong section and should be posted in "Libraries" but somehow i can't post there.

I've some issue compiling my project for the esp32 in Arduino 1.8.4.
The compiler tells me "libraries\OBD2UART\OBD2UART.cpp.o:(.literal._ZN4COBD5beginEv+0x4): undefined reference to `Serial1'".

The project is already runnig on standard arduino board(s).

What am i doing wrong?

Thanks!

Pete
stanley
Site Admin
Posts: 1018
Joined: Sat Mar 01, 2014 3:15 am

Re: Error compiling for Esprit ESP32 board

Post by stanley »

Add:
#include <Esprit.h>

Serial1 is defined in it.
acid_freddy
Posts: 3
Joined: Wed Jun 20, 2018 5:42 pm

Re: Error compiling for Esprit ESP32 board

Post by acid_freddy »

Thanks for the answer.

Didn't work either, i defined a HardwareSerial myself and it works :-)
acid_freddy
Posts: 3
Joined: Wed Jun 20, 2018 5:42 pm

Re: Error compiling for Esprit ESP32 board

Post by acid_freddy »

I know this doesn't fit in here...

But how do i activate a output channel like

"digitalWrite(7, HIGH);"

It works on my standard arduino, but i can't activate any channel. Tried 5 to 12, but no response, voltage is zero.
Post Reply