Skip to main content
Associate II
January 7, 2024
Solved

stm32h5xx_hal_conf.h is generated with #define HAL_USART_MODULE_ENABLED

  • January 7, 2024
  • 3 replies
  • 4750 views

Hi.

Problem:

stm32h5_xx_hal_conf.h is generated with #define HAL_USART_MODULE_ENABLED but the file stm32h5xx_hal_usart.h is not included in the project code generation.

I'm using one usart peripheral in asynchronous mode, it is OK to just comment out the row in stm32h5_xx_hal_conf.h to make the project compile and work, I must do that each time the .ioc changes.

Versions:

STM32CubeIDE version 1.14.0

STM32CubeMX version: 6.10.0-RC9

STM32Cube FW_H5 V1.1.1

Settings:

Peripherals initialized as a pair of '.c/.h' files per peripheral

 

This topic has been closed for replies.
Best answer by Mahmoud Ben Romdhane

Hello @Andrzej_P @Poleshift ,

After investigation I can confirm the issue.

I escalated the problem to CubeMX team in an internal ticket (ID :  171330 ) to take a closer look at this issue.

(PS: ID  171330 is an internal tracking number and is not accessible or usable by customers).

Thanks.

Mahmoud.

3 replies

ST Technical Moderator
January 8, 2024

Hello @Poleshift ,

First let me thank you for posting and welcome to the ST Community.

Your request is under investigation, and I will get back to you ASAP.

Thanks.

Mahmoud.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
ST Technical Moderator
January 9, 2024

Hello @Poleshift ,

The issue was not reproduced by my side.

If you disable USART:

/*#define HAL_UART_MODULE_ENABLED */

/*#define HAL_USART_MODULE_ENABLED */

If you enable USART in Asynchronous Mode:

#define HAL_UART_MODULE_ENABLED

/*#define HAL_USART_MODULE_ENABLED */

If you enable USART in Synchronous Mode: 

/*#define HAL_UART_MODULE_ENABLED */

#define HAL_USART_MODULE_ENABLED

Thanks.

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
PoleshiftAuthor
Associate II
January 13, 2024

I have now done a complete uninstall, purge and reinstallation of STM32CubeIDE and the problem persists.

@Mahmoud Ben Romdhane please try to reproduce using the same versions, MCU/board and USART3 in Asynchronous mode.

Explorer
January 17, 2024

Have very similar issue. Had to comment out manually.

For the setup reproduction I was just going blinky LED on Nucleo-H563ZI with all default config for that.

ST Technical Moderator
January 22, 2024

Hello @Andrzej_P @Poleshift ,

After investigation I can confirm the issue.

I escalated the problem to CubeMX team in an internal ticket (ID :  171330 ) to take a closer look at this issue.

(PS: ID  171330 is an internal tracking number and is not accessible or usable by customers).

Thanks.

Mahmoud.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
PoleshiftAuthor
Associate II
January 22, 2024

Thank you Mahmoud.

 

Since I made this report I have found one more issue that I only have with the H563ZI, every time I start STM32 CubeIDE, some of the configuratins in the .ioc are deleted, GPIOs, and USARTs. Is the custom to start another thread?

 

Best regards

Mric.1
Associate II
March 6, 2024

STM32CubeIDE 1.14.1 the same problem is still there I have to comment out the include manually

stm32h5xx_hal_usart is not present in the header files in the drivers folder

Mric1_0-1709716459722.png

 

ST Technical Moderator
March 19, 2024

Hello,

Further to this comment I want to inform that this issue was resolved and the official release of STM32CubeMX V6.11.0 is available on ST website.

You can download it through this link:

STM32CubeMX - STM32Cube initialization code generator - STMicroelectronics

Thanks.

Mahmoud.

 

 

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.