Skip to content

Help with UART RX #982

@itsLydt

Description

@itsLydt

Trying to get uart working on my atsam board with this crate. I am using the Atmel SAM D21 Xplained kit (ATSAMD21J18A) on sercom0. I am able to transmit from the board, but having a difficult time receiving.

If I call

let mut rx_buffer = [0x00; 50];
uart_rx.read(rx_buffer )

The call to read blocks forever. However, if I make an unsafe block and use let bytes = uart_rx.read_data() , I can see that the bytes are being received by the board.

I may have missed something very silly, if that is the case I apologize!

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