I'm using a VS1053,to do a PCM recording for 1 minute by using STM32l4 microcontroller.
The data is read from the VS1053 at 16 MHz, the sampling rate is 8000 sps and each sample is 2 bytes, which makes it 128 kbs to be sent.
I was using a UART to send this data to another module at 230,400 baud but I had to reduce this to 115,200 baud as the Bluetooth module the UART connects to does not support 230,400 baud.
Now the data is acquired at a faster rate than sending. The VS1053 has a buffer form which I read 512 bytes each time via SPI. How can I handle this situation to send all the bytes via UART without losing it?