Seeking Assistance with Variable-Length UART Receive Interrupts on STM32F091RC using STM32Cube IDE
Dear ST Community,
I'm currently working on STM32F091RC using STM32Cube IDE, and I've encountered an issue with handling UART receive interrupts for variable-length data. Currently, I have set a fixed length of 5 bytes for the data, and the UART communication is functioning properly. However, I now require the flexibility to receive data of varying lengths, such as 1 byte, 5 bytes, and so on.
Despite my attempts to modify the code to accommodate variable-length data reception, the UART doesn't seem to work reliably. I believe I might be missing something crucial in my implementation.
Could someone please provide guidance, code snippets, or any possible solutions to efficiently handle variable-length UART receive interrupts for the STM32F091RC?
Any help or insights would be greatly appreciated.
Thank you,
Santhosh
