4 Replies Latest reply on Jun 26, 2018 7:41 AM by e.pratt_1639216

    Interfacing to a SPI FRAM via I2C bridge

    jgriswold_3357391

      I can read back the JEDEC ID of the FRAM, but writing and reading to the FRAM's buffer is problematic.

      I am using a Beagle SPI/I2C probe, and see a write to the buffer OK, but when reading back, I get a NAK error when I sent a Start.

       

      Is there any way to reset the bus when I see an error like this?

       

      I've attached the "minimal" archive of the project. Questionable write is in fram.c  - fram_write_buffer() and fram_read_buffer().

       

      The FRAM is on the other side of an I2C to SPI bridge, which probably doesn't help.

      After a seemingly OK transfer of the data TO the FRAM, attempting to perform a start transaction results in the NAK.

       

      I'm sure it's a rookie mistake, but I can't see it.

       

      Thanks - I'm going to keep beating my head against the desk...