2023-08-08 05:25 AM
When i want to init uart8
static void MX_USART8_UART_Init1(void)
{
huart8.Instance = UART8;
huart8.Init.BaudRate = 115200;
huart8.Init.WordLength = UART_WORDLENGTH_8B;
huart8.Init.StopBits = UART_STOPBITS_1;
huart8.Init.Parity = UART_PARITY_NONE;
huart8.Init.Mode = UART_MODE_TX_RX;
huart8.Init.HwFlowCtl = UART_HWCONTROL_NONE;
huart8.Init.OverSampling = UART_OVERSAMPLING_16;
huart8.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
huart8.Init.ClockPrescaler = UART_PRESCALER_DIV1;
huart8.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
/*this parte get blocked why this parte "HAL_UART_Init(&huart8) != HAL_OK" was bad?
if (HAL_UART_Init(&huart8) != HAL_OK)
{
Error_Handler();
}
}
This should be a RCC wrong?
i have add main.c y app.c in the exhibit