Skip to main content
November 9, 2021
Question

Stream Buffer on STM32Fx?

  • November 9, 2021
  • 3 replies
  • 839 views

Hi everyone!

Somebody here has a basic example for stream buffers on a single core devices? Preferably with use of interrupts.

Thanks a lot!

This topic has been closed for replies.

3 replies

TDK
November 9, 2021

This is a pretty general concept. Isn't anything you send going to be in a buffer of some sort?

You don't mention what part family, or which interface you're using, but there should be examples in the relevant Cube repository for the family and interface of your choice.

"If you feel a post has answered your question, please click ""Accept as Solution""."
November 9, 2021

Sorry, I have a DataLogger and I want create the stream buffer for it because the Rx Interrupts of CAN and UART delay the execution of tasks.

I use the STM32F215RGT uc.

Tesla DeLorean
Guru
November 10, 2021

Expect that you'll have to create some FIFO or RING BUFFER implementation.

Have the CAN and UART interrupts just buffer the data, and have another task, perhaps the foreground one, collect 8KB or 32KB blocks you can flush efficiently to a MicroSD, or whatever the backing storage is.

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