Hi Gary,
Are you using an external 1.5K ohm resistor or the internal one?
If you use an external one you are not giving enough time to the MCU to enable properly the internal PLL and all the USB stack. remove the external pull-up resistor. the MCU already has an internal resistor that will be activated in SW.
try it and let us know if worked.
regards