STM32F103 USB CDC Device stops working in debug state
I have an application I’m developing on a STM32F103RCT6 derived from STM CubeMX (STM32Cube_FW_F1_V1.6.0 )
It includes a CDC Transmit function that periodically sends data to the PC.
I want to debug code unrelated to the CDC function.
When I enter debug the transmissions stop Doesn’t seem to need to hit a break point to do this.
If I resume program execution, nothing comes out of the USB anymore the host computer states the USB has a problem, the port is closed and can’t be reopened.
I still have to figure out exactly where the F103 code ends up.
If I power cycle the F103 it starts emitting again, but dgb drops out.
Can a STink V2 and a CDC virtual com port co exist on the same computer?
Computer is a windows 10 with the “windows inbox driver” for CDC and the SW4STM32 driver for the STlink.
Is there anything I need to do in the Debug Configuration to stop USB falling over when entering debug mode?
I’m new to this environment and usually debug by trial and error...
Thanks,
Nick.