Including the FreeRTOS makes the stm32 do nothing

Ah, for USB-CDC, you need to add

monitor_dtr = 1

to the platformio.ini per Difficulty with getting USB serial [USB CDC] working - #6 by maxgerhardt.