Skip to main content
Visitor II
June 12, 2024
Solved

STM32_USB_Device_Library cannot be compiled

  • June 12, 2024
  • 2 replies
  • 1618 views

Hello
i have problem to compile STM32Cube_FW_F7_V1.17.0\Middlewares\ST\STM32_USB_Device_Library

I use STM32CubeIDE Version: 1.14.0 + STM32CubeMX Version: 6.10.0-RC9

chip STM32F767ZITx  (NUCLEO-F767ZI)

I'm mainly interested in the cause
expected '=', ',', ';', 'asm' or '__attribute__' before 'USBD_ConfigDescTypeDef' usbd_def.h

from which most other errors probably derivestm_err.pngstm_err_2.png

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

    Hi @PNova.2 

    It is possible you have changed usbd_core.c or usbd_def.h library files by mistake. I suggest you update latest versions of CubeF7 and CubeIDE.

    2 replies

    FBLAnswer
    Technical Moderator
    June 12, 2024

    Hi @PNova.2 

    It is possible you have changed usbd_core.c or usbd_def.h library files by mistake. I suggest you update latest versions of CubeF7 and CubeIDE.

    PNova.2Author
    Visitor II
    June 12, 2024

    thanks - it helped to update the latest versions of CubeF7

    Super User
    June 12, 2024

    Looks like it's not recognising the "__PACKED" there.