I am using the nrf52832 with its Development kit to transmit trough UART to the PC a frame with 20 bytes, I have configured the port to 1MBoudRate. I have enable the flow Control.
For the UART configuration I am using the function APP_UART_FIFO_INIT(..) setting the size of the RX_Buffer and TX_Buffer, however I don't see any significant changes when I vary this numbers.
What I am receiving on the PC is the data properly but every ~250 bytes some frames are lost. I connected the oscilloscope to the UART signals and when the data is lost, the CTS signal is high, which indicates that the transmission has been suspended.
Is this a problem of the way that I am setting the UART module or my PC itself?
Why is the transmission getting suspended? Maybe it is too fast but I need it to be at a 4kHz. If I send data at a lower rate it does it without problems.