Anonymous
Not applicable
Feb 24, 2014
08:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 24, 2014
08:08 PM
Hi All,
I ran into this and took awhile to find the problem... thought I would write this while it was fresh.
USBFS_v2_60.pdf Page 57:
The discription for the "void USBUART_CDC_Init(void)" function gives an example using USBUART_GetConfiguration() to wait until the host has enumerated and configured the device.
USBUART_Start(…);
while(USBUART_GetConfiguration()){};
USBUART_CDC_Init();
The second line should have been "while(!USBUART_GetConfiguration()); ".. note the added "!" to invert the returned value from the get configuration function. The example above does not wait as indicated in the discription. The problem showed in my test software, where the Psoc could write to the PC but the PC could not write to the Psoc.
Labels
- Labels:
-
PSoC 3
0 Replies