Skip to main content
LSung.1
Associate III
October 28, 2023
Solved

How to prevent certain functions from being created.(Device Configuration Tool makes error)

  • October 28, 2023
  • 2 replies
  • 2474 views

Hello?

If you just build from the Device Configuration Tool(*.ioc), an error will occur as shown in the picture below.

(MCU: STM32F730, File:usbd_conf.c)

LSung1_1-1698502692508.png

 

The functions that enable clocking and the functions that enable ULPI clocking already exist above (line 116) and below (line 118), but they are incompletely mixed in the middle line, creating errors every time.

Because of this, the current situation is that I have to delete or comment it out every time. I would like to ask how to get rid of it from the beginning.

Thank you for reading.

This topic has been closed for replies.
Best answer by TDK

Make a #define and put it in a user section above there to avoid the bug until it's fixed.

#define __HAL_RCC_USB_OTG_HS_CLK_ENABLE__HAL_RCC_USB_OTG_HS_CLK_ENABLE __HAL_RCC_USB_OTG_HS_CLK_ENABLE
#define __HAL_RCC_USB_OTG_HS_CLK_DISABLE__HAL_RCC_USB_OTG_HS_CLK_DISABLE __HAL_RCC_USB_OTG_HS_CLK_DISABLE

2 replies

TDK
TDKBest answer
October 28, 2023

Make a #define and put it in a user section above there to avoid the bug until it's fixed.

#define __HAL_RCC_USB_OTG_HS_CLK_ENABLE__HAL_RCC_USB_OTG_HS_CLK_ENABLE __HAL_RCC_USB_OTG_HS_CLK_ENABLE
#define __HAL_RCC_USB_OTG_HS_CLK_DISABLE__HAL_RCC_USB_OTG_HS_CLK_DISABLE __HAL_RCC_USB_OTG_HS_CLK_DISABLE
"If you feel a post has answered your question, please click ""Accept as Solution""."
LSung.1
LSung.1Author
Associate III
October 29, 2023

I couldn't think of a simple method, so I worked inconveniently for no reason.

Thank you.