OpenOCD AT91SAM4E, USB CDC not working while debugging

I have noticed when I am debugging code with OpenOCD as GDB server the USB CDC does not work. However it does work using GDB with the Atmel Studio. Is there some setting to allow the CDC to work with OpenOCD?

Thanks

I found that I need to do a hardware reset to get the USB working, editing the configuration file and adding:

reset_config srst_only

Seems to have fixed the problem.