Why does a new empty F4 project with USB-Device_Lib not build?
EDITED
When I select USB_Device_Library to be included in my new project created by STM32Cube_FW_F4_V1.11.0 (not STM32CubeMX version 4.14) for F4Discovery with HAL, I find that a Middleware folder is placed in the stm32f4discovery_hal_lib project folder preventing it build - due to unedited templates etc.
An empty project should build, or be with an instruction.txt file at the root level explaining how the use the USB_Device library so that is does build!!!!
Should I tick checkbox to exclude from build the Middleware folder , then copy only the files I need (e.g CDC class files) from middleware into my own project like in the examples of usb_device projects?
Can someone please say how middleware is supposed to be used so that I can start with something that compiles.