cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX cannot compile generated project

Olek1
Associate II
Posted on March 09, 2018 at 15:24

Hi,

I am trying to compile project in Atollic TrueSTUDIO for STM32 generated in STM32CubeMX but my HAL libraries are not visible after adding USB_DEVICE in CDC mode.

I am generating project which uses some GPIO Inputs and USB CDC, but after changing 'Class For FS IP' from 'Disabled' to 'CDC' it is not possible to compile project.

MCU I selected is STM32F042K6Tx in LQFP32 package.

In attachment my project files.

BTW, I tried both on Windows and Linux. Same result.

Thanks in advanced.

2 REPLIES 2
Posted on March 09, 2018 at 15:58

I tried the provided project file and generated Keil v5 project with the CDC enabled ( I do not use the True Studio). I needed to download additional packages as the device was never used by me.

It compiles w/o problems. Could you please share the error messages?

Olek1
Associate II
Posted on March 09, 2018 at 16:02

The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6uV&d=%2Fa%2F0X0000000bxp%2FP5rY6yn4r_tOrHPXa6MlxDdph_B0HenZTB4oYww8AmE&asPdf=false