Page 1 of 1

Using UART2

Posted: Wed Jan 30, 2019 2:15 pm
by sstroobants
Hi there,

In order to overcome the logging issue where you cannot log to the SD card while using the Loco Positioning Deck, I want to use a DWM1000 module that sends its range estimate using serial to the RX port of UART2. While looking into uart2.h, I found that it does not have the same functions as uart1.h. When I want to read data over UART2, do I have to re-implement the function uart1Getchar but then for uart2? Since uart2.h only has functions for sending.

Kind regards,

Stein

Re: Using UART2

Posted: Thu Jan 31, 2019 1:50 pm
by tobias
I guess no-one had to receive anything on UART2 yet... I added the functions and did a quick test. Should work now, please see this issue.

When it comes to using a UART together with the Loco deck I have a feeling this might now work as it should. There is a bug that might be related to this. Let us know how it goes!

Re: Using UART2

Posted: Fri Feb 01, 2019 9:05 am
by sstroobants
Thank you for your quick response! I must admit I already resoldered the connections to UART1, but will test UART2 this afternoon or else this weekend as well.