STM32 Increase Uart RX buffer size
Posted: Wed May 01, 2024 8:17 pm
Hello
I am trying to send a 256Byte serial data to write 1 page of W25 flash
but is seems that the max number of bytes I can receive is 255, I think is the Uart RX buffer Size
that is limiting this , is there a way to increase the RX buffer size ?
Tried the following but dose not work
I am trying to send a 256Byte serial data to write 1 page of W25 flash
but is seems that the max number of bytes I can receive is 255, I think is the Uart RX buffer Size
that is limiting this , is there a way to increase the RX buffer size ?
Tried the following but dose not work
Code: Select all
HAL_UART_DeInit(&MX_UART_NUMBER_1);
MX_UART_NUMBER_1.Init.RxSize = 280;
HAL_UART_Init(&MX_UART_NUMBER_1);