How to create a USB CDC device. (I'm using stm32f103c8 black pill board) and I want to read the data through USB in my raspberry pi as a serial port.
I am using a black pill to read RFID-rf522 to read a tag (SPI) and send it to raspberry pi through a USB (using DM and DP pins).
Quick responses are welcomed.
Serial.begin(115200);
or maybeUSBSerial.begin(115200);
will do it. Read the manual for the STM32F1 core on the website for that core.