sys.begin() error: UART Driver Already Installed

Discussion about software developed by Freematics, including Freematics Builder and Freematics Emulator GUI
Post Reply
pr414
Posts: 4
Joined: Sat Dec 24, 2022 4:20 am

sys.begin() error: UART Driver Already Installed

Post 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.
Last edited by pr414 on Sat Dec 24, 2022 9:16 pm, edited 1 time in total.
stanley
Site Admin
Posts: 1039
Joined: Sat Mar 01, 2014 3:15 am

Re: Error: UART Driver Already Installed

Post by stanley »

Are you using the latest code?
pr414
Posts: 4
Joined: Sat Dec 24, 2022 4:20 am

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

Post 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?
pr414
Posts: 4
Joined: Sat Dec 24, 2022 4:20 am

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

Post 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.
Post Reply