Post Go back to editing

SigmaStudioPlus generic I2C device: how to download xml and read/write fails with EVAL-AD2437A1NZ/B1NZ

Category: Software
Product Number: AD2437
Software Version: 2.1.0

Still in the process of figuring out SS+, but I have two basic questions:

In SS 4.x a generic I2C device could be programmed by selecting a .xml file and then hit the program button.  In SS+ a file can be selected, but I can't find the Program button. How do you program a XML file to an I2C device and see the result like in SS?

 (for the parts on ADI boards width would be set to 2)

I have two 2437 eval boards hooked up and link/compile/download does not give me an error.  (corrected) If I try to write to the EEPROM on the main node I do not get an error, but it always reads back 0x00 regardless of what data I provide.

Is there some extra step needed for I2C read/write on that node?

The SS+ schematic is the ADI example adi_a2b_AD2437WA1NZ with the 3rd node deleted.



clarified single I2C R/W is only issue on root node
[edited by: Brewster at 6:47 PM (GMT -5) on 13 Feb 2024]
  • Hi  

    for your SS+ related issue let me check that again. Meantime can you try to check the EEPROM datasheet and then enable write operation, write some data on a known address, then read the data again. So that we can confirm if its working correctly or not.

    Please let me know if that works for you or not.

  • Hi Arunk,

    A little more information on I2C single read/write:
    The screen grab above shows only 1 byte of address being slected; it should have shown 2 bytes (just to rule out the obvious mistakes)

    The R/W problem is just on root node (-A1NZ), it works on the sub node (-b1NZ) (my original post was in error)

    The A1NZ schematic shows the WP line tied low, so shouldn't be access issues.  It's odd though that reads return 0x00 as the part is factory set to 0xFF.

    To clarify about loading (or reading back)  .xml onto the EEPROM, I'm looking for where the "program" button went in SS+:

    Thanks

  • Tried with a different (non ADI) board.  In SS 4.7 read/write of eeprom on the main node works fine.

    In SS+ nothing appears to happen. I could drag the scope out and look at the I2C, but regardless of what that showed it wouldn't tell me what's wrong.

  • Kind of answering my own question here: Don't know why I didn't notice the two nodes weren't going green when I did the link/compile/download thing.  No error messages, but no Green of Happiness.  Went back to the original ADI example and started fresh, chopped off the last node again, and EEPROM access on the main A1NZ node is working using the read/write.

    (The other board I had tried for non-results I think can be explained by pilot error in SS+ on my part.)


    In SS 4.7 with I2C you got a SUCCESS or FAIL message; or SS just hung up and you had to kill it.  I think the problem is I2C R/W more or less silently fails in SS+/A2B add on when something isn't right? Showing 0x00 on an I2C read doesn't seem like a good way to indicate something isn't right.

    ---------------------------------


    That leaves my other original question about where the Program button went for I2C XML files.

  • Hi Brewster, 

    The programming of the peripheral XML from the peripheral window can be achieved in the SS+ by the using download button as shown below. The download button enables after link compile download and output results can see in the capture window.



  • Ah,I see where I got lost.  I was assuming it was like in SS 4.7 where the window below the control area was the results of the operation.  I needed to select the Capture tab at the bottom (and make that area big enough to see).

    My "DELAY" statements result in an error.  I don't really need them here, there are other places where I do need to wait inbetween I2C operations.

    I can't find a help page for the .xml syntax and statements.  Do you have a pointer to where the .xml options for I2C (or SPI) is documented?

  • Hi Brewster,

    We have a simple document explaining the each field in one command. May be it will be helpful to you.

    DOCX

  • Was OOO for a while, back on this. 

    I just need to be able to have the capture window show me a display like in SS 4.7.   i.e. was it a read or write, the resultant data for a read and SUCCESS or FAIL, ie:

    How can I do that? All I get is the writes:

    Thanks

  • Hi Brewster,

    The Read/Write transaction will show in SS+ capture window as below


    Write failure transaction will show as Error and Success transaction will show as Sent.

    Read failure transaction will show as Error and Success transaction will show as Received.

  • Hi ,

    Maybe my (now) specific question belongs over the SigmanStudio+ group as I think this is a general problem and not specifically A2B (though I thought it was tied to the EVM at first)?

    Regardless, here's the problem I can't seem to workaround.  I have in SS4.7 a simple EEPROM:

    and I can easily download an I2C sequence and see what it does:

    In SS+, with that same node design, I can not find a way to display *only* the EEPROM I2C transactions and at *one* line per transaction.  In SS+ I get screenfuls of what I would call (to use a very technical term) crud...

    Specifically, for the same exact steps as SS4.7, SS+ returns this:

    It seems to be showing all I2C traffic, not just what the EEPROM is doing.  It's painful to make sense of this.  I  No idea why it puts up "Error", as Writes appear to work.

    In summary, I want the same easy to understand display as SS4.7 shows, and not what SS+ is currently doing.  Is there anyway to do that?