Dmytro

Results 15 comments of Dmytro

Sorry, currently I am AFK, but as I remember, same function was in another place. This PR still not finished, I will do some stuff and add examples soon.

I have downloaded Arduino IDE and launched project with USB Serial usage in it - and it works! So I have checked which flags are used in compilation in Arduino...

I'm using stm32duino 7.2.0. These `-DPIO_FRAMEWORK...` flags have no effect (at least in my case) if I use ONLY them - USB Serial not works. If I use flags extracted...

As I understood how it supposed to work: if define PIO flags, they should automatically trigger native Arduino flags usage at build (which can be different at various core versions,...

## PIO flags Log from PlatformIO (stm32duino 7.2.0) with enabled PIO flags can be seen [here](https://github.com/giver0/Rocket-logger/runs/961377679), from CI build. Single line example from it: ```shell arm-none-eabi-gcc -o .pio/build/genericSTM32F103RC/FrameworkArduinoVariant/PeripheralPins.c.o -c -std=gnu11...

I need only basic USB Serial, so for me it doesn't matter which USB speed is used. Settings in Arduino IDE: ![image](https://user-images.githubusercontent.com/22222390/89815404-63b51d00-db4d-11ea-88c6-afe5ab2ac30d.png) As I understood, these settings should correspond only...

# My little research ## USB Serial/HID -DPIO_FRAMEWORK_ARDUINO_ENABLE_CDC PlatformIO (tested, wrong) ``` -DUSBD_USE_CDC -DHAL_PCD_MODULE_ENABLED ``` Arduino IDE (tested, correct) ``` -DUSBCON -DUSBD_VID=0 -DUSBD_PID=0 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC ``` ![image](https://user-images.githubusercontent.com/22222390/89925168-b48b4b00-dc0b-11ea-92e8-da10b645bc0b.png) -DPIO_FRAMEWORK_ARDUINO_ENABLE_CDC_WITHOUT_SERIAL PlatformIO (not...

Yes, it works even without definition of VID PID flags, with only `-DPIO_FRAMEWORK_ARDUINO_ENABLE_CDC -DUSBCON`

Hi. Replace `-D USBD_USE_CDC` with `-DPIO_FRAMEWORK_ARDUINO_ENABLE_CDC`