You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Compilation error using this configuration:
And output:
C:\Users\FarisFachrurrobbiSil\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\cores\arduino\stm32\usb\usbd_if.c: In function 'USBD_reenumerate':
C:\Users\FarisFachrurrobbiSil\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\cores\arduino\stm32\usb\usbd_if.c:159:21: error: 'USBD_USB_INSTANCE' undeclared (first use in this function)
159 | USB_DevDisconnect(USBD_USB_INSTANCE);
| ^~~~~~~~~~~~~~~~~
C:\Users\FarisFachrurrobbiSil\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\cores\arduino\stm32\usb\usbd_if.c:159:21: note: each undeclared identifier is reported only once for each function it appears in
C:\Users\FarisFachrurrobbiSil\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\cores\arduino\stm32\usb\usbd_conf.c: In function 'USBD_LL_Init':
C:\Users\FarisFachrurrobbiSil\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\cores\arduino\stm32\usb\usbd_conf.c:494:21: error: 'USB' undeclared (first use in this function)
494 | g_hpcd.Instance = USB;
| ^~~
C:\Users\FarisFachrurrobbiSil\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\cores\arduino\stm32\usb\usbd_conf.c:494:21: note: each undeclared identifier is reported only once for each function it appears in
C:\Users\FarisFachrurrobbiSil\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\cores\arduino\stm32\usb\usbd_ep_conf.c:38:16: error: 'PMA_EP0_OUT_ADDR' undeclared here (not in a function)
38 | {0x00, PMA_EP0_OUT_ADDR, PCD_SNG_BUF},
| ^~~~~~~~~~~~~~~~
C:\Users\FarisFachrurrobbiSil\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\cores\arduino\stm32\usb\usbd_ep_conf.c:38:34: error: 'PCD_SNG_BUF' undeclared here (not in a function)
38 | {0x00, PMA_EP0_OUT_ADDR, PCD_SNG_BUF},
| ^~~~~~~~~~~
C:\Users\FarisFachrurrobbiSil\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\cores\arduino\stm32\usb\usbd_ep_conf.c:39:16: error: 'PMA_EP0_IN_ADDR' undeclared here (not in a function)
39 | {0x80, PMA_EP0_IN_ADDR, PCD_SNG_BUF},
| ^~~~~~~~~~~~~~~
C:\Users\FarisFachrurrobbiSil\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\cores\arduino\stm32\usb\usbd_ep_conf.c:40:16: error: 'PMA_CDC_OUT_ADDR' undeclared here (not in a function)
40 | {CDC_OUT_EP, PMA_CDC_OUT_ADDR, PCD_DBL_BUF},
| ^~~~~~~~~~~~~~~~
C:\Users\FarisFachrurrobbiSil\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\cores\arduino\stm32\usb\usbd_ep_conf.c:40:34: error: 'PCD_DBL_BUF' undeclared here (not in a function)
40 | {CDC_OUT_EP, PMA_CDC_OUT_ADDR, PCD_DBL_BUF},
| ^~~~~~~~~~~
C:\Users\FarisFachrurrobbiSil\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\cores\arduino\stm32\usb\usbd_ep_conf.c:41:16: error: 'PMA_CDC_IN_ADDR' undeclared here (not in a function)
41 | {CDC_IN_EP, PMA_CDC_IN_ADDR, PCD_SNG_BUF},
| ^~~~~~~~~~~~~~~
C:\Users\FarisFachrurrobbiSil\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\cores\arduino\stm32\usb\usbd_ep_conf.c:42:16: error: 'PMA_CDC_CMD_ADDR' undeclared here (not in a function)
42 | {CDC_CMD_EP, PMA_CDC_CMD_ADDR, PCD_SNG_BUF}
| ^~~~~~~~~~~~~~~~
exit status 1
Error compiling for board Generic STM32H7 Series.
To Reproduce
Create empty sketch
Choose configuration just like in the image
Compile
Expected behavior
Compilation Success
Desktop Env:
OS: Windows
Arduino IDE version: 1.8.19
STM32 core version: 2.4.0
The text was updated successfully, but these errors were encountered:
Hi @ahmadfarisfs
thanks for the report.
Issue is the H723 have only USB HS peripheral so you have to select USB High Speed in the menu.
I've made a PR (#1932) to raise an explicit error when it is the case (first time I've met it).
I've also fixed the system core clock config to ensure having a good USB clock configuration.
Describe the bug

Compilation error using this configuration:
And output:
To Reproduce
Expected behavior
Compilation Success
Desktop Env:
The text was updated successfully, but these errors were encountered: