Skip to main content
PNova.2
Associate II
June 12, 2024
Solved

STM32_USB_Device_Library cannot be compiled

  • June 12, 2024
  • 3 replies
  • 2679 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.

3 replies

FBLBest answer
ST 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.

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
PNova.2
PNova.2Author
Associate II
June 12, 2024

thanks - it helped to update the latest versions of CubeF7

Andrew Neil
Super User
June 12, 2024

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

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.