; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html [env:genericSTM32F103R8] platform = ststm32 board = genericSTM32F103R8 framework = arduino upload_protocol = stlink # refer to https://github.com/platformio/platform-ststm32/issues/178#issuecomment-467286677 build_flags = -D USBCON -D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC -D HAL_PCD_MODULE_ENABLED -D USBD_VID=0x1EAF -D USBD_PID=0x0004 -D USB_PRODUCT=\"bluepill\"