1 2 Previous Next 22 Replies Latest reply on Jul 21, 2018 3:00 AM by gean_3054931

    fx2lp with c0 load

    gean_3054931

      Hello,

      I have a fx2lp board with eeprom connected with  A2,A1,A0(0,0,0),as cypress suggested,i am programming small eeprom with 8bytes.iic file.but programming is failed.

      in our HARDWARE,FX2LP is connected to eeprom(16KBytes) through i2c buffer.is it i2c buffer is problem for this issue?

      regards,

      geethanjali.

        • 1. Re: fx2lp with c0 load
          SananyaM_56

          Hello Geethanjali,

           

          -Please make sure that there are pull up resistors on the SCL and SDA lines.

          -Can you specify which EEPROM you are using?

           

          Best Regards,

          Sananya

          • 2. Re: fx2lp with c0 load
            gean_3054931

            hello sananya,

            pullup resistors are there on the scl and sdata.programming through RAM is working.EEPROM used is 24LC128 ,that is large eeprom.{both large eeprom and small eeprom programming is not working,programming failed}.

             

            programming of large EEPROM is working with another board,in this board ,eeprom is directly connected to fx2lp through I2C without any i2c buffer.

             

            regards,

            geethanjali.

            • 3. Re: fx2lp with c0 load
              SananyaM_56

              Hello Geethanjali,

               

              -Are you connecting any external I2C bus buffer between the FX2LP and EEPROM? The SCL, SDA lines should be directly connected to the EEPROM.

              - Could you please measure the voltage on the lines?

               

              Best Regards,

              Sananya

              • 4. Re: fx2lp with c0 load
                gean_3054931

                Hello sananya,

                Are you connecting any external I2C bus buffer between the FX2LP and EEPROM? The SCL, SDA lines should be directly connected to the EEPROM.

                yes.we are using external i2c buffer between fx2lp and eeprom.

                • 5. Re: fx2lp with c0 load
                  user_2903406

                  Hi,

                  the 24LC128 EEPROM is a 16-bit address.

                   

                  For example is you use BOOL EEPROMWriteByte(BYTE addrEEPROM, BOOL TypeEEPROM,  WORD addr, BYTE value) from cypress lib

                  => TypeEEPROM = 0x00 for 8 bit addr eeproms (24LC01B ou AT24C01A)

                  => Other TypeEEPROM = 0x01 for 16 bit addr eeprom (24LC65 ou AT24C32A ou AT24C64A).etc...Indicate if it is a dual byte address part is 16 bit addr bit

                   

                  if you programm 24LC128 with 8bytes.iic is the same.

                  • 6. Re: fx2lp with c0 load
                    gean_3054931

                    hello sananya,

                    8bytes.iic file is for programming only for small eeprom?should i change 8bytes.iic file for 16bit address?

                     

                    regards,

                    geetha.

                    • 7. Re: fx2lp with c0 load
                      user_2903406

                      yes

                      To compile your code to the 16-bit format si the EZ-USB® Technical Reference Manual,

                      chapter 3.4.3 Serial EEPROM Present, First Byte is 0xC2, page 53 to 55

                       

                      The best way to understand, you can look inside the code of Hex2bix utility

                      Folder  .. Cypress\USB\CY3684_EZ-USB_FX2LP_DVK\1.0\Utilities\Hex2Bix

                      This directory contains the Hex To Bix converter program for the Anchor Chips EZ-USB chip.

                       

                      This file converts the hex output file to a bix file that can be

                      downloaded directly into target memory. It also converts the hex

                      output to a file that can be directly loaded into an EEPROM.

                      It basically creates a memory image (including zeros) of the memory

                      space defined by the hex file.

                       

                      Program Options:

                      HEX2BIX [-AIBRH?] [-S symbol] [-M memsize] [-O filename] Source

                          Source - Input filename

                          A      - Output file in the A51 file format

                          B      - Output file in the BIX file format (Default)

                          H|?    - Display this help screen

                          I      - Output file in the IIC file format

                         M      - Maximum memory limit (Default = 8k)

                          O      - Output filename

                          R      - Append bootload block to release reset

                          S      - Public symbol name for linking

                       

                      with a sample

                      c:\cypress\usb\bin\hex2bix -c 0x80 -i -f 0xC2 -o bulkloop.iic bulkloop.hex.

                      • 8. Re: fx2lp with c0 load
                        gean_3054931

                        HI,

                        I have done with fx2lp i2c booting.there is no issue with fx2lp booting.

                        but my problem is regarding i2c eeprom erase.when fx2lp is detected as unknown device.

                        • 9. Re: fx2lp with c0 load
                          SananyaM_56

                          Hello Geetha,

                           

                          I assume you are programming using the Control Center? In that case you need to connect an appropriate EEPROM as per the datasheet (Table 8) to the required address lines since a small EEPROM will be expected to have a single byte address. After a proper Small EEPROM is connected, you can load a 8 bytes .iic with C0 as the first byte and boot the corrupted FX2LP from it.

                           

                          Best Regards,

                          Sananya

                          1 of 1 people found this helpful
                          • 10. Re: fx2lp with c0 load
                            user_2903406

                            the value of A2 A1A0 address  is wrong if you use 24LC128 as boot. On the chapter 13.6  (page 192) of the EZ-USB® Technical Reference Manual, Document # 001-13670 Rev. *D

                            • 11. Re: fx2lp with c0 load
                              gean_3054931

                              hello both of you,

                              eeprom used is 16byte addres i.e large eeprom.

                              the 8bytes.iic file given by cypress is conatining c0 as first byte.

                              eeprom 24LC128 has A2,A1,A0  as 000 i.e according to c0 load.

                              what should i do now?

                              according into c0 load,it is having 000 address,.iic file contains c0 as first byte(8byte addres) but eeprom is 16byte address.how can i erase another corrupted eeprom now?

                               

                              regards,

                              geetha.

                              • 12. Re: fx2lp with c0 load
                                gean_3054931

                                hello s.j

                                I am done with fx2lp booting.no issues regarding this.

                                i have a 8bytes.iic file ,in order to erase corrupted eeprom by connecting sda and scl lines.for this,i have to program this 8bytes.iic file to another eeprom.but programming is failing.

                                because 24lc128 eeprom is 16bytes addressing,the 8bytes,iic file given by cypress is containg c0 as first byte,how to change this 8bytes.iic file in order to programming the large eeprom?which thing i have to modify?is it 8bytes.icc or eeprom ic?

                                 

                                regards,

                                geetha.

                                • 13. Re: fx2lp with c0 load
                                  SrinathS_16

                                  Hello Geetha,

                                   

                                  You cannot program a 16-byte addressable EEPROM using the Cypress USB Control Center Program -> FX2 - > Small EEPROM. You need to have an 8-byte addressable EEPROM or the Control Center application should be modified to implement this.

                                   

                                  Best regards,

                                  Srinath S

                                  1 of 1 people found this helpful
                                  • 14. Re: fx2lp with c0 load
                                    gean_3054931

                                    Hello shrinath,

                                    You need to have an 8-byte addressable EEPROM or the Control Center application should be modified to implement this.

                                    currently we dont have 8byte addressable EEPROM.

                                    How can i modify control center application?

                                     

                                    regards,

                                    geetha.

                                    1 2 Previous Next