Forum: System Workbench for STM32

HAL_UART_Transmit_IT only work for Size 4 or smaller

Dear friends,

I have been struggling with a problem using HAL_UART_Transmit_IT.

I assume all config files should be ok, as the transmission works fine for messages with 4 or fewer words. Any thoughts would be very much appreciated.

Thanks

Ps. Config files attached.

Hi Fernando,
What does your code look like?

What do you mean by “only work for 4 or fewer words.”

Hello HankB,

the code is as simple as:


uint8_t aTxStartMessage[] = “\n\r ****UART-Hyperterminal communication based on IT ****\n\r Enter command :\n\r”;
HAL_UART_Transmit_IT(&huart4, (uint8_t*)aTxStartMessage, SIZE);

if SIZE is more than 4, I get an overrun error. I had to disable the Error Interrupt, and everything works just fine....

Thanks!