I tried just to:
#include <USBSerial.h>
It used internal mbed-USBDevice
library from mbed framework source tree. I’ve received “Target not supported!” error during build (and a bunch of others).
If I add to platformio.ini
:
lib_deps = USBDevice ; or USBDEVICE
,
it installs the library, but still compiles the files inside features/unsupported/USBDevice/targets/TARGET_STM
, and still throws “Target not supported!” error because of this.
By examining the output during build, I see that USBDevice
/USBDEVICE
libraries from PlatformIO repo (IDs are 2820 and 5028) still depend on mbed-USBDevice
.
Is it possible to use USB on STM32F103C8 with mbed?