cancel
Showing results for 
Search instead for 
Did you mean: 

Hi, I use STM32F746 to build a modbus environment which connected to RS485 bus.I use as DE-RE pin is not a specially defined alternative function pin, so I defined it as output pin.However I am having a problem receiving the packages I send.

Bilge
Associate III

USART3

TX--PB10

RX--PB11

DE-RE--PE15

 /*Configure GPIO pin : PE15 */

 GPIO_InitStruct.Pin = GPIO_PIN_4;

 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;

 GPIO_InitStruct.Pull = GPIO_NOPULL;

 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_MEDIUM;

 HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);

0 REPLIES 0