cancel
Showing results for 
Search instead for 
Did you mean: 

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

hammadahmed85
Associate

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?

3 REPLIES 3
hammadahmed85
Associate

Here's my setup

0693W00000WKpZZQA1.jpg

Pavel A.
Evangelist III

Here beginners can find help for their projects.

Sem A.
Associate III

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