Problem solved. I'm using custom board with STM32F103C8, and it has 12 MHz crystal instead of 8 MHz on Blue Pill board.
After editing mbed startup code, the USB device was recognized. I'm only beginner in mbed, maybe I should create custom target for building my code, but that was quick and dirty fix.
Zoltan, I have another question about your fork of USBDevice for STM32F103C8.
It considers serial terminal to be unconnected when any of RTS or DTR lines are set from USB host. Windows 10 standard serial port driver sets them right after opening the port, so my device thought it was never connected.
I saw you used only DTR line state to detect serial port opening in the past (and it works correctly on my setup), why was that behaviour changed?
Hello everyone,
I'm struggling with writing a hello-world type application for STM32F103C8. It just blinks the LED and outputs messages on USBSerial. This is where I'm having issues. USBSerial object hangs on creation. Consider:
I'm using USBSerial library for STM32F103C8 from here.
A similar project based on Arduino framework works. So I think I have a simple mistake somewhere. Please help.