4 Replies Latest reply on Aug 16, 2018 10:22 PM by srnt

    FX2LP CDC CLASS

    Geethanjali_3054931

      Hello,

      I have implemented CDC USB class in fx2lp.I have programmed to program->fx2->64k EEPROM.when its programmed to eeprom,its detecting as USB SERIAL PORT under COM PORT.

      Again i need to program this fx2lp device,but its not detecting in the default control center.

      what is the possibility to program this device again?

       

      regards,

      geetha.

        • 1. Re: FX2LP CDC CLASS
          srnt

          Hello Geetha,

           

          When the large EEPROM is programmed with a firmware that does not have a vendor interface ( binding to CYUSB3 driver ), the Control Center cannot access the device. In order to recover the device, a small EEPROM (single byte address) with 8 bytes of data starting with 0xC0 can be connected on the I2C bus with its address lines set to 000. This would enumerate the device which can be bound to CYUSB3 driver and the large EEPROM can be updated therafter.

           

          In order to avoid this procedure in the future, implement an additional vendor interface on the device. Define a custom vendor command to send data to the large EEPROM to reprogram it.

           

          Best regards,

          Srinath S

          1 of 1 people found this helpful
          • 2. Re: FX2LP CDC CLASS
            Geethanjali_3054931

            Hello shrinath,

             

            can i implement CDC class and vendor class in the same descriptor file?

            fx2lp slavefifo example is in vendor command,what did you mean by custom vendor commmand?

             

             

            regards,

            geetha.

            • 3. Re: FX2LP CDC CLASS
              Geethanjali_3054931

              Hello shrinath,

              As you said,

              implement an additional vendor interface on the device. Define a custom vendor command to send data to the large EEPROM to reprogram it.

              ->can you give any example related to this scenario?

              how can i define vendor command in CDC class?

               

              regards,

              geetha.

              • 4. Re: FX2LP CDC CLASS
                srnt

                Hello Geetha,

                 

                - Please find the attached project that has got a CDC interface and a vendor interface.

                - I have defined a vendor command 0xAB to write to the double byte EEPROM (large EEPROM) using the Control Center.

                - For the first time, the device comes up as a USB Serial Device under the 'Ports' section and an unknown device under the 'Other devices' section. The unknown device has to be forcefully bounded to CYUSB3 driver.

                 

                Best regards,

                Srinath S