I'm trying to write a function to handle the a GSM modem using AT commands and Uart (SCB mode).
Uart on SCB has RX and TX buffer 128 bytes each.
Unfortunately, my function not working properly.
This function reads 8-10 bytes instead of 128.
Sometimes also lost bytes.
There is no in PSoC Creator decent example how to use a uart with big buffers.
Please can you help me and show you how to write this function.
You should avoid interfering with the internal UART interrupt. Instead poll in main()
buf_RX[i++] = SCB_SpiUartReadRxData();
look for a delimiter in the message received as \n or \r, then process the message and reset i