cancel
Showing results for 
Search instead for 
Did you mean: 

stm32h5xx_hal_conf.h is generated with #define HAL_USART_MODULE_ENABLED

Poleshift
Associate II

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

 

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

10 REPLIES 10
Mahmoud Ben Romdhane
ST Employee

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.

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.

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.

Hello @Poleshift ,

The issue is not reproduced.

For more investigation can you provide please your .ioc file.

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.

Andrzej_P
Associate

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.

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.

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

Hello @Poleshift ,

Further to your comment.

Can you provide please more details about the issue that you have encountered.

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.

Mric.1
Associate II

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