Some bluepill boards are having wrong resistors on the USB lines preventing it from properly working: BluePill and its annoyances | Details | Hackaday.io
Either maple should work out-of-the box (with board_build.core = maple
) or use the build_flags
(and only that) from Difficulty with getting USB serial [USB CDC] working - #18 by carlymx