Skip to content

Nucleo-U5A5ZJ-Q experiences compilation issues with USB CDC Serial supersede #2855

@whiskerpole

Description

@whiskerpole

Describe the bug
Compilation errors when I use the following configuration with the Nucleo-U5A5ZJ-Q:

Image

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:

  1. Create new sketch.
  2. Compile using configuration shown above.
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working

    Type

    No type

    Projects

    Status

    To do

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions