cancel
Showing results for 
Search instead for 
Did you mean: 

Problem on file stm32c0xx_hal_conf_template.h for STM32C0XX

MatteoBandini74
Associate II

In file stm32c0xx_hal_conf_template.h there are duplicated lines at 239 row.

#ifdef HAL_UART_MODULE_ENABLED
#include "stm32c0xx_hal_uart.h"
#endif /* HAL_UART_MODULE_ENABLED */

 

if you are using Cube MX you can't compile.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @MatteoBandini74 

Thank you for reporting this. I confirm the issue and i will escalate it to the concerned team for correction.

An internal Ticket 174573 is created for the tracking of this bug.

(PS: Ticket 174573 is an internal tracking number, not accessible by customers and usable for internal tracking).

Thanks again for your question.

Best Regards.

STTwo-32 

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

7 REPLIES 7
STTwo-32
ST Employee

Hello @MatteoBandini74 

Can you add more details on the issue. On the stm32c0xx_hal_conf_template.h, i can't see any duplicated lines:

Screenshot_2024-02-24-12-21-42-51_db51e592e420a9871f4a37915a68789b.jpg

could you add your .ioc file with some description (screenshots,...) So we can reproduce this behavior.

Best Regards.

STTwo-32 

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.

Andrew Neil
Evangelist III

@MatteoBandini74 wrote:

 there are duplicated lines at 239 row.


To be duplicated, it must occur twice - so where is the other occurrence?

TDK
Guru

Probably the author mistook UART and USART for the same thing.

https://github.com/STMicroelectronics/stm32c0xx_hal_driver/blob/21895aa5be9c6f5b6f2252d3c7fcbb47621c83b2/Inc/stm32c0xx_hal_conf_template.h#L239

 

If you feel a post has answered your question, please click "Accept as Solution".
MatteoBandini74
Associate II

It's right, I've done a mistake. But yuo can't compile if you create a project with Cube mx.. Look:

Screenshot 2024-02-25 104054.png

Screenshot 2024-02-25 104114.png

Screenshot 2024-02-25 104145.png

Screenshot 2024-02-25 104223.png

Screenshot 2024-02-25 104328.png

Screenshot 2024-02-25 104337.png

Screenshot 2024-02-25 104358.png

MatteoBandini74
Associate II

And if you reopen ioc file th uart disappear..

Look:

Screenshot 2024-02-25 110749.png

Screenshot 2024-02-25 110839.png

 

Screenshot 2024-02-25 111015.png

Hello @MatteoBandini74 

Thank you for reporting this. I confirm the issue and i will escalate it to the concerned team for correction.

An internal Ticket 174573 is created for the tracking of this bug.

(PS: Ticket 174573 is an internal tracking number, not accessible by customers and usable for internal tracking).

Thanks again for your question.

Best Regards.

STTwo-32 

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.

MatteoBandini74
Associate II

Nice. Thank you!

I'm sorry for my English..

Ciao.