I use MXCube to create a simple project based on the STM32F3Discovery board. Only USB is enabled as a CDC device. Other settings remain untouched. The code is generated for Truestudio. In Truestudio I created the syscalls.c by New->Other->System Call...