I’m currently trying to create my own code for sending UART messages on my RAK3172. I noticed that some bytes were missing even before sending, so I wrote a very simple code to check the Serial.read() function. I have noticed that at least 2 bytes are lost at every 128th position. I assume that this is due to a buffer size? Is it possible to fix this problem by maybe increasing the buffer size?
This is my code:
void setup() {
Serial2.begin(115200, RAK_CUSTOM_MODE);
}
void loop() {
while (Serial2.available()) {
uint8_t c = Serial2.read();
Serial2.printf("%c", c);
}
}
Patching the existing RUI3 BSP or using directly STM32Cube ow level development are the options.
I don’t know whether STM32Cube provides functions or settings to use a larger UART buffer. Memory is very limited in the STM32WLE5.