cirular buffer & blackpill
Posted: Sun Dec 14, 2025 5:28 pm
HELLO,
I'm trying to use the circular buffer component with the Blackpill board to intercept responses from a modem. This modem is currently simulated by a terminal program on the PC that connects to the USART1. I then send the captured data to the same software via serial software. The strange thing is that whether I try to use the string capture functions or the array capture functions, characters are added. Furthermore, with the string function, 9 characters are captured, not 10. Am I using the circular buffer component wrong?
I'm trying to use the circular buffer component with the Blackpill board to intercept responses from a modem. This modem is currently simulated by a terminal program on the PC that connects to the USART1. I then send the captured data to the same software via serial software. The strange thing is that whether I try to use the string capture functions or the array capture functions, characters are added. Furthermore, with the string function, 9 characters are captured, not 10. Am I using the circular buffer component wrong?