Windows compilation
Kabron287 opened this issue · 3 comments
All this of course is very good, but is there a way to compile it in Windows, preferable with known instruments: Cube, Keil, IAR...?
Well, I tryed to compile With CubeIDE as MakeFileProject and got sevral errors:
usb_descriptors.c:96:27: error: initializer element is not constant
.bMaxPacketSize = usb_endpoints[usb_endpoint_address_control].rx_size,
When I changed:
// .wMaxPacketSize = usb_endpoints[usb_endpoint_address_cdc_0_data].tx_size,
to
.wMaxPacketSize = USB_CONTROL_ENDPOINT_SIZE,
Compilation was success
Hi,
Thanks for this issue. My bad. I used non-const initializes in a few places in the code. Although recent versions of gcc and clang can live with that, this violates the C standard. Older versions of gcc (which you probably use with you installation of CubeIDE) consider this an error. Anyhow, fixed in #57, please test it should work with CubeIDE now.
As for Keil and IAR, I don't think I care for those at this point.