Skip to main content
Associate
January 19, 2024
Question

STM32 inbuilt function

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

AScha.3
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

If you feel a post has answered your question, please click on " Best Answer ".
Tesla DeLorean
Guru
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.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..