Page 1 of 1

sys.begin() error: UART Driver Already Installed

Posted: Sat Dec 24, 2022 4:25 am
by pr414
Hello everyone,
I'm getting mad at trying to understand what is causing this error.
I just uploaded the simple_obd_test from the Freematics library, specifically I'm running a Freematics One+ B, planning to use it with the OBD-II Emulator.
When I compile it, upload it and go to see the Serial Monitor, all the device is doing is sending "E (337483) uart: UART driver already installed", with the number in milliseconds of when the error occurred.
I already found out that the problem is caused by this part of the code in the setup:

// initializations
while (!sys.begin());
obd.begin(sys.link);

I seriously do not know why this is happening, I'm running the code through PlatformIO and getting this error on loop on the Serial Monitor.

Re: Error: UART Driver Already Installed

Posted: Sat Dec 24, 2022 9:58 am
by stanley
Are you using the latest code?

Re: sys.begin() error: UART Driver Already Installed

Posted: Sat Dec 24, 2022 9:34 pm
by pr414
Yes, downloaded from the PlatformIO Libraries.
Any help on what to look for would be very appreciated.
Could be for some kind of conflict?

Re: sys.begin() error: UART Driver Already Installed

Posted: Thu Mar 09, 2023 1:54 am
by pr414
For the record, I managed to fix this problem by reverting to an older FreematicsPlus library, specifically early 2018 commits. Since my hardware is from late 2017, I had to find by myself that it is no longer supported by the official code.
Creating my own fork of the old commit fixed every issue.