10 years, 5 months ago.

Error: #error directive: "Unknown target type" in "USBDevice/USBDevice/USBEndpoints.h"

what is the problem?My platform is nucleo f302r8.It includes a USB device.How I let it support?What should I include the header file?

Question relating to:

1 Answer

10 years, 5 months ago.

Your platform is not supported in the USBDevice library.

Thank you for your answer!I have some question to ask.Would you take some time to answer me?Thank you again! My platform is nucleo f302r8.It includes a USB device.How I let it support?What should I include the header file?

posted by y h 08 Apr 2015

go to https://github.com/mbedmicro/mbed, where are sources and you can contribute. I dont know what usb peripheral is in f302r8 (if any), so look at usb sources there what other nucleo boards are there, to see waht files. I am not aware of any usb porting guide.

posted by Martin Kojtal 09 Apr 2015