HAL UART RX Pulls Down
Hello,
I am currently using a STM32F429ZI-DISC1 Discovery Board.
I tried to get a UART tranmission going through CubeMX/HAL Drivers.
Transmitting data works perfectly fine but when trying to receive any data I don't have any chance. So I was looking over the signals with my Logic Analyzer and I realized that the initalized RX is pulling down the "partners" TX. In the picture you can see the moment I power the STM, TX goes high but RX pulls down the external TX.
This is my referring init:
static void MX_UART4_Init(void)
{
huart4.Instance = UART4;
huart4.Init.BaudRate = 115200;
huart4.Init.WordLength = UART_WORDLENGTH_8B;
huart4.Init.StopBits = UART_STOPBITS_1;
huart4.Init.Parity = UART_PARITY_NONE;
huart4.Init.Mode = UART_MODE_TX_RX;
huart4.Init.HwFlowCtl = UART_HWCONTROL_NONE;
huart4.Init.OverSampling = UART_OVERSAMPLING_16;
if (HAL_UART_Init(&huart4) != HAL_OK)
{
_Error_Handler(__FILE__, __LINE__);
}
}And this is the code I tried to receive data:
while(inpData != 0x02){
HAL_UART_Receive(&huart4,&inpData,sizeof(uint8_t),10);
}
HAL_UART_Transmit(&huart4, &start, sizeof(uint8_t), 7);
/*HAL_UART_Transmit(&huart7, &start, sizeof(uint8_t), 1);
HAL_UART_Transmit(&huart8, &start, sizeof(uint8_t), 1);*/
//HAL_Delay(50);
for(int i = 0;i < 1024;i++){
HAL_UART_Transmit(&huart4, &Data[i], sizeof(uint8_t), 7);
//HAL_Delay(1);
}So why does the RX pulls down the data line?
Thanks for your help!
