Skip to content

Library Crashed with UART input #6

Closed
@phantom-8

Description

@phantom-8

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:

  1. Connect the stm32 F1 UART RX1 pin to another device which can send data continuously.
  2. 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.
  3. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions