cancel
Showing results for 
Search instead for 
Did you mean: 

STM32_USB_Device_Library cannot be compiled

PNova.2
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
FBL
ST Employee

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 Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
FBL
ST Employee

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 Accept as Solution on the reply which solved your issue or answered your question.

Andrew Neil
Evangelist III

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

thanks - it helped to update the latest versions of CubeF7