As d.koekeny noted, that doesn't quite work. There is contradictory info in the SDK, too: there is a hal_conf_template.h in Drivers/HAL_Driver/Inc/ that is supposed to be copied and renamed into the application source folder, which is where CubeMX pu...
Have you gotten this to work? I have an STM32G431CBU on a custom board that also refuse to show up on USB, even though it gets power just fine. Could well be bugginess of the board, though it seems like things are connected up right as far as the wir...