Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
I am trying to expand the bulk loop example so that the firmware to contain additional configurations.
I duplicated the CyFxUSBSSConfigDscr array in cyfxbulklpdscr.c to and changed the configuration number and number of configurations on the device descriptor.
The firmware compiles and on the sniffer (Lecroy) I can see both configurations, however a "stall" is returned when the host tries to configure the device (set-configuration).
I noticed that for CyU3PUsbSetDesc (which uses to set the descriptor to the device driver in the cypress), there is a comment in cyu3usb.h
**Description**\n This function is used to register a USB descriptor with the USB driver. The driver is capable of remembering one descriptor each of the various supported types as well as upto 16 different string descriptors.
Will appreciate your insight on this... Is it possible to configure the fx3 firmware to support muti-configuration? Thanks,
Regarding the lengths, Since I took the CyFxUSBSSConfigDscr and practically duplicated it, I haven't changed any of the length related fields.
I did changed the number of configurations in CyFxUSB30DeviceDscr, increasing it by 1.
In addition, the added configuration (cloned array - similar to CyFxUSBSSConfigDscr), gotten a configuration value 2
Are you familiar with the CyU3PUsbSetDesc comment (see cyu3usb.h line 678) about that the driver can "remember" one descriptor of the various supported types, but up to 16 string descriptor devices?
I use CyU3PUsbSetDesc in order to set the additional config (cloned CyFxUSBSSConfigDscr).
Would like to start from a relatively simple firmware and expand its functionality (so I thought I would take the bulkloopback for example and try to create a second (identical at first) configuration that will be set/chosen from the host and still be able to use the test that uses the bulkloopback after the host has configured configuration #2.
Is it possible to create multi configuration firmware with the FX3? (started to look into multi-interface solution instead)