2022-12-12 02:24 PM
I need to have wifi connectivity on my B-L462E-CELL1 wifi board. I am using L462_TCP_Echo_Client app as my starting point. I am using USART2 and here's my initialization code:
void MX_USART2_UART_Init(void)
{
/* USER CODE BEGIN USART2_Init 0 */
/* USER CODE END USART2_Init 0 */
/* USER CODE BEGIN USART2_Init 1 */
/* USER CODE END USART2_Init 1 */
huart2.Instance = USART2;
huart2.Init.BaudRate = 115200;
huart2.Init.WordLength = UART_WORDLENGTH_8B;
huart2.Init.StopBits = UART_STOPBITS_1;
huart2.Init.Parity = UART_PARITY_NONE;
huart2.Init.Mode = UART_MODE_TX_RX;
huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE;
huart2.Init.OverSampling = UART_OVERSAMPLING_16;
huart2.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
huart2.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
if (HAL_UART_Init(&huart2) != HAL_OK)
{
Error_Handler();
}
/* USER CODE BEGIN USART2_Init 2 */
/* USER CODE END USART2_Init 2 */
}
My external wifi module is an ESP8266.
Is there any way I can verify if this is an issue with the wifi module or the UART communication?
2022-12-12 02:28 PM
Here's my setup
2022-12-12 04:32 PM
Here beginners can find help for their projects.
2022-12-22 11:01 AM
This forum thread was marked by the moderator as needing a little more investigation, so a Support case was created in your name and will be handled off-line. Should anyone have any related questions, please feel free to open a Support case directly at your myST portal: https://community.st.com/s/onlinesupport