Post Go back to editing

ADM 1069 first byte of EEPROM?

Hi,

I am creating an C driver for board initialization with ADM1069. I am debugging with Rev. 2 HW soldered

on custom board. I am using logic analyzer. My program does sth like this:

1. Erase the EEPROM (all first 5 pages from 0xF800)

2. Write the inputs configuration into the EEPROM

3. Read them back and compare (to see if EEPROm was programmed OK)

When I compare the values i get errors. The first byte of each output configuration is never matching for any

input. I read the data back by block read. I tried after the block read to read always the first byte by single read

from the same address as block read starts (of course with next set address comand first). Then I get nack

from the circuit!

To demonstrate that sth. is clearly wrong with first byte, I created program which erases the EEPROM and then

reads the value back from it. I dont get 0xFF from first byte. This situation is attached in following picture

(bytes: device addres, block read command, device address, byte count-32,screwed byte, other bytes)!

Is this sign that EEPROM is worn out?? Or is this some other issue?? I am only debugging the circuit for few days so there is no chance that I have made 10000 erase program cycles already. Mostly few hundreds. I never let the erase

run in infinite loop of course...

Ondrej

  • Hi Ondrej,

    I tried reading back from the EEPROM after doing EEPROM erase, I'm reading back the correct data which is 0x20 (byte count) followed by 0xFF.....0xFF (since the EEPROM is erased). I also tried writing some data and read back the same data that I wrote.

    I've few questions for you to help you debug further:

    1. Can you do a byte read successfully from EEPROM location other than 0xF800? Could you verify using logic analyzer that EEPROM address is being written correctly?

    2. Are you seeing this issue in just one part or is it repeatable in multiple ADM1069? If it's just one part could you try the test on a different part?

    3. Are you writing or reading back data from any other registers between setting the EEPROM start location and reading back from the EEPROM? 

    Also, if you've USB-SDP-CABLEZ dongle you can use prog106x tool which is part of ADM1069 eval tool to erase and then save the content of the EEPROM to *.hex file to check if you see the same issue. This step is just to isolate the issue. 

    prog106x tool user guide: http://www.analog.com/media/en/technical-documentation/user-guides/UG-049.pdf 

    usb-sdp-cablez: http://www.analog.com/media/en/technical-documentation/user-guides/UG-404.pdf 

    Regards,

    Opal

  • Hi, 

    1. I can read a single byte from other locations. If I just read the 0xF809 i get the correct data back. Adress is set correctly. I can see it in the logic analyzer.

    2. I am not seeing this issue in other samples so far.

    3. No I am not. Set address and following access are done without other accesses between.

    I also implemented a check methods for reading back the EEPROM content. Now I erase the EEPROM, then write configuration and then read it back. I see corrupted data in many locations. My assumption is that EEPROM is either

    worn-out, I corrupted it during hand soldering of the circuit or some locations were damaged by static electricity. I will resolder the circuit and try again.

    However I dont think executed more than 10000 erase/write cycles. I ordered the part as a sample. Is it maybe possible

    that circuits which are samples are not entirely correct. (E.g. they fail some test of silicon testing, so they are just send as samples and not for sale??)

    Ondrej

  • By resoldering I meant using different sample of course

    Ondrej

  • Hi Ondrej,

    Since the issue with EEPROM that you stated above is exhibited in only one part, and other parts does not have the issue, most likely that single part is damaged. If you ship the part back to us we can do a failure analysis to find the cause of the failure.

    Regards,

    Opal

  • without looking into the details of your transaction, here are some of my thoughts on how to debug it.

    1. i don't know how you generate the data to write to the EEPROM, but the best way is to use the official evaluation tool. it has an offline mode, where you can configure the part and save the configuration into a file, while saving the file, you also have the option to generate an Intel hex file. the *.hex file contain all the data for each EEPROM address you need to write. attached PDF uses the hex file to explain EEPROM locations.
    2. for debug, you may want to write to USER EEPROM location, that's 0xF900 to 0xF9FF. it's basically a scratch pad you can try your read and write to. other locations may have certain bit restrictions if you are not careful.
    3. a quick glance of your screen shot, it looks like you have 0xFFs for the other registers, and you seem to assumed they were successfully written. I'd double check it by try to write some other values to them. as by erasing the EEPROM, the content becomes 0xFF. a write can only change a 1 to 0.
    4. did you try the official eval kit and tool? the main one is written in labview and there's another tool called prog106x.exe which is written in C for hex file download/upload. the source code is not published but you can use your analyzer with it to see if there is some difference on the transaction it does to what you have.
    5. for future screen shots, could you change your logic analyzer to display data in hexadecimal format instead of binary? Just easier to read.

    Ren

  • Hi,

    I tried to use different sample but my problem still remains! I write the data to an EEPROM location by block write (set adress + block write without interupting). Then I try to read the data back and I always get different data in the first or first and second byte!  I tried to do block write of size 8 at adress 0xFA00 (configuration of first SE State). I can see the write acess at the logic analyzer.

    in the first data byte we see 0b10000000. Once i finish this access and read the data back I obtain

    corrupted data always in first byte (this-one happends when acessing 0xF808 till 0xF80F - inputs configuration) and sometimes second byte (this happends when accessing SE configuration). I was trying to execute single writes instead of block write and then read with single read. It did not help. I tried to always do block read and then read the first byte again by single read. It did not help. When reading via single read I also get corrupted data.

    The proof there is nothing wrong with the write, neither the read is here. I erase the EEPROM page (whole page from 0xF820). Then I set access address (0xF830 - Input port VX1 X1OVTH)

    Every part of the set adress command is ACKed. 1 ms later, without any action between I read via block read command. I have to wait the 1 ms. If I dont wait ADM1069 does not ACK my address. I obtain the following frame:

    After every byte device sends ACK. We can see 0b00100000 (32 bytes), and one corrupted byte of data after that! All following bytes are received as 0xFF as expected!

    Note that read cycle sends 32 bytes. After receiving 8 bytes I send NACK to stop the block read (I only need 8 bytes).

    Could this affect the problem?? But i have to say I also tried receving full 32 bytes in each block read (plus PEC byte)

    and I did not get correct result either.

    Now after changing the sample I seriously doubt I damaged the same bytes as before by soldering. I did not wear out the EEPROM either. My HW revision is still 2. I dont use USB programmer for acessing the EEPROM. I only use linux I2C/SMBUS driver and logic analyzer.

    My questions are:

    1. Is it possible this can be caused by older HW revision?? Could I please get an errata, resp. document describing changes between individual versions??

    2. This circuit is a free SAMPLE. Is it possible that an errornous piece was send as sample? It would not be the first time this happend. Samples are for free, so companies mostly dont care what they send.

    I am not really willing to buy whole development kit just to get working circuit. If it is necessary I will buy the circuit only. I am prototyping the FW for motherboard system before manufacturing extension module. Is it possible to ask for the latest revision when ordering the chips?? Our product would take up to 1000 pcs a year.

    Unfortunately, I cant send back the first part. It was damaged during removal from the board.

    Ondrej

  • Hi,

    thank you for your time and effort. With your help I was able to discover the issue. The thing is following. PEC byte is supported for reads,writes, block reads block writes. I missed the part of the specification which says it is not supported

    for set address command. In my implementation of driver under Linux I left the PEC option set also for Set address command. What is the consequence?? PEC byte was transmitted (I am not sure whether by device or master, but according to device datasheet). We can see this in picture one of my previous message (last byte). PEC was checked by Linux driver and everything was OK! But it had a side effect that receiving SMbus engine

    now must have thought that the byte which is there after address byte is data byte. Frame format then corresponds to single write format. So it takes the PEC byte and writes it into the location which is set by expected set address command. Address remains set for next block access but if it is EEPROM some locations are already written and cannot be changed without erasing...

    I know using PEC byte on set address command is beyond datasheet. But if the device transmitts the PEC then it should not receive it at the same time

    and consider this as single write access. Or the device should not provide the PEC byte at all.

    This assumes that PEC byte is truly provided by the device. There is a chance that Linux kernel driver transmitts the PEC byte by itself since it has PEC

    option turned on and it does not see any PEC from the device. In this case the device behaviour is completely correct since it will see single write frame

    instead of set address command. I did not dig deep enough into Linux kernel driver to see whether this is the case.

    If this is the case then I apologize for trobule caused with this issue. If not then it might be good to have a look at the case where master does not send stop condition after set adress command, whether PEC byte is issued by the device and if problems described above are occuring.

    Ondrej

  • Hi Ondrej,

    When you are writing to the device (block or single byte) PEC byte is generated by the i2c master not the salve device. Since you were writing the PEC byte with the EEPROM start address the device saw the PEC byte as the data that is to be written to the EEPROM location, as a result you read back that PEC as the first byte of block read data. EEPROM start address should be set without PEC byte. 

    Also, refer to the following app note for doing EEPROM read/write operations.

    http://www.analog.com/media/en/technical-documentation/application-notes/AN-1009.pdf 

    Opal

  • This question has been assumed as answered either offline via email or with a multi-part answer. This question has now been closed out. If you have an inquiry related to this topic please post a new question in the applicable product forum.

    Thank you,
    EZ Admin

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.