Closed
Description
I'm using the VL53L1X library in polling mode on a stm32 F1 (blue pill). The system would hang if I use the library together with UART input. The library works fine if I'm not using UART. I've tested all 3 UARTs and they all exhibit the same problem.
To reproduce the problem, do the following to a simple test program which uses VL53L1X library:
- Connect the stm32 F1 UART RX1 pin to another device which can send data continuously.
- Add a "Serial1.begin()" statement in the setup() block of the VL53L1X test program. You don't even need to add "Serial1.read()" statement to make it crash.
- Run the program and it will hang in a couple of minutes.
Remove the "Serial1.begin() or stop sending data to its UART RX1 pin would solve the problem, but we can't use any of the UARTs for receiving data.
Metadata
Metadata
Assignees
Labels
No labels