RS485 Tutorial Issue
My tranceiver have RE and DE pins so I configured like this:
  // Configure the RS-485 pins:
  GPIO_InitStruct.Pin = GPIO_PIN_3 | GPIO_PIN_4;
  GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  GPIO_InitStruct.Pull = GPIO_NOPULL;
  GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  HAL_GPIO_Init(GPIOD, &amp;GPIO_InitStruct);

And I add RE pin to Reset for the transceivers receive mode configurations:
void RS485_Set_Receive_Mode(void)
{
  HAL_GPIO_WritePin(GPIOD, GPIO_PIN_3, RESET); // RE pin
  HAL_GPIO_WritePin(GPIOD, GPIO_PIN_4, RESET); // DE pin
}