I can not seem to get USB serial [USB CDC] working on either a STM 32 Bluepill or Nucleo F767ZI. I can get the USB CDC to workly using the STCUBEMX and TrueStudio tool chain on both devices but not under arduino ststm32. I have tried with latest standard STM32 package and the developmental package on GIT [changing the platform = line].
I have added build flags in Platformio.ini (for the Nucleo F767ZI):
build_flags = -D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
I get the same results with/without these flags, when I plug in the USB, I get no response on the windows PC with the Nucleo board and a USB device unrecognized error on BluePill.
I am not sure what I am missing here. Can someone help me out?