EEVblog Electronics Community Forum
A Free & Open Forum For Electronics Enthusiasts & Professionals
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
This topic
This board
Entire forum
Google
Bing
Home
Help
Search
About us
Links
Login
Register
EEVblog Electronics Community Forum
»
Electronics
»
FPGA
»
Xilinx bare metal USB issue
« previous
next »
Print
Search
Pages: [
1
]
Go Down
Author
Topic: Xilinx bare metal USB issue (Read 2718 times)
0 Members and 1 Guest are viewing this topic.
grouchobyte
Regular Contributor
Posts: 244
Country:
Xilinx bare metal USB issue
«
on:
July 02, 2017, 12:23:21 am »
I am having an issue with a Xilinx Z7020 on a Microzed board.
I'm trying to send data out of the device to a bulk IN endpoint. I frequently get status code 1412 returned from EpBufferSend(), similar to this forum thread:
https://forums.xilinx.com/t5/Embedded-Processor-System-Design/Is-this-a-USBPS-bug/td-p/510393
and this one:
https://forums.xilinx.com/t5/Embedded-Processor-System-Design/Zynq-Baremetal-USB-Device-Running-out-of-dTDs/td-p/669855
The first thread mentions the solution is to zero out the memory before calling ConfigureDevice(), but the example shipped with SDK 2016.04 does that.
https://github.com/Xilinx/embeddedsw/blob/master/XilinxProcessorIPLib/drivers/usbps/examples/xusbps_intr_example.c#L253
Calling EpBufferSend() once with a small buffer works OK and I can read the bytes out with WinUSB's ReadPipe(). But I would like to send a continuous stream from the device and read it on the host. When I try calling EpBufferSend multiple times, I get status 1412. Why is this happening and what is the proper way to send large amount of data from the device to the host on the zynq using bare-metal?
Thanks for any suggestions...
@grouchobyte
Logged
Print
Search
Pages: [
1
]
Go Up
« previous
next »
Share me
Smf
EEVblog Electronics Community Forum
»
Electronics
»
FPGA
»
Xilinx bare metal USB issue
There was an error while thanking
Thanking...
EEVblog Main Site
EEVblog on Youtube
EEVblog on Twitter
EEVblog on Facebook
EEVblog on Odysee