cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX 5.1.0 RS485 Issue

Gianluca Costa
Associate II

Hi

with STM32CubeMX 5.1.0 on STM32F746BGTx there is an issue when I enable RS485.

Cube doesn't genrate all funtions related to RS485, for example the main inizialization function HAL_RS485Ex_Init is not present in the code generated by Cuce.

Attached the simple project file that generate the issue.

Best regard.

Gianluca Costa

1 ACCEPTED SOLUTION

Accepted Solutions
Frantz LEFRERE
ST Employee

Hi

In fact the problem is that CubeMx doesn't copy the file stm32f7xx_hal_uart_ex.c in the folder Drivers\STM32F7xx_HAL_Driver\Src

A temporary workaround is to copy it manually from the CubeMx repository:

cube\repository\STM32Cube_FW_F7_V1.15.0\Drivers\STM32F7xx_HAL_Driver\Src

 to you project folder Drivers\STM32F7xx_HAL_Driver\Src

Frantz

View solution in original post

1 REPLY 1
Frantz LEFRERE
ST Employee

Hi

In fact the problem is that CubeMx doesn't copy the file stm32f7xx_hal_uart_ex.c in the folder Drivers\STM32F7xx_HAL_Driver\Src

A temporary workaround is to copy it manually from the CubeMx repository:

cube\repository\STM32Cube_FW_F7_V1.15.0\Drivers\STM32F7xx_HAL_Driver\Src

 to you project folder Drivers\STM32F7xx_HAL_Driver\Src

Frantz