Skip to main content
Gianluca Costa
Associate II
Feb 27, 2019 8:30 AM UTC
Solved

STM32CubeMX 5.1.0 RS485 Issue

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

This topic has been closed for replies.
Frantz LEFRERE
Frantz LEFREREBest answer
ST Technical Moderator
Mar 1, 2019 10:43 AM UTC

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

1 reply

Frantz LEFRERE
Frantz LEFREREBest answer
ST Technical Moderator
Mar 1, 2019 10:43 AM UTC

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