- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all, i`m not familiar with firmware code of FX3 and want to ask sb expert for modifing a little part of firmware.
we currently use the slave fifo firmware for driving FX3, in this example firmware, internal buffer size is configured based on usb rate, as the code piece below:
In above switch of code, three usb rate modes are mapped to three different buffer size configurations, by those configurations, 16kB per one packet for usb3.0 and 8kB per one packet for usb2.0, thus if our device is connected with usb2.0 host, two bulk-in transfers are needed for transferring one 16kB data, actually we expect that transferring 16kB in one packet for all usb rate modes, that will simplify our FPGA interface design.
can i just set all size to 1024 in above three cases of switch ? or i can not do that for some hardware reason of FX3 ?
BTW, need i modify the burstLength of above code ?
Solved! Go to Solution.
- Labels:
-
USB Superspeed Peripherals
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
"can i just set all size to 1024 in above three cases of switch ? or i can not do that for some hardware reason of FX3 ? "
>>The size in the above code snippet represents the maximum packet size for the corresponding USB speeds. These values are according to USB specifications. They cannot be changed.
"BTW, need i modify the burstLength of above code ?"
>> Burst Transfer is supported only in USB 3 mode The maximum burst size for USB 3 is 16.
The burstLength should not be modified in the default firmware.
Best Regards,
AliAsgar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
"can i just set all size to 1024 in above three cases of switch ? or i can not do that for some hardware reason of FX3 ? "
>>The size in the above code snippet represents the maximum packet size for the corresponding USB speeds. These values are according to USB specifications. They cannot be changed.
"BTW, need i modify the burstLength of above code ?"
>> Burst Transfer is supported only in USB 3 mode The maximum burst size for USB 3 is 16.
The burstLength should not be modified in the default firmware.
Best Regards,
AliAsgar