I do not know which example you refer to. Can you post your complete project, so that we all can have a look at all of your settings? To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
typical error: the voltage setting in the design-wide resources do not match the ones given to the USB-component (in the startup-code), or the ones that the board is configured for. Check that all three are the same.
I am also having this problem.
I have one unmodified CY8CKIT-059 where the USB_UART example works fine. Obviously, this board is running on 5V and the startup code specifies 5V operation: "USBUART_1_Start(0u, USBUART_1_5V_OPERATION);"
I have modified another CY8CKIT-059 board where I removed R20 and added a 3.0V regulator between VTARG and P5LP_VDD.
1) I confirmed with oscilloscope that VDD and VDDIO are 3.0V.
2) In the project's .cydwr file, under the System tab, in the Operating Conditions section, I changed all VDD settings to "3.0"
3) In the startup code I have changed the USB_Start argument to 3V operation:
USB connection fails. In device manager I only see "Unknown Device".
What else should I try?
I found my answer in the PSoC5 Architecture TRM. The USB peripheral works at 5.0V or 3.3V, not 3.0V. I changed my regulator to 3.3V and now the USB connection works.
From PSoC5LP Architecture TRM_001-78423_0C:
24.3.2 Operating Voltage
The USB block can operate in two voltage ranges:
■ Standard voltage range – 4.35 V to 5.25 V
■ Low voltage range – 3.15 V to 3.45 V
In my case I found that using settings USBUART_1_Start(0u, USBUART_1_5V_OPERATION); while operating FreeSoc at 3V works OK, but changing it to "correct" settings USBUART_1_Start(0u, USBUART_1_3V_OPERATION); does not. So I just always use "5V" settings.