STM32F103 UART RX idle line interrupt not getting on other hardware
Hello All,
I am using STM32F103C8T6 dev board and implemented UART code with RX idle line interrupt. I tested using USB to TTL converter it working as expected. But when I connected this UART to the Bluetooth module, it did not get interrupt if the command length was more than 1 byte.
This behavior is very wired because it works when connect USB to TTL and not work when want to actual hardware with Bluetooth module.
My working simple code is
HAL_UARTEx_ReceiveToIdle_DMA(&huart3, Serial3RxData, UART3_RX_MAX_LEN);
void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size)
{
// printf("UART SERIAL REC:%s\r\n", Serial3RxData);
isSerialAvailble = 1;
HAL_UARTEx_ReceiveToIdle_DMA(&huart3, Serial3RxData, UART3_RX_MAX_LEN);
} //when isSerialAvailble is set trigger the function and execute RX command.Edited to apply source code formatting - please see How to insert source code for future reference.
