2023-10-28 07:24 AM
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)
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.
Solved! Go to Solution.
2023-10-28 07:34 AM
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
2023-10-28 07:34 AM
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
2023-10-28 11:52 PM
I couldn't think of a simple method, so I worked inconveniently for no reason.
Thank you.