AnsweredAssumed Answered

KSDK V1.2.0 USB compile errors

Question asked by Chiz Chikwendu on Oct 9, 2015
Latest reply on Dec 6, 2015 by MICHAEL HUSLIG

I built a usb cdc application using the USB KSDK V1.2.0 stack. I am having compile errors (using KDS 3.0.0).

I have compiled the example project "virtual_com" for USB cdc application, and it compiles fine. I don't see the compile errors.

I copied that project, renamed it and created some functions, however the USB application code is the same. My project compiles with USB errors associated with usb_device_stack_interface.h

 

The compiler can't find where data types are defined. Data types such as "uint8_t, uint16_t, uint32_t"...

usb_device_stack_interface.h does not include types.h or usb_types.h.

 

types.h seems to have a problem with the construct:

typedef unsigned long bool

 

It throws an error saying: "both 'long' and '_Bool' in declaration specifiers"

 

Does anyone know how to get around these errors associated with the USB stack?

 

Thanks,
Chiz

Outcomes