Skip to main content
Visitor II
December 12, 2022
Question

Unable to communicate with external wifi module using B-L462E-CELL1 kit + stmod board?

  • December 12, 2022
  • 3 replies
  • 1283 views

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?

    This topic has been closed for replies.

    3 replies

    Visitor II
    December 12, 2022

    Here's my setup

    0693W00000WKpZZQA1.jpg

    Super User
    December 13, 2022

    Here beginners can find help for their projects.

    Visitor II
    December 22, 2022

    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