Skip to main content
IHave
Visitor II
Jul 12, 2019 8:26 AM UTC
Question

CubeMX USART DE config incorrect - STM32F091

Using RS485 driver enable, specifically on USART 7 and 8, the CubeMX generated code needs to add in MspInit:

GPIO_InitStruct.Alternate = GPIO_AF1_USART7;

GPIO_InitStruct.Alternate = GPIO_AF2_USART8;

respectively.

This topic has been closed for replies.