Skip to main content
Visitor II
January 19, 2024
Question

STM32 inbuilt function

  • January 19, 2024
  • 2 replies
  • 1001 views

Hey everyone, just like there is a function named "Serial.available()" in Arduino,is there any such function present in STM32 ?

    This topic has been closed for replies.

    2 replies

    Super User
    January 19, 2024

    Hi,

    No.

    btw   " in STM32" -> this is cpu series , so library functions cannot be there.

    If you want the Arduino environment with STM32 cpu , you could use Arduino_Core_STM32 boards lib.

    ->

    https://github.com/stm32duino/Arduino_Core_STM32

    Graduate II
    January 19, 2024

    Most STM32 have a single byte depth buffer in the UARTs. To read that check the RXNE bit.

    To make larger buffers you can query you should make a fifo/ring buffer you fill via interrupts.