Arduino_Core_STM32
Arduino_Core_STM32 copied to clipboard
Nucleo-U5A5ZJ-Q experiences compilation issues with USB CDC Serial supersede
Describe the bug Compilation errors when I use the following configuration with the Nucleo-U5A5ZJ-Q:
The output:
C:\Users\user1\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.11.0\libraries\USBDevice\src\usbd_conf.c: In function 'HAL_PCD_MspInit':
C:\Users\user1\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.11.0\libraries\USBDevice\src\usbd_conf.c:174:5: error: implicit declaration of function '__HAL_RCC_USB_OTG_HS_ULPI_CLK_ENABLE' [-Wimplicit-function-declaration]
174 | __HAL_RCC_USB_OTG_HS_ULPI_CLK_ENABLE();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\user1\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.11.0\libraries\USBDevice\src\usbd_conf.c:194:7: error: implicit declaration of function '__HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_IT' [-Wimplicit-function-declaration]
194 | __HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_IT();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\user1\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.11.0\libraries\USBDevice\src\usbd_conf.c:197:28: error: 'OTG_HS_WKUP_IRQn' undeclared (first use in this function); did you mean 'OTG_HS_IRQn'?
197 | HAL_NVIC_SetPriority(OTG_HS_WKUP_IRQn, USBD_IRQ_PRIO, USBD_IRQ_SUBPRIO);
| ^~~~~~~~~~~~~~~~
| OTG_HS_IRQn
C:\Users\user1\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.11.0\libraries\USBDevice\src\usbd_conf.c:197:28: note: each undeclared identifier is reported only once for each function it appears in
exit status 1
Compilation error: exit status 1
To Reproduce
Steps to reproduce the behavior:
- Create new sketch.
- Compile using configuration shown above.
- See error.
Expected behavior Compilation success.
Desktop:
- OS: Windows
- Arduino IDE version: 2.3.6
- STM32 core version: 2.11.0
Board:
- Name: Nucleo-U5A5ZJ-Q
Hi @whiskerpole Sorry, forgot to answer. I've started to work on this last week. Now it build but USB is not functionnal. Note hat for this board you have to select USB HS in FS not High Speed. Hope to come soon with functional fix.