1 Reply Latest reply on Jul 23, 2013 8:33 PM by anand.srinivasan.asokan

    Programming EEPROM through USB vendor specific commands in Linux

    javier.moreno

      Hello,

         

      I need to flash content of EEPROMs associated with CY7C68300C pata bridge. Basically, I need to put the content of 100_self_CF.iic file into the eeprom.

         

      I am using libusb and accessing i2c external device as stated in table 12 of datasheet.

         

      Seems that not action is taken? Any help or advice?

         

      Kind Regards,

         

      Javier.

         

       

         

       

         

      ======= STEP 1: READ EEPROM =========== (OK)
      idVendor=1204 idProduct=26672
      idVendor=1204 idProduct=26672

      [OTS] USB Operation: READ configuration
      [READ] Operation done in DEVICE EEPROM
      ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
      [READ] Operation done in DEVICE EEPROM
      ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
      [OTS] USB Operation Finished
      [OTS] EXIT

      ======= STEP 2: READ INTERNAL =========== (OK - No good data)

      idVendor=1204 idProduct=26672
      idVendor=1204 idProduct=26672

      [OTS] USB Operation: READ configuration
      [READ] Operation done in DEVICE INTERNAL
      53 4b 00 80 24 ff d4 07 ff 00 00 00 00 00 00 ff 12 01 00 02 00 00 00 40 b4 04 30 68 58 00 00 53 46 01 0a 06 00 02 00 00 00 40 01 00 09 02 39 00 02 01 00 c0 01 09 04 00 00 02 ff 06 50 00 07 05 02 02 00 02 00 07 
      [READ] Operation done in DEVICE INTERNAL
      53 4b 00 80 24 ff d4 07 ff 00 00 00 00 00 00 ff 12 01 00 02 00 00 00 40 b4 04 30 68 58 00 00 53 46 01 0a 06 00 02 00 00 00 40 01 00 09 02 39 00 02 01 00 c0 01 09 04 00 00 02 ff 06 50 00 07 05 02 02 00 02 00 07 
      [OTS] USB Operation Finished
      [OTS] EXIT

      ======= STEP 3: WRITE EEPROM (100_self_iic) =========== (OK)

      [OTS] APP TEST STARTS
      idVendor=1204 idProduct=26672
      idVendor=1204 idProduct=26672
      [OTS] USB Operation: LOAD configuration
      [WRITE] Operation done in DEVICE EEPROM
      53 4b 00 80 24 07 d4 07 39 ff 40 00 00 00 00 00 12 01 00 02 00 00 00 40 b4 04 30 68 40 02 46 39 2c 01 0a 06 00 02 00 00 00 40 01 00 09 02 27 00 01 01 00 c0 00 09 04 00 00 03 08 06 50 00 07 05 02 02 3f 00 00 07 
      [WRITE] Operation done in DEVICE EEPROM
      53 4b 00 80 24 07 d4 07 39 ff 40 00 00 00 00 00 12 01 00 02 00 00 00 40 b4 04 30 68 40 02 46 39 2c 01 0a 06 00 02 00 00 00 40 01 00 09 02 27 00 01 01 00 c0 00 09 04 00 00 03 08 06 50 00 07 05 02 02 3f 00 00 07 
      [OTS] USB Operation Finished

      ======= STEP 4: READ EEPROM =========== (NG)

      idVendor=1204 idProduct=26672
      idVendor=1204 idProduct=26672
      [OTS] USB Operation: READ configuration
      [READ] Operation done in DEVICE EEPROM
      ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
      [READ] Operation done in DEVICE EEPROM
      ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
      [OTS] USB Operation Finished
      [OTS] EXIT