- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi guys,
I am using an adc and USBFS (not USBUART) in a project. The adc output is being displayed on the lcd and simultaneously also being loaded into the endpoint of usb. I have configured usbfs for bulk transfer with endpoint 1 set for IN mode.
However on execution, the transfer is not taking place and the program gets stuck at this command:
while(USBFS_GetEPState(IN_EP)!=USBFS_IN_BUFFER_EMPTY);
I have attached my project file under the folder name "proj3".
I would be grateful for any suggestions quickly.
- Labels:
-
PSoC 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I AM UNABLE TO POST MY FILE .I WILL SEND YOU GUYS THE CODE ITSELF.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
========================================
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For uploading files, use Firefox or IE, but not Chrome.
One question: do you have a program running at the other side of your USB connection that actually reads the data? Does the program get stuck on the first time it sends data or only on the second time? (OK, that were now two questions 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To answer your second question :), it gets stuck at the first run itself and the lcd displays only one value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm not sure how your endpoint is configured. But if there is no one on the PC side to read the data, maybe the PSoC ist just not able so send the buffer fully...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the project file that i attached in my previous post, the endpoint 1is configured as bulk transfer with packet size of maximum 64 bytes.