I’m busy using the new hardware serial capability on the 6502 but I’m experiencing odd behaviours. Digging deeper into it, it appears that the HW serial buffer is 8 bytes and so high transfer rates (well, 115200) overflow this before I get a chance to read it.
Serial.println(UART_2_RX_BUFFER_SIZE); -> 8
Serial1.read(); returns a high bit set e.g. greater than 255. This is because it’s set in the internal buffer read function, I think.
Serial.println(UART_2_SpiUartGetRxBufferSize()); -> returns a max of 8, and generally the error bit is set on the read prior when it is 8 too.
So…can this buffer be increased @Aaron ? Or can we get an interrupt handler to push things into a software buffer? Or am I totally down the wrong path?