I'm having trouble using the XBee S3B Pro module with the STM32F446RET6

Hi everyone,
I’m new to working with XBee modules. I’m trying to use an XBee S3B Pro module with the STM32F446RE Nucleo board. However, I couldn’t get two XBees to communicate with each other in this setup.

First, I configured both of my XBees using XCTU and successfully established communication between them via the console log in the application. Then, I moved on to the STM32 side and selected the USART settings according to the values I configured in XCTU. Despite this, and even though I attempted a very simple communication test, I was not able to get the two sides to communicate with each other.

I’m sharing my CubeIDE settings and part of my code below.

Thanks!

char txData[] = "HELLO XBee!\r\n";
while (1)
  {
	HAL_UART_Transmit(&huart1, (uint8_t*)txData, strlen(txData), 100);
	HAL_Delay(1000);
    /* USER CODE END WHILE */
    /* USER CODE BEGIN 3 */
  }
  /* USER CODE END 3 */
}

What firmware version are you running on your XBee modules?

Are you connecting the XBee via an Arduino adapter board or are you trying to connect it directly?


Here is the firmware version and the others that Im using.
Im connecting it directly to the board. Without any adapter.
Thanks for your response !

Try connecting the XBee to an XBee Arduino Shield. The XBee is a 3V device. Some of the Arduino ports are 5V and will damage the XBee if you connect them to it. Also the 3rd party Arduino Shields make the proper level shifting.