Kevin,
thank you for your valuable reply.
You are right about the eeprom atmel 24c128. My fault has not mentioned
that before.

As you guessed, the line
$ fx2tool -B -d 16c0:296d read_eeprom -W 2 0 256
failed but in fact, the model my board has a jumper (J2) that, when opened,
associates address 0x51 to the i2c port.
See this reference (which is identical to my board. J2 is at the bottom of
the figure 1)
https://community.cypress.com/t5/Knowledge-Base-Articles/Cypress-EZ-USB-FX2LP-based-Logic-Analyzer-using-Open-Source/ta-p/252866

Then I opened the jumper, ran the command line again and, voila, got the
empty firmware output again :\
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 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 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 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

Is this output expected to show the VID PID numbers in some place?

Best regards.
Fausto.

On Mon, Jan 11, 2021 at 8:24 AM Kevin Grant <elect...@mykolab.com> wrote:

> Fausto
>
> There should be some data, not all FFs so I think there is a problem with
> I2C address for the 8-pin EEPROM chip which stores the VID and PID.
>
> I think perhaps your board has a ATMEL AT24c128 (16KBbytes) with 2 byte
> address whereas my example command was for a 256byte EEPROM which uses a
> one byte address.
>
> Try:
>
> fx2tool -B -d 16c0:296d read_eeprom -W 2 0 256
>
> But this may not work depending on your PCB EEPROM connections.
>
> fx2tool will use i2c device address 0x51 (see reference [1] below)
>
> Address 0x51 means the pins on your eeprom chip [2] need to be:
>
> Pin1 = 1 (connected to pin 8)
>
> Pin2 = 0 (or floating/unconnected)
>
> Pin3 = 0 (or floating/unconnected)
>
>
> [1] Line 134 in:
>
>
> https://github.com/whitequark/libfx2/blob/master/firmware/boot-cypress/main.c
>
> [2] EEPROM datasheet:
>
>
> http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-8734-SEEPROM-AT24C128C-Datasheet.pdf
>
> Rgds, Kevin
>
> On 2021-01-11 00:47, Fausto Barbosa wrote:
>
> Thank you Arno and Arsenijs.
>
> python3 did the trick.
> Now I run:
> $ fx2tool -B -d 16c0:296d read_eeprom -W 1 0 256
> and get
> ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
>
> _______________________________________________
> sigrok-devel mailing list
> sigrok-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sigrok-devel
>
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to